@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SMSMessage extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the default settings for a one-time SMS message that's sent directly to an endpoint.
Constructor and Description |
---|
SMSMessage() |
Modifier and Type | Method and Description |
---|---|
SMSMessage |
addSubstitutionsEntry(String key,
List<String> value)
Add a single Substitutions entry
|
SMSMessage |
clearSubstitutionsEntries()
Removes all the entries added into Substitutions.
|
SMSMessage |
clone() |
boolean |
equals(Object obj) |
String |
getBody()
The body of the SMS message.
|
String |
getEntityId()
The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
|
String |
getKeyword()
The SMS program name that you provided to AWS Support when you requested your dedicated number.
|
String |
getMediaUrl()
This field is reserved for future use.
|
String |
getMessageType()
The SMS message type.
|
String |
getOriginationNumber()
The number to send the SMS message from.
|
String |
getSenderId()
The sender ID to display as the sender of the message on a recipient's device.
|
Map<String,List<String>> |
getSubstitutions()
The message variables to use in the SMS message.
|
String |
getTemplateId()
The template ID received from the regulatory body for sending SMS in your country.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBody(String body)
The body of the SMS message.
|
void |
setEntityId(String entityId)
The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
|
void |
setKeyword(String keyword)
The SMS program name that you provided to AWS Support when you requested your dedicated number.
|
void |
setMediaUrl(String mediaUrl)
This field is reserved for future use.
|
void |
setMessageType(MessageType messageType)
The SMS message type.
|
void |
setMessageType(String messageType)
The SMS message type.
|
void |
setOriginationNumber(String originationNumber)
The number to send the SMS message from.
|
void |
setSenderId(String senderId)
The sender ID to display as the sender of the message on a recipient's device.
|
void |
setSubstitutions(Map<String,List<String>> substitutions)
The message variables to use in the SMS message.
|
void |
setTemplateId(String templateId)
The template ID received from the regulatory body for sending SMS in your country.
|
String |
toString()
Returns a string representation of this object.
|
SMSMessage |
withBody(String body)
The body of the SMS message.
|
SMSMessage |
withEntityId(String entityId)
The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
|
SMSMessage |
withKeyword(String keyword)
The SMS program name that you provided to AWS Support when you requested your dedicated number.
|
SMSMessage |
withMediaUrl(String mediaUrl)
This field is reserved for future use.
|
SMSMessage |
withMessageType(MessageType messageType)
The SMS message type.
|
SMSMessage |
withMessageType(String messageType)
The SMS message type.
|
SMSMessage |
withOriginationNumber(String originationNumber)
The number to send the SMS message from.
|
SMSMessage |
withSenderId(String senderId)
The sender ID to display as the sender of the message on a recipient's device.
|
SMSMessage |
withSubstitutions(Map<String,List<String>> substitutions)
The message variables to use in the SMS message.
|
SMSMessage |
withTemplateId(String templateId)
The template ID received from the regulatory body for sending SMS in your country.
|
public void setBody(String body)
The body of the SMS message.
body
- The body of the SMS message.public String getBody()
The body of the SMS message.
public SMSMessage withBody(String body)
The body of the SMS message.
body
- The body of the SMS message.public void setKeyword(String keyword)
The SMS program name that you provided to AWS Support when you requested your dedicated number.
keyword
- The SMS program name that you provided to AWS Support when you requested your dedicated number.public String getKeyword()
The SMS program name that you provided to AWS Support when you requested your dedicated number.
public SMSMessage withKeyword(String keyword)
The SMS program name that you provided to AWS Support when you requested your dedicated number.
keyword
- The SMS program name that you provided to AWS Support when you requested your dedicated number.public void setMediaUrl(String mediaUrl)
This field is reserved for future use.
mediaUrl
- This field is reserved for future use.public String getMediaUrl()
This field is reserved for future use.
public SMSMessage withMediaUrl(String mediaUrl)
This field is reserved for future use.
mediaUrl
- This field is reserved for future use.public void setMessageType(String messageType)
The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).
messageType
- The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive,
such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such
as marketing messages).MessageType
public String getMessageType()
The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).
MessageType
public SMSMessage withMessageType(String messageType)
The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).
messageType
- The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive,
such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such
as marketing messages).MessageType
public void setMessageType(MessageType messageType)
The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).
messageType
- The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive,
such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such
as marketing messages).MessageType
public SMSMessage withMessageType(MessageType messageType)
The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).
messageType
- The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive,
such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such
as marketing messages).MessageType
public void setOriginationNumber(String originationNumber)
The number to send the SMS message from. This value should be one of the dedicated long or short codes that's assigned to your AWS account. If you don't specify a long or short code, Amazon Pinpoint assigns a random long code to the SMS message and sends the message from that code.
originationNumber
- The number to send the SMS message from. This value should be one of the dedicated long or short codes
that's assigned to your AWS account. If you don't specify a long or short code, Amazon Pinpoint assigns a
random long code to the SMS message and sends the message from that code.public String getOriginationNumber()
The number to send the SMS message from. This value should be one of the dedicated long or short codes that's assigned to your AWS account. If you don't specify a long or short code, Amazon Pinpoint assigns a random long code to the SMS message and sends the message from that code.
public SMSMessage withOriginationNumber(String originationNumber)
The number to send the SMS message from. This value should be one of the dedicated long or short codes that's assigned to your AWS account. If you don't specify a long or short code, Amazon Pinpoint assigns a random long code to the SMS message and sends the message from that code.
originationNumber
- The number to send the SMS message from. This value should be one of the dedicated long or short codes
that's assigned to your AWS account. If you don't specify a long or short code, Amazon Pinpoint assigns a
random long code to the SMS message and sends the message from that code.public void setSenderId(String senderId)
The sender ID to display as the sender of the message on a recipient's device. Support for sender IDs varies by country or region.
senderId
- The sender ID to display as the sender of the message on a recipient's device. Support for sender IDs
varies by country or region.public String getSenderId()
The sender ID to display as the sender of the message on a recipient's device. Support for sender IDs varies by country or region.
public SMSMessage withSenderId(String senderId)
The sender ID to display as the sender of the message on a recipient's device. Support for sender IDs varies by country or region.
senderId
- The sender ID to display as the sender of the message on a recipient's device. Support for sender IDs
varies by country or region.public Map<String,List<String>> getSubstitutions()
The message variables to use in the SMS message. You can override the default variables with individual address variables.
public void setSubstitutions(Map<String,List<String>> substitutions)
The message variables to use in the SMS message. You can override the default variables with individual address variables.
substitutions
- The message variables to use in the SMS message. You can override the default variables with individual
address variables.public SMSMessage withSubstitutions(Map<String,List<String>> substitutions)
The message variables to use in the SMS message. You can override the default variables with individual address variables.
substitutions
- The message variables to use in the SMS message. You can override the default variables with individual
address variables.public SMSMessage addSubstitutionsEntry(String key, List<String> value)
public SMSMessage clearSubstitutionsEntries()
public void setEntityId(String entityId)
The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
entityId
- The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your
country.public String getEntityId()
The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
public SMSMessage withEntityId(String entityId)
The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
entityId
- The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your
country.public void setTemplateId(String templateId)
The template ID received from the regulatory body for sending SMS in your country.
templateId
- The template ID received from the regulatory body for sending SMS in your country.public String getTemplateId()
The template ID received from the regulatory body for sending SMS in your country.
public SMSMessage withTemplateId(String templateId)
The template ID received from the regulatory body for sending SMS in your country.
templateId
- The template ID received from the regulatory body for sending SMS in your country.public String toString()
toString
in class Object
Object.toString()
public SMSMessage clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.