pub struct Builder { /* private fields */ }
Expand description
A builder for ClaimedPhoneNumberSummary
.
Implementations§
source§impl Builder
impl Builder
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 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 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 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 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 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 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 numbers are claimed to.
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 numbers are claimed to.
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"} }.
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 ClaimedPhoneNumber or UpdatePhoneNumber operation succeeded. -
IN_PROGRESS
means a ClaimedPhoneNumber or UpdatePhoneNumber 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 ClaimedPhoneNumber 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 ClaimedPhoneNumber or UpdatePhoneNumber operation succeeded. -
IN_PROGRESS
means a ClaimedPhoneNumber or UpdatePhoneNumber 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 ClaimedPhoneNumber 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 build(self) -> ClaimedPhoneNumberSummary
pub fn build(self) -> ClaimedPhoneNumberSummary
Consumes the builder and constructs a ClaimedPhoneNumberSummary
.