@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SendTextMessageRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
SendTextMessageRequest() |
Modifier and Type | Method and Description |
---|---|
SendTextMessageRequest |
addContextEntry(String key,
String value)
Add a single Context entry
|
SendTextMessageRequest |
addDestinationCountryParametersEntry(String key,
String value)
Add a single DestinationCountryParameters entry
|
SendTextMessageRequest |
clearContextEntries()
Removes all the entries added into Context.
|
SendTextMessageRequest |
clearDestinationCountryParametersEntries()
Removes all the entries added into DestinationCountryParameters.
|
SendTextMessageRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getConfigurationSetName()
The name of the configuration set to use.
|
Map<String,String> |
getContext()
You can specify custom data in this field.
|
Map<String,String> |
getDestinationCountryParameters()
This field is used for any country-specific registration requirements.
|
String |
getDestinationPhoneNumber()
The destination phone number in E.164 format.
|
Boolean |
getDryRun()
When set to true, the message is checked and validated, but isn't sent to the end recipient.
|
String |
getKeyword()
When you register a short code in the US, you must specify a program name.
|
String |
getMaxPrice()
The maximum amount that you want to spend, in US dollars, per each text message.
|
String |
getMessageBody()
The body of the text message.
|
String |
getMessageType()
The type of message.
|
String |
getOriginationIdentity()
The origination identity of the message.
|
String |
getProtectConfigurationId()
The unique identifier for the protect configuration.
|
Integer |
getTimeToLive()
How long the text message is valid for, in seconds.
|
int |
hashCode() |
Boolean |
isDryRun()
When set to true, the message is checked and validated, but isn't sent to the end recipient.
|
void |
setConfigurationSetName(String configurationSetName)
The name of the configuration set to use.
|
void |
setContext(Map<String,String> context)
You can specify custom data in this field.
|
void |
setDestinationCountryParameters(Map<String,String> destinationCountryParameters)
This field is used for any country-specific registration requirements.
|
void |
setDestinationPhoneNumber(String destinationPhoneNumber)
The destination phone number in E.164 format.
|
void |
setDryRun(Boolean dryRun)
When set to true, the message is checked and validated, but isn't sent to the end recipient.
|
void |
setKeyword(String keyword)
When you register a short code in the US, you must specify a program name.
|
void |
setMaxPrice(String maxPrice)
The maximum amount that you want to spend, in US dollars, per each text message.
|
void |
setMessageBody(String messageBody)
The body of the text message.
|
void |
setMessageType(String messageType)
The type of message.
|
void |
setOriginationIdentity(String originationIdentity)
The origination identity of the message.
|
void |
setProtectConfigurationId(String protectConfigurationId)
The unique identifier for the protect configuration.
|
void |
setTimeToLive(Integer timeToLive)
How long the text message is valid for, in seconds.
|
String |
toString()
Returns a string representation of this object.
|
SendTextMessageRequest |
withConfigurationSetName(String configurationSetName)
The name of the configuration set to use.
|
SendTextMessageRequest |
withContext(Map<String,String> context)
You can specify custom data in this field.
|
SendTextMessageRequest |
withDestinationCountryParameters(Map<String,String> destinationCountryParameters)
This field is used for any country-specific registration requirements.
|
SendTextMessageRequest |
withDestinationPhoneNumber(String destinationPhoneNumber)
The destination phone number in E.164 format.
|
SendTextMessageRequest |
withDryRun(Boolean dryRun)
When set to true, the message is checked and validated, but isn't sent to the end recipient.
|
SendTextMessageRequest |
withKeyword(String keyword)
When you register a short code in the US, you must specify a program name.
|
SendTextMessageRequest |
withMaxPrice(String maxPrice)
The maximum amount that you want to spend, in US dollars, per each text message.
|
SendTextMessageRequest |
withMessageBody(String messageBody)
The body of the text message.
|
SendTextMessageRequest |
withMessageType(MessageType messageType)
The type of message.
|
SendTextMessageRequest |
withMessageType(String messageType)
The type of message.
|
SendTextMessageRequest |
withOriginationIdentity(String originationIdentity)
The origination identity of the message.
|
SendTextMessageRequest |
withProtectConfigurationId(String protectConfigurationId)
The unique identifier for the protect configuration.
|
SendTextMessageRequest |
withTimeToLive(Integer timeToLive)
How long the text message is valid for, in seconds.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setDestinationPhoneNumber(String destinationPhoneNumber)
The destination phone number in E.164 format.
destinationPhoneNumber
- The destination phone number in E.164 format.public String getDestinationPhoneNumber()
The destination phone number in E.164 format.
public SendTextMessageRequest withDestinationPhoneNumber(String destinationPhoneNumber)
The destination phone number in E.164 format.
destinationPhoneNumber
- The destination phone number in E.164 format.public void setOriginationIdentity(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.public String getOriginationIdentity()
The origination identity of the message. This can be either the PhoneNumber, PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.
public SendTextMessageRequest withOriginationIdentity(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.public void setMessageBody(String messageBody)
The body of the text message.
messageBody
- The body of the text message.public String getMessageBody()
The body of the text message.
public SendTextMessageRequest withMessageBody(String messageBody)
The body of the text message.
messageBody
- The body of the text message.public void setMessageType(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.
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.MessageType
public String getMessageType()
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.
MessageType
public SendTextMessageRequest withMessageType(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.
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.MessageType
public SendTextMessageRequest withMessageType(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.
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.MessageType
public void setKeyword(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.public String getKeyword()
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.
public SendTextMessageRequest withKeyword(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.public void setConfigurationSetName(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.public String getConfigurationSetName()
The name of the configuration set to use. This can be either the ConfigurationSetName or ConfigurationSetArn.
public SendTextMessageRequest withConfigurationSetName(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.public void setMaxPrice(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.
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.public String getMaxPrice()
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.
MaxPrice
, the message is not sent and an error is
returned.public SendTextMessageRequest withMaxPrice(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.
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.public void setTimeToLive(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_EXPIRED
event.
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_EXPIRED
event.public Integer getTimeToLive()
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_EXPIRED
event.
TTL_EXPIRED
event.public SendTextMessageRequest withTimeToLive(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_EXPIRED
event.
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_EXPIRED
event.public Map<String,String> getContext()
You can specify custom data in this field. If you do, that data is logged to the event destination.
public void setContext(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.public SendTextMessageRequest withContext(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.public SendTextMessageRequest addContextEntry(String key, String value)
public SendTextMessageRequest clearContextEntries()
public Map<String,String> getDestinationCountryParameters()
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_ID
The entity ID or Principal Entity (PE) ID that you received after completing the sender
ID registration process.
IN_TEMPLATE_ID
The 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.
IN_ENTITY_ID
The entity ID or Principal Entity (PE) ID that you received after completing
the sender ID registration process.
IN_TEMPLATE_ID
The 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.
public void setDestinationCountryParameters(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_ID
The entity ID or Principal Entity (PE) ID that you received after completing the sender
ID registration process.
IN_TEMPLATE_ID
The 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.
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_ID
The entity ID or Principal Entity (PE) ID that you received after completing the
sender ID registration process.
IN_TEMPLATE_ID
The 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.
public SendTextMessageRequest withDestinationCountryParameters(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_ID
The entity ID or Principal Entity (PE) ID that you received after completing the sender
ID registration process.
IN_TEMPLATE_ID
The 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.
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_ID
The entity ID or Principal Entity (PE) ID that you received after completing the
sender ID registration process.
IN_TEMPLATE_ID
The 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.
public SendTextMessageRequest addDestinationCountryParametersEntry(String key, String value)
public SendTextMessageRequest clearDestinationCountryParametersEntries()
public void setDryRun(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 DryRun
is 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..
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 DryRun
is 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..
public Boolean getDryRun()
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 DryRun
is 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..
DryRun
.
The Message Parts per Second (MPS) limit when using DryRun
is 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..
public SendTextMessageRequest withDryRun(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 DryRun
is 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..
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 DryRun
is 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..
public Boolean isDryRun()
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 DryRun
is 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..
DryRun
.
The Message Parts per Second (MPS) limit when using DryRun
is 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..
public void setProtectConfigurationId(String protectConfigurationId)
The unique identifier for the protect configuration.
protectConfigurationId
- The unique identifier for the protect configuration.public String getProtectConfigurationId()
The unique identifier for the protect configuration.
public SendTextMessageRequest withProtectConfigurationId(String protectConfigurationId)
The unique identifier for the protect configuration.
protectConfigurationId
- The unique identifier for the protect configuration.public String toString()
toString
in class Object
Object.toString()
public SendTextMessageRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()