#[non_exhaustive]pub struct ClaimedPhoneNumberSummaryBuilder { /* private fields */ }
Expand description
A builder for ClaimedPhoneNumberSummary
.
Implementations§
source§impl ClaimedPhoneNumberSummaryBuilder
impl ClaimedPhoneNumberSummaryBuilder
sourcepub fn phone_number_id(self, input: impl Into<String>) -> Self
pub fn phone_number_id(self, input: impl Into<String>) -> Self
A unique identifier for the phone number.
sourcepub fn set_phone_number_id(self, input: Option<String>) -> Self
pub fn set_phone_number_id(self, input: Option<String>) -> Self
A unique identifier for the phone number.
sourcepub fn get_phone_number_id(&self) -> &Option<String>
pub fn get_phone_number_id(&self) -> &Option<String>
A unique identifier for the phone number.
sourcepub fn phone_number_arn(self, input: impl Into<String>) -> Self
pub fn phone_number_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the phone number.
sourcepub fn set_phone_number_arn(self, input: Option<String>) -> Self
pub fn set_phone_number_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the phone number.
sourcepub fn get_phone_number_arn(&self) -> &Option<String>
pub fn get_phone_number_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the phone number.
sourcepub fn phone_number(self, input: impl Into<String>) -> Self
pub fn phone_number(self, input: impl Into<String>) -> Self
The phone number. 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. 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. Phone numbers are formatted [+] [country code] [subscriber number including area code]
.
sourcepub fn phone_number_country_code(self, input: PhoneNumberCountryCode) -> Self
pub fn phone_number_country_code(self, input: PhoneNumberCountryCode) -> Self
The ISO country code.
sourcepub fn set_phone_number_country_code(
self,
input: Option<PhoneNumberCountryCode>
) -> Self
pub fn set_phone_number_country_code( self, input: Option<PhoneNumberCountryCode> ) -> Self
The ISO country code.
sourcepub fn get_phone_number_country_code(&self) -> &Option<PhoneNumberCountryCode>
pub fn get_phone_number_country_code(&self) -> &Option<PhoneNumberCountryCode>
The ISO country code.
sourcepub fn phone_number_type(self, input: PhoneNumberType) -> Self
pub fn phone_number_type(self, input: PhoneNumberType) -> Self
The type of phone number.
sourcepub fn set_phone_number_type(self, input: Option<PhoneNumberType>) -> Self
pub fn set_phone_number_type(self, input: Option<PhoneNumberType>) -> Self
The type of phone number.
sourcepub fn get_phone_number_type(&self) -> &Option<PhoneNumberType>
pub fn get_phone_number_type(&self) -> &Option<PhoneNumberType>
The type of phone number.
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.
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.
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.
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.
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.
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.
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.
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 phone_number_status(self, input: PhoneNumberStatus) -> Self
pub fn phone_number_status(self, input: PhoneNumberStatus) -> Self
The status of the phone number.
-
CLAIMED
means the previous ClaimPhoneNumber or UpdatePhoneNumber operation succeeded. -
IN_PROGRESS
means a ClaimPhoneNumber, UpdatePhoneNumber, or UpdatePhoneNumberMetadata operation is still in progress and has not yet completed. You can call DescribePhoneNumber at a later time to verify if the previous operation has completed. -
FAILED
indicates that the previous ClaimPhoneNumber or UpdatePhoneNumber operation has failed. It will include a message indicating the failure reason. A common reason for a failure may be that theTargetArn
value you are claiming or updating a phone number to has reached its limit of total claimed numbers. If you received aFAILED
status from aClaimPhoneNumber
API call, you have one day to retry claiming the phone number before the number is released back to the inventory for other customers to claim.
You will not be billed for the phone number during the 1-day period if number claiming fails.
sourcepub fn set_phone_number_status(self, input: Option<PhoneNumberStatus>) -> Self
pub fn set_phone_number_status(self, input: Option<PhoneNumberStatus>) -> Self
The status of the phone number.
-
CLAIMED
means the previous ClaimPhoneNumber or UpdatePhoneNumber operation succeeded. -
IN_PROGRESS
means a ClaimPhoneNumber, UpdatePhoneNumber, or UpdatePhoneNumberMetadata operation is still in progress and has not yet completed. You can call DescribePhoneNumber at a later time to verify if the previous operation has completed. -
FAILED
indicates that the previous ClaimPhoneNumber or UpdatePhoneNumber operation has failed. It will include a message indicating the failure reason. A common reason for a failure may be that theTargetArn
value you are claiming or updating a phone number to has reached its limit of total claimed numbers. If you received aFAILED
status from aClaimPhoneNumber
API call, you have one day to retry claiming the phone number before the number is released back to the inventory for other customers to claim.
You will not be billed for the phone number during the 1-day period if number claiming fails.
sourcepub fn get_phone_number_status(&self) -> &Option<PhoneNumberStatus>
pub fn get_phone_number_status(&self) -> &Option<PhoneNumberStatus>
The status of the phone number.
-
CLAIMED
means the previous ClaimPhoneNumber or UpdatePhoneNumber operation succeeded. -
IN_PROGRESS
means a ClaimPhoneNumber, UpdatePhoneNumber, or UpdatePhoneNumberMetadata operation is still in progress and has not yet completed. You can call DescribePhoneNumber at a later time to verify if the previous operation has completed. -
FAILED
indicates that the previous ClaimPhoneNumber or UpdatePhoneNumber operation has failed. It will include a message indicating the failure reason. A common reason for a failure may be that theTargetArn
value you are claiming or updating a phone number to has reached its limit of total claimed numbers. If you received aFAILED
status from aClaimPhoneNumber
API call, you have one day to retry claiming the phone number before the number is released back to the inventory for other customers to claim.
You will not be billed for the phone number during the 1-day period if number claiming fails.
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 that was previously imported from the external service, such as Amazon Pinpoint. If it is from Amazon Pinpoint, it looks like the ARN of the phone number that was imported 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 that was previously imported from the external service, such as Amazon Pinpoint. If it is from Amazon Pinpoint, it looks like the ARN of the phone number that was imported 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 that was previously imported from the external service, such as Amazon Pinpoint. If it is from Amazon Pinpoint, it looks like the ARN of the phone number that was imported from Amazon Pinpoint.
sourcepub fn build(self) -> ClaimedPhoneNumberSummary
pub fn build(self) -> ClaimedPhoneNumberSummary
Consumes the builder and constructs a ClaimedPhoneNumberSummary
.
Trait Implementations§
source§impl Clone for ClaimedPhoneNumberSummaryBuilder
impl Clone for ClaimedPhoneNumberSummaryBuilder
source§fn clone(&self) -> ClaimedPhoneNumberSummaryBuilder
fn clone(&self) -> ClaimedPhoneNumberSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ClaimedPhoneNumberSummaryBuilder
impl Default for ClaimedPhoneNumberSummaryBuilder
source§fn default() -> ClaimedPhoneNumberSummaryBuilder
fn default() -> ClaimedPhoneNumberSummaryBuilder
source§impl PartialEq for ClaimedPhoneNumberSummaryBuilder
impl PartialEq for ClaimedPhoneNumberSummaryBuilder
source§fn eq(&self, other: &ClaimedPhoneNumberSummaryBuilder) -> bool
fn eq(&self, other: &ClaimedPhoneNumberSummaryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.