Interface ClaimedPhoneNumberSummary.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ClaimedPhoneNumberSummary.Builder,
,ClaimedPhoneNumberSummary> SdkBuilder<ClaimedPhoneNumberSummary.Builder,
,ClaimedPhoneNumberSummary> SdkPojo
- Enclosing class:
ClaimedPhoneNumberSummary
-
Method Summary
Modifier and TypeMethodDescriptioninstanceId
(String instanceId) The identifier of the Amazon Connect instance that phone numbers are claimed to.phoneNumber
(String phoneNumber) The phone number.phoneNumberArn
(String phoneNumberArn) The Amazon Resource Name (ARN) of the phone number.phoneNumberCountryCode
(String phoneNumberCountryCode) The ISO country code.phoneNumberCountryCode
(PhoneNumberCountryCode phoneNumberCountryCode) The ISO country code.phoneNumberDescription
(String phoneNumberDescription) The description of the phone number.phoneNumberId
(String phoneNumberId) A unique identifier for the phone number.phoneNumberStatus
(Consumer<PhoneNumberStatus.Builder> phoneNumberStatus) The status of the phone number.phoneNumberStatus
(PhoneNumberStatus phoneNumberStatus) The status of the phone number.phoneNumberType
(String phoneNumberType) The type of phone number.phoneNumberType
(PhoneNumberType phoneNumberType) The type of phone number.sourcePhoneNumberArn
(String sourcePhoneNumberArn) The claimed phone number ARN that was previously imported from the external service, such as Amazon Pinpoint.The tags used to organize, track, or control access for this resource.The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution groups that phone number inbound traffic is routed through.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
phoneNumberId
A unique identifier for the phone number.
- Parameters:
phoneNumberId
- A unique identifier for the phone number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
phoneNumberArn
The Amazon Resource Name (ARN) of the phone number.
- Parameters:
phoneNumberArn
- The Amazon Resource Name (ARN) of the phone number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
phoneNumber
The phone number. Phone numbers are formatted
[+] [country code] [subscriber number including area code]
.- Parameters:
phoneNumber
- The phone number. Phone numbers are formatted[+] [country code] [subscriber number including area code]
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
phoneNumberCountryCode
The ISO country code.
- Parameters:
phoneNumberCountryCode
- The ISO country code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
phoneNumberCountryCode
ClaimedPhoneNumberSummary.Builder phoneNumberCountryCode(PhoneNumberCountryCode phoneNumberCountryCode) The ISO country code.
- Parameters:
phoneNumberCountryCode
- The ISO country code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
phoneNumberType
The type of phone number.
- Parameters:
phoneNumberType
- The type of phone number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
phoneNumberType
The type of phone number.
- Parameters:
phoneNumberType
- The type of phone number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
phoneNumberDescription
The description of the phone number.
- Parameters:
phoneNumberDescription
- The description of the phone number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetArn
The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution groups that phone number inbound traffic is routed through.
- Parameters:
targetArn
- The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution groups that phone number inbound traffic is routed through.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceId
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.
- Parameters:
instanceId
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
- Parameters:
tags
- The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
phoneNumberStatus
default ClaimedPhoneNumberSummary.Builder phoneNumberStatus(Consumer<PhoneNumberStatus.Builder> 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.
PhoneNumberStatus.Builder
avoiding the need to create one manually viaPhoneNumberStatus.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tophoneNumberStatus(PhoneNumberStatus)
.- Parameters:
phoneNumberStatus
- a consumer that will call methods onPhoneNumberStatus.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
sourcePhoneNumberArn
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.
- Parameters:
sourcePhoneNumberArn
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-