Struct aws_sdk_connect::operation::import_phone_number::builders::ImportPhoneNumberFluentBuilder
source · pub struct ImportPhoneNumberFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ImportPhoneNumber
.
Imports a claimed phone number from an external service, such as Amazon Pinpoint, into an Amazon Connect instance. You can call this API only in the same Amazon Web Services Region where the Amazon Connect instance was created.
Implementations§
source§impl ImportPhoneNumberFluentBuilder
impl ImportPhoneNumberFluentBuilder
sourcepub fn as_input(&self) -> &ImportPhoneNumberInputBuilder
pub fn as_input(&self) -> &ImportPhoneNumberInputBuilder
Access the ImportPhoneNumber as a reference.
sourcepub async fn send(
self
) -> Result<ImportPhoneNumberOutput, SdkError<ImportPhoneNumberError, HttpResponse>>
pub async fn send( self ) -> Result<ImportPhoneNumberOutput, SdkError<ImportPhoneNumberError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<ImportPhoneNumberOutput, ImportPhoneNumberError, Self>
pub fn customize( self ) -> CustomizableOperation<ImportPhoneNumberOutput, ImportPhoneNumberError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
sourcepub fn source_phone_number_arn(self, input: impl Into<String>) -> Self
pub fn source_phone_number_arn(self, input: impl Into<String>) -> Self
The claimed phone number ARN being imported from the external service, such as Amazon Pinpoint. If it is from Amazon Pinpoint, it looks like the ARN of the phone number to import from Amazon Pinpoint.
sourcepub fn set_source_phone_number_arn(self, input: Option<String>) -> Self
pub fn set_source_phone_number_arn(self, input: Option<String>) -> Self
The claimed phone number ARN being imported from the external service, such as Amazon Pinpoint. If it is from Amazon Pinpoint, it looks like the ARN of the phone number to import from Amazon Pinpoint.
sourcepub fn get_source_phone_number_arn(&self) -> &Option<String>
pub fn get_source_phone_number_arn(&self) -> &Option<String>
The claimed phone number ARN being imported from the external service, such as Amazon Pinpoint. If it is from Amazon Pinpoint, it looks like the ARN of the phone number to import from Amazon Pinpoint.
sourcepub fn phone_number_description(self, input: impl Into<String>) -> Self
pub fn phone_number_description(self, input: impl Into<String>) -> Self
The description of the phone number.
sourcepub fn set_phone_number_description(self, input: Option<String>) -> Self
pub fn set_phone_number_description(self, input: Option<String>) -> Self
The description of the phone number.
sourcepub fn get_phone_number_description(&self) -> &Option<String>
pub fn get_phone_number_description(&self) -> &Option<String>
The description of the phone number.
Adds a key-value pair to Tags
.
To override the contents of this collection use set_tags
.
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
Trait Implementations§
source§impl Clone for ImportPhoneNumberFluentBuilder
impl Clone for ImportPhoneNumberFluentBuilder
source§fn clone(&self) -> ImportPhoneNumberFluentBuilder
fn clone(&self) -> ImportPhoneNumberFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more