@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 part.
|
String |
getMessageBody()
The body of the text message.
|
String |
getMessageType()
The type of message.
|
String |
getOriginationIdentity()
The origination identity of the message.
|
Integer |
getTimeToLive()
How long the text message is valid for.
|
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 part.
|
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 |
setTimeToLive(Integer timeToLive)
How long the text message is valid for.
|
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 part.
|
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 |
withTimeToLive(Integer timeToLive)
How long the text message is valid for.
|
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 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
public String getMessageType()
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
public SendTextMessageRequest withMessageType(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
public SendTextMessageRequest withMessageType(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
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 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.public String getMaxPrice()
The maximum amount that you want to spend, in US dollars, per each text message part. A text message can contain multiple parts.
public SendTextMessageRequest withMaxPrice(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.public void setTimeToLive(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.public Integer getTimeToLive()
How long the text message is valid for. By default this is 72 hours.
public SendTextMessageRequest withTimeToLive(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.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.
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.
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.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.
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.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.
dryRun
- When set to true, the message is checked and validated, but isn't sent to the end recipient.public Boolean getDryRun()
When set to true, the message is checked and validated, but isn't sent to the end recipient.
public SendTextMessageRequest withDryRun(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.public Boolean isDryRun()
When set to true, the message is checked and validated, but isn't sent to the end recipient.
public String toString()
toString
in class Object
Object.toString()
public SendTextMessageRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()