Struct aws_sdk_connect::operation::claim_phone_number::builders::ClaimPhoneNumberInputBuilder
source · #[non_exhaustive]pub struct ClaimPhoneNumberInputBuilder { /* private fields */ }
Expand description
A builder for ClaimPhoneNumberInput
.
Implementations§
source§impl ClaimPhoneNumberInputBuilder
impl ClaimPhoneNumberInputBuilder
sourcepub fn target_arn(self, input: impl Into<String>) -> Self
pub fn target_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution groups that phone number inbound traffic is routed through. You must enter InstanceId
or TargetArn
.
sourcepub fn set_target_arn(self, input: Option<String>) -> Self
pub fn set_target_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution groups that phone number inbound traffic is routed through. You must enter InstanceId
or TargetArn
.
sourcepub fn get_target_arn(&self) -> &Option<String>
pub fn get_target_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution groups that phone number inbound traffic is routed through. You must enter InstanceId
or TargetArn
.
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 that phone numbers are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the instance. You must enter InstanceId
or TargetArn
.
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 that phone numbers are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the instance. You must enter InstanceId
or TargetArn
.
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
The identifier of the Amazon Connect instance that phone numbers are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the instance. You must enter InstanceId
or TargetArn
.
sourcepub fn phone_number(self, input: impl Into<String>) -> Self
pub fn phone_number(self, input: impl Into<String>) -> Self
The phone number you want to claim. Phone numbers are formatted [+] [country code] [subscriber number including area code]
.
sourcepub fn set_phone_number(self, input: Option<String>) -> Self
pub fn set_phone_number(self, input: Option<String>) -> Self
The phone number you want to claim. Phone numbers are formatted [+] [country code] [subscriber number including area code]
.
sourcepub fn get_phone_number(&self) -> &Option<String>
pub fn get_phone_number(&self) -> &Option<String>
The phone number you want to claim. Phone numbers are formatted [+] [country code] [subscriber number including area code]
.
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.
Pattern: ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$
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.
Pattern: ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$
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.
Pattern: ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$
sourcepub fn build(self) -> Result<ClaimPhoneNumberInput, BuildError>
pub fn build(self) -> Result<ClaimPhoneNumberInput, BuildError>
Consumes the builder and constructs a ClaimPhoneNumberInput
.
source§impl ClaimPhoneNumberInputBuilder
impl ClaimPhoneNumberInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ClaimPhoneNumberOutput, SdkError<ClaimPhoneNumberError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ClaimPhoneNumberOutput, SdkError<ClaimPhoneNumberError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ClaimPhoneNumberInputBuilder
impl Clone for ClaimPhoneNumberInputBuilder
source§fn clone(&self) -> ClaimPhoneNumberInputBuilder
fn clone(&self) -> ClaimPhoneNumberInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ClaimPhoneNumberInputBuilder
impl Debug for ClaimPhoneNumberInputBuilder
source§impl Default for ClaimPhoneNumberInputBuilder
impl Default for ClaimPhoneNumberInputBuilder
source§fn default() -> ClaimPhoneNumberInputBuilder
fn default() -> ClaimPhoneNumberInputBuilder
source§impl PartialEq for ClaimPhoneNumberInputBuilder
impl PartialEq for ClaimPhoneNumberInputBuilder
source§fn eq(&self, other: &ClaimPhoneNumberInputBuilder) -> bool
fn eq(&self, other: &ClaimPhoneNumberInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.