public static interface SendTextMessageRequest.Builder extends PinpointSmsVoiceV2Request.Builder, SdkPojo, CopyableBuilder<SendTextMessageRequest.Builder,SendTextMessageRequest>
| Modifier and Type | Method and Description |
|---|---|
SendTextMessageRequest.Builder |
configurationSetName(String configurationSetName)
The name of the configuration set to use.
|
SendTextMessageRequest.Builder |
context(Map<String,String> context)
You can specify custom data in this field.
|
SendTextMessageRequest.Builder |
destinationCountryParameters(Map<DestinationCountryParameterKey,String> destinationCountryParameters)
This field is used for any country-specific registration requirements.
|
SendTextMessageRequest.Builder |
destinationCountryParametersWithStrings(Map<String,String> destinationCountryParameters)
This field is used for any country-specific registration requirements.
|
SendTextMessageRequest.Builder |
destinationPhoneNumber(String destinationPhoneNumber)
The destination phone number in E.164 format.
|
SendTextMessageRequest.Builder |
dryRun(Boolean dryRun)
When set to true, the message is checked and validated, but isn't sent to the end recipient.
|
SendTextMessageRequest.Builder |
keyword(String keyword)
When you register a short code in the US, you must specify a program name.
|
SendTextMessageRequest.Builder |
maxPrice(String maxPrice)
The maximum amount that you want to spend, in US dollars, per each text message part.
|
SendTextMessageRequest.Builder |
messageBody(String messageBody)
The body of the text message.
|
SendTextMessageRequest.Builder |
messageType(MessageType messageType)
The type of message.
|
SendTextMessageRequest.Builder |
messageType(String messageType)
The type of message.
|
SendTextMessageRequest.Builder |
originationIdentity(String originationIdentity)
The origination identity of the message.
|
SendTextMessageRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
SendTextMessageRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
SendTextMessageRequest.Builder |
timeToLive(Integer timeToLive)
How long the text message is valid for.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildSendTextMessageRequest.Builder destinationPhoneNumber(String destinationPhoneNumber)
The destination phone number in E.164 format.
destinationPhoneNumber - The destination phone number in E.164 format.SendTextMessageRequest.Builder originationIdentity(String originationIdentity)
The origination identity of the message. This can be either the PhoneNumber, PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.
originationIdentity - The origination identity of the message. This can be either the PhoneNumber, PhoneNumberId,
PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.SendTextMessageRequest.Builder messageBody(String messageBody)
The body of the text message.
messageBody - The body of the text message.SendTextMessageRequest.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,
MessageTypeSendTextMessageRequest.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,
MessageTypeSendTextMessageRequest.Builder keyword(String keyword)
When you register a short code in the US, you must specify a program name. If you don’t have a US short code, omit this attribute.
keyword - When you register a short code in the US, you must specify a program name. If you don’t have a US
short code, omit this attribute.SendTextMessageRequest.Builder configurationSetName(String configurationSetName)
The name of the configuration set to use. This can be either the ConfigurationSetName or ConfigurationSetArn.
configurationSetName - The name of the configuration set to use. This can be either the ConfigurationSetName or
ConfigurationSetArn.SendTextMessageRequest.Builder maxPrice(String maxPrice)
The maximum amount that you want to spend, in US dollars, per each text message part. A text message can contain multiple parts.
maxPrice - The maximum amount that you want to spend, in US dollars, per each text message part. A text message
can contain multiple parts.SendTextMessageRequest.Builder timeToLive(Integer timeToLive)
How long the text message is valid for. By default this is 72 hours.
timeToLive - How long the text message is valid for. By default this is 72 hours.SendTextMessageRequest.Builder context(Map<String,String> context)
You can specify custom data in this field. If you do, that data is logged to the event destination.
context - You can specify custom data in this field. If you do, that data is logged to the event destination.SendTextMessageRequest.Builder destinationCountryParametersWithStrings(Map<String,String> destinationCountryParameters)
This field is used for any country-specific registration requirements. Currently, this setting is only used when you send messages to recipients in India using a sender ID. For more information see Special requirements for sending SMS messages to recipients in India.
destinationCountryParameters - This field is used for any country-specific registration requirements. Currently, this setting is only
used when you send messages to recipients in India using a sender ID. For more information see Special
requirements for sending SMS messages to recipients in India.SendTextMessageRequest.Builder destinationCountryParameters(Map<DestinationCountryParameterKey,String> destinationCountryParameters)
This field is used for any country-specific registration requirements. Currently, this setting is only used when you send messages to recipients in India using a sender ID. For more information see Special requirements for sending SMS messages to recipients in India.
destinationCountryParameters - This field is used for any country-specific registration requirements. Currently, this setting is only
used when you send messages to recipients in India using a sender ID. For more information see Special
requirements for sending SMS messages to recipients in India.SendTextMessageRequest.Builder dryRun(Boolean dryRun)
When set to true, the message is checked and validated, but isn't sent to the end recipient.
dryRun - When set to true, the message is checked and validated, but isn't sent to the end recipient.SendTextMessageRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderSendTextMessageRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.