@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 SMS message type.
|
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 SMS message type.
|
void |
setMessageType(String messageType)
The SMS message type.
|
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 SMS message type.
|
CampaignSmsMessage |
withMessageType(String messageType)
The SMS message type.
|
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 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).MessageTypepublic 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).
MessageTypepublic 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).MessageTypepublic 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).MessageTypepublic 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).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)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.