@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)
Marshalls this structured data using the given
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.MessageType
public 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.
MessageType
public 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.MessageType
public 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.MessageType
public 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.MessageType
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 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.