Interface SendTextMessageRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<SendTextMessageRequest.Builder,SendTextMessageRequest>,PinpointSmsVoiceV2Request.Builder,SdkBuilder<SendTextMessageRequest.Builder,SendTextMessageRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- SendTextMessageRequest
public static interface SendTextMessageRequest.Builder extends PinpointSmsVoiceV2Request.Builder, SdkPojo, CopyableBuilder<SendTextMessageRequest.Builder,SendTextMessageRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SendTextMessageRequest.BuilderconfigurationSetName(String configurationSetName)The name of the configuration set to use.SendTextMessageRequest.Buildercontext(Map<String,String> context)You can specify custom data in this field.SendTextMessageRequest.BuilderdestinationCountryParameters(Map<DestinationCountryParameterKey,String> destinationCountryParameters)This field is used for any country-specific registration requirements.SendTextMessageRequest.BuilderdestinationCountryParametersWithStrings(Map<String,String> destinationCountryParameters)This field is used for any country-specific registration requirements.SendTextMessageRequest.BuilderdestinationPhoneNumber(String destinationPhoneNumber)The destination phone number in E.164 format.SendTextMessageRequest.BuilderdryRun(Boolean dryRun)When set to true, the message is checked and validated, but isn't sent to the end recipient.SendTextMessageRequest.Builderkeyword(String keyword)When you register a short code in the US, you must specify a program name.SendTextMessageRequest.BuildermaxPrice(String maxPrice)The maximum amount that you want to spend, in US dollars, per each text message.SendTextMessageRequest.BuildermessageBody(String messageBody)The body of the text message.SendTextMessageRequest.BuildermessageType(String messageType)The type of message.SendTextMessageRequest.BuildermessageType(MessageType messageType)The type of message.SendTextMessageRequest.BuilderoriginationIdentity(String originationIdentity)The origination identity of the message.SendTextMessageRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)SendTextMessageRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)SendTextMessageRequest.BuilderprotectConfigurationId(String protectConfigurationId)The unique identifier for the protect configuration.SendTextMessageRequest.BuildertimeToLive(Integer timeToLive)How long the text message is valid for, in seconds.-
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 Detail
-
destinationPhoneNumber
SendTextMessageRequest.Builder destinationPhoneNumber(String 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
SendTextMessageRequest.Builder originationIdentity(String 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
SendTextMessageRequest.Builder messageBody(String 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
SendTextMessageRequest.Builder messageType(String 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,MessageType
-
messageType
SendTextMessageRequest.Builder messageType(MessageType 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,MessageType
-
keyword
SendTextMessageRequest.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.
- 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
SendTextMessageRequest.Builder configurationSetName(String 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
SendTextMessageRequest.Builder maxPrice(String maxPrice)
The maximum amount that you want to spend, in US dollars, per each text message. If the calculated amount to send the text message is greater than
MaxPrice, the message is not sent and an error is returned.- Parameters:
maxPrice- The maximum amount that you want to spend, in US dollars, per each text message. If the calculated amount to send the text message is greater thanMaxPrice, the message is not sent and an error is returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeToLive
SendTextMessageRequest.Builder timeToLive(Integer timeToLive)
How long the text message is valid for, in seconds. By default this is 72 hours. If the messages isn't handed off before the TTL expires we stop attempting to hand off the message and return
TTL_EXPIREDevent.- Parameters:
timeToLive- How long the text message is valid for, in seconds. By default this is 72 hours. If the messages isn't handed off before the TTL expires we stop attempting to hand off the message and returnTTL_EXPIREDevent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
context
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.
- 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.
-
IN_ENTITY_IDThe entity ID or Principal Entity (PE) ID that you received after completing the sender ID registration process. -
IN_TEMPLATE_IDThe template ID that you received after completing the sender ID registration process.Make sure that the Template ID that you specify matches your message template exactly. If your message doesn't match the template that you provided during the registration process, the mobile carriers might reject your message.
- 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.-
IN_ENTITY_IDThe entity ID or Principal Entity (PE) ID that you received after completing the sender ID registration process. -
IN_TEMPLATE_IDThe template ID that you received after completing the sender ID registration process.Make sure that the Template ID that you specify matches your message template exactly. If your message doesn't match the template that you provided during the registration process, the mobile carriers might reject your message.
-
- 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.
-
IN_ENTITY_IDThe entity ID or Principal Entity (PE) ID that you received after completing the sender ID registration process. -
IN_TEMPLATE_IDThe template ID that you received after completing the sender ID registration process.Make sure that the Template ID that you specify matches your message template exactly. If your message doesn't match the template that you provided during the registration process, the mobile carriers might reject your message.
- 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.-
IN_ENTITY_IDThe entity ID or Principal Entity (PE) ID that you received after completing the sender ID registration process. -
IN_TEMPLATE_IDThe template ID that you received after completing the sender ID registration process.Make sure that the Template ID that you specify matches your message template exactly. If your message doesn't match the template that you provided during the registration process, the mobile carriers might reject your message.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
dryRun
SendTextMessageRequest.Builder dryRun(Boolean dryRun)
When set to true, the message is checked and validated, but isn't sent to the end recipient. You are not charged for using
DryRun.The Message Parts per Second (MPS) limit when using
DryRunis five. If your origination identity has a lower MPS limit then the lower MPS limit is used. For more information about MPS limits, see Message Parts per Second (MPS) limits in the AWS End User Messaging SMS User Guide..- Parameters:
dryRun- When set to true, the message is checked and validated, but isn't sent to the end recipient. You are not charged for usingDryRun.The Message Parts per Second (MPS) limit when using
DryRunis five. If your origination identity has a lower MPS limit then the lower MPS limit is used. For more information about MPS limits, see Message Parts per Second (MPS) limits in the AWS End User Messaging SMS User Guide..- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protectConfigurationId
SendTextMessageRequest.Builder protectConfigurationId(String 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
SendTextMessageRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-