@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 |
getMessageType()
The type of SMS message.
|
String |
getSenderId()
The sender ID to display on recipients' devices when they receive the SMS message.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setBody(String body)
The body of the SMS message.
|
void |
setMessageType(MessageType messageType)
The type of SMS message.
|
void |
setMessageType(String messageType)
The type of SMS message.
|
void |
setSenderId(String senderId)
The sender ID to display on recipients' devices when they receive the SMS message.
|
String |
toString()
Returns a string representation of this object.
|
CampaignSmsMessage |
withBody(String body)
The body of the SMS message.
|
CampaignSmsMessage |
withMessageType(MessageType messageType)
The type of SMS message.
|
CampaignSmsMessage |
withMessageType(String messageType)
The type of SMS message.
|
CampaignSmsMessage |
withSenderId(String senderId)
The sender ID to display on recipients' devices when they receive the SMS message.
|
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 type of SMS message. Valid values are: TRANSACTIONAL, the message is critical or time-sensitive, such as a one-time password that supports a customer transaction; and, PROMOTIONAL, the message isn't critical or time-sensitive, such as a marketing message.
messageType - The type of SMS message. Valid values are: TRANSACTIONAL, the message is critical or time-sensitive, such
as a one-time password that supports a customer transaction; and, PROMOTIONAL, the message isn't critical
or time-sensitive, such as a marketing message.MessageTypepublic String getMessageType()
The type of SMS message. Valid values are: TRANSACTIONAL, the message is critical or time-sensitive, such as a one-time password that supports a customer transaction; and, PROMOTIONAL, the message isn't critical or time-sensitive, such as a marketing message.
MessageTypepublic CampaignSmsMessage withMessageType(String messageType)
The type of SMS message. Valid values are: TRANSACTIONAL, the message is critical or time-sensitive, such as a one-time password that supports a customer transaction; and, PROMOTIONAL, the message isn't critical or time-sensitive, such as a marketing message.
messageType - The type of SMS message. Valid values are: TRANSACTIONAL, the message is critical or time-sensitive, such
as a one-time password that supports a customer transaction; and, PROMOTIONAL, the message isn't critical
or time-sensitive, such as a marketing message.MessageTypepublic void setMessageType(MessageType messageType)
The type of SMS message. Valid values are: TRANSACTIONAL, the message is critical or time-sensitive, such as a one-time password that supports a customer transaction; and, PROMOTIONAL, the message isn't critical or time-sensitive, such as a marketing message.
messageType - The type of SMS message. Valid values are: TRANSACTIONAL, the message is critical or time-sensitive, such
as a one-time password that supports a customer transaction; and, PROMOTIONAL, the message isn't critical
or time-sensitive, such as a marketing message.MessageTypepublic CampaignSmsMessage withMessageType(MessageType messageType)
The type of SMS message. Valid values are: TRANSACTIONAL, the message is critical or time-sensitive, such as a one-time password that supports a customer transaction; and, PROMOTIONAL, the message isn't critical or time-sensitive, such as a marketing message.
messageType - The type of SMS message. Valid values are: TRANSACTIONAL, the message is critical or time-sensitive, such
as a one-time password that supports a customer transaction; and, PROMOTIONAL, the message isn't critical
or time-sensitive, such as a marketing message.MessageTypepublic 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 String toString()
toString in class ObjectObject.toString()public CampaignSmsMessage clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2019. All rights reserved.