public static interface RequestPhoneNumberRequest.Builder extends PinpointSmsVoiceV2Request.Builder, SdkPojo, CopyableBuilder<RequestPhoneNumberRequest.Builder,RequestPhoneNumberRequest>
| Modifier and Type | Method and Description |
|---|---|
RequestPhoneNumberRequest.Builder |
clientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
RequestPhoneNumberRequest.Builder |
deletionProtectionEnabled(Boolean deletionProtectionEnabled)
By default this is set to false.
|
RequestPhoneNumberRequest.Builder |
isoCountryCode(String isoCountryCode)
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
|
RequestPhoneNumberRequest.Builder |
messageType(MessageType messageType)
The type of message.
|
RequestPhoneNumberRequest.Builder |
messageType(String messageType)
The type of message.
|
RequestPhoneNumberRequest.Builder |
numberCapabilities(Collection<NumberCapability> numberCapabilities)
Indicates if the phone number will be used for text messages, voice messages, or both.
|
RequestPhoneNumberRequest.Builder |
numberCapabilities(NumberCapability... numberCapabilities)
Indicates if the phone number will be used for text messages, voice messages, or both.
|
RequestPhoneNumberRequest.Builder |
numberCapabilitiesWithStrings(Collection<String> numberCapabilities)
Indicates if the phone number will be used for text messages, voice messages, or both.
|
RequestPhoneNumberRequest.Builder |
numberCapabilitiesWithStrings(String... numberCapabilities)
Indicates if the phone number will be used for text messages, voice messages, or both.
|
RequestPhoneNumberRequest.Builder |
numberType(RequestableNumberType numberType)
The type of phone number to request.
|
RequestPhoneNumberRequest.Builder |
numberType(String numberType)
The type of phone number to request.
|
RequestPhoneNumberRequest.Builder |
optOutListName(String optOutListName)
The name of the OptOutList to associate with the phone number.
|
RequestPhoneNumberRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
RequestPhoneNumberRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
RequestPhoneNumberRequest.Builder |
poolId(String poolId)
The pool to associated with the phone number.
|
RequestPhoneNumberRequest.Builder |
registrationId(String registrationId)
Use this field to attach your phone number for an external registration process.
|
RequestPhoneNumberRequest.Builder |
tags(Collection<Tag> tags)
An array of tags (key and value pairs) associate with the requested phone number.
|
RequestPhoneNumberRequest.Builder |
tags(Consumer<Tag.Builder>... tags)
An array of tags (key and value pairs) associate with the requested phone number.
|
RequestPhoneNumberRequest.Builder |
tags(Tag... tags)
An array of tags (key and value pairs) associate with the requested phone number.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildRequestPhoneNumberRequest.Builder isoCountryCode(String isoCountryCode)
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
isoCountryCode - The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.RequestPhoneNumberRequest.Builder messageType(String messageType)
The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.
messageType - The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive
and PROMOTIONAL for messages that aren't critical or time-sensitive.MessageType,
MessageTypeRequestPhoneNumberRequest.Builder messageType(MessageType messageType)
The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.
messageType - The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive
and PROMOTIONAL for messages that aren't critical or time-sensitive.MessageType,
MessageTypeRequestPhoneNumberRequest.Builder numberCapabilitiesWithStrings(Collection<String> numberCapabilities)
Indicates if the phone number will be used for text messages, voice messages, or both.
numberCapabilities - Indicates if the phone number will be used for text messages, voice messages, or both.RequestPhoneNumberRequest.Builder numberCapabilitiesWithStrings(String... numberCapabilities)
Indicates if the phone number will be used for text messages, voice messages, or both.
numberCapabilities - Indicates if the phone number will be used for text messages, voice messages, or both.RequestPhoneNumberRequest.Builder numberCapabilities(Collection<NumberCapability> numberCapabilities)
Indicates if the phone number will be used for text messages, voice messages, or both.
numberCapabilities - Indicates if the phone number will be used for text messages, voice messages, or both.RequestPhoneNumberRequest.Builder numberCapabilities(NumberCapability... numberCapabilities)
Indicates if the phone number will be used for text messages, voice messages, or both.
numberCapabilities - Indicates if the phone number will be used for text messages, voice messages, or both.RequestPhoneNumberRequest.Builder numberType(String numberType)
The type of phone number to request.
numberType - The type of phone number to request.RequestableNumberType,
RequestableNumberTypeRequestPhoneNumberRequest.Builder numberType(RequestableNumberType numberType)
The type of phone number to request.
numberType - The type of phone number to request.RequestableNumberType,
RequestableNumberTypeRequestPhoneNumberRequest.Builder optOutListName(String optOutListName)
The name of the OptOutList to associate with the phone number. You can use the OutOutListName or OptPutListArn.
optOutListName - The name of the OptOutList to associate with the phone number. You can use the OutOutListName or
OptPutListArn.RequestPhoneNumberRequest.Builder poolId(String poolId)
The pool to associated with the phone number. You can use the PoolId or PoolArn.
poolId - The pool to associated with the phone number. You can use the PoolId or PoolArn.RequestPhoneNumberRequest.Builder registrationId(String registrationId)
Use this field to attach your phone number for an external registration process.
registrationId - Use this field to attach your phone number for an external registration process.RequestPhoneNumberRequest.Builder deletionProtectionEnabled(Boolean deletionProtectionEnabled)
By default this is set to false. When set to true the phone number can't be deleted.
deletionProtectionEnabled - By default this is set to false. When set to true the phone number can't be deleted.RequestPhoneNumberRequest.Builder tags(Collection<Tag> tags)
An array of tags (key and value pairs) associate with the requested phone number.
tags - An array of tags (key and value pairs) associate with the requested phone number.RequestPhoneNumberRequest.Builder tags(Tag... tags)
An array of tags (key and value pairs) associate with the requested phone number.
tags - An array of tags (key and value pairs) associate with the requested phone number.RequestPhoneNumberRequest.Builder tags(Consumer<Tag.Builder>... tags)
An array of tags (key and value pairs) associate with the requested phone number.
This is a convenience method that creates an instance of theTag.Builder avoiding the need to create one
manually via Tag.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #tags(List.
tags - a consumer that will call methods on
Tag.Builder#tags(java.util.Collection) RequestPhoneNumberRequest.Builder clientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.
clientToken - Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you
don't specify a client token, a randomly generated token is used for the request to ensure
idempotency.RequestPhoneNumberRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderRequestPhoneNumberRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.