Interface SendTextMessageRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<SendTextMessageRequest.Builder,
,SendTextMessageRequest> PinpointSmsVoiceV2Request.Builder
,SdkBuilder<SendTextMessageRequest.Builder,
,SendTextMessageRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
SendTextMessageRequest
-
Method Summary
Modifier and TypeMethodDescriptionconfigurationSetName
(String configurationSetName) The name of the configuration set to use.You can specify custom data in this field.destinationCountryParameters
(Map<DestinationCountryParameterKey, String> destinationCountryParameters) This field is used for any country-specific registration requirements.destinationCountryParametersWithStrings
(Map<String, String> destinationCountryParameters) This field is used for any country-specific registration requirements.destinationPhoneNumber
(String destinationPhoneNumber) The destination phone number in E.164 format.When set to true, the message is checked and validated, but isn't sent to the end recipient.When you register a short code in the US, you must specify a program name.The maximum amount that you want to spend, in US dollars, per each text message part.messageBody
(String messageBody) The body of the text message.messageType
(String messageType) The type of message.messageType
(MessageType messageType) The type of message.originationIdentity
(String originationIdentity) The origination identity of the message.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.protectConfigurationId
(String protectConfigurationId) The unique identifier for the protect configuration.timeToLive
(Integer timeToLive) How long the text message is valid for.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.pinpointsmsvoicev2.model.PinpointSmsVoiceV2Request.Builder
build
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
-
destinationPhoneNumber
The destination phone number in E.164 format.
- Parameters:
destinationPhoneNumber
- The destination phone number in E.164 format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
originationIdentity
The origination identity of the message. This can be either the PhoneNumber, PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.
- Parameters:
originationIdentity
- The origination identity of the message. This can be either the PhoneNumber, PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageBody
The body of the text message.
- Parameters:
messageBody
- The body of the text message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageType
The type of message. Valid values are for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.
- Parameters:
messageType
- The type of message. Valid values are for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
messageType
The type of message. Valid values are for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.
- Parameters:
messageType
- The type of message. Valid values are for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurationSetName
The name of the configuration set to use. This can be either the ConfigurationSetName or ConfigurationSetArn.
- Parameters:
configurationSetName
- The name of the configuration set to use. This can be either the ConfigurationSetName or ConfigurationSetArn.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxPrice
The maximum amount that you want to spend, in US dollars, per each text message part. A text message can contain multiple parts.
- Parameters:
maxPrice
- The maximum amount that you want to spend, in US dollars, per each text message part. A text message can contain multiple parts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeToLive
How long the text message is valid for. By default this is 72 hours.
- Parameters:
timeToLive
- How long the text message is valid for. By default this is 72 hours.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
context
You can specify custom data in this field. If you do, that data is logged to the event destination.
- Parameters:
context
- You can specify custom data in this field. If you do, that data is logged to the event destination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationCountryParametersWithStrings
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationCountryParameters
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dryRun
When set to true, the message is checked and validated, but isn't sent to the end recipient.
- Parameters:
dryRun
- When set to true, the message is checked and validated, but isn't sent to the end recipient.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protectConfigurationId
The unique identifier for the protect configuration.
- Parameters:
protectConfigurationId
- The unique identifier for the protect configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
SendTextMessageRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SendTextMessageRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-