@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CampaignSmsMessage extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the content and settings for an SMS message that's sent to recipients of a campaign.
Constructor and Description |
---|
CampaignSmsMessage() |
Modifier and Type | Method and Description |
---|---|
CampaignSmsMessage |
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 |
getMessageType()
The SMS message type.
|
String |
getOriginationNumber()
The long code to send the SMS message from.
|
String |
getSenderId()
The sender ID to display on recipients' devices when they receive 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 |
setMessageType(MessageType messageType)
The SMS message type.
|
void |
setMessageType(String messageType)
The SMS message type.
|
void |
setOriginationNumber(String originationNumber)
The long code to send the SMS message from.
|
void |
setSenderId(String senderId)
The sender ID to display on recipients' devices when they receive 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.
|
CampaignSmsMessage |
withBody(String body)
The body of the SMS message.
|
CampaignSmsMessage |
withEntityId(String entityId)
The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
|
CampaignSmsMessage |
withMessageType(MessageType messageType)
The SMS message type.
|
CampaignSmsMessage |
withMessageType(String messageType)
The SMS message type.
|
CampaignSmsMessage |
withOriginationNumber(String originationNumber)
The long code to send the SMS message from.
|
CampaignSmsMessage |
withSenderId(String senderId)
The sender ID to display on recipients' devices when they receive the SMS message.
|
CampaignSmsMessage |
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 CampaignSmsMessage withBody(String body)
The body of the SMS message.
body
- The body of the SMS message.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 CampaignSmsMessage 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 CampaignSmsMessage 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 long code to send the SMS message from. This value should be one of the dedicated long codes that's assigned to your AWS account. Although it isn't required, we recommend that you specify the long code using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.
originationNumber
- The long code to send the SMS message from. This value should be one of the dedicated long codes that's
assigned to your AWS account. Although it isn't required, we recommend that you specify the long code
using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.public String getOriginationNumber()
The long code to send the SMS message from. This value should be one of the dedicated long codes that's assigned to your AWS account. Although it isn't required, we recommend that you specify the long code using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.
public CampaignSmsMessage withOriginationNumber(String originationNumber)
The long code to send the SMS message from. This value should be one of the dedicated long codes that's assigned to your AWS account. Although it isn't required, we recommend that you specify the long code using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.
originationNumber
- The long code to send the SMS message from. This value should be one of the dedicated long codes that's
assigned to your AWS account. Although it isn't required, we recommend that you specify the long code
using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.public void setSenderId(String senderId)
The sender ID to display on recipients' devices when they receive the SMS message.
senderId
- The sender ID to display on recipients' devices when they receive the SMS message.public String getSenderId()
The sender ID to display on recipients' devices when they receive the SMS message.
public CampaignSmsMessage withSenderId(String senderId)
The sender ID to display on recipients' devices when they receive the SMS message.
senderId
- The sender ID to display on recipients' devices when they receive the SMS message.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 CampaignSmsMessage 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 CampaignSmsMessage 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 CampaignSmsMessage clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.