public class CampaignSmsMessage
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
CampaignSmsMessage() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBody()
The SMS text body.
|
java.lang.String |
getMessageType()
Is this is a transactional SMS message, otherwise a promotional message.
|
java.lang.String |
getSenderId()
Sender ID of sent message.
|
int |
hashCode() |
void |
setBody(java.lang.String body)
The SMS text body.
|
void |
setMessageType(MessageType messageType)
Is this is a transactional SMS message, otherwise a promotional message.
|
void |
setMessageType(java.lang.String messageType)
Is this is a transactional SMS message, otherwise a promotional message.
|
void |
setSenderId(java.lang.String senderId)
Sender ID of sent message.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CampaignSmsMessage |
withBody(java.lang.String body)
The SMS text body.
|
CampaignSmsMessage |
withMessageType(MessageType messageType)
Is this is a transactional SMS message, otherwise a promotional message.
|
CampaignSmsMessage |
withMessageType(java.lang.String messageType)
Is this is a transactional SMS message, otherwise a promotional message.
|
CampaignSmsMessage |
withSenderId(java.lang.String senderId)
Sender ID of sent message.
|
public java.lang.String getBody()
public void setBody(java.lang.String body)
body
- The SMS text body.public CampaignSmsMessage withBody(java.lang.String body)
Returns a reference to this object so that method calls can be chained together.
body
- The SMS text body.public java.lang.String getMessageType()
Constraints:
Allowed Values: TRANSACTIONAL, PROMOTIONAL
MessageType
public void setMessageType(java.lang.String messageType)
Constraints:
Allowed Values: TRANSACTIONAL, PROMOTIONAL
messageType
- Is this is a transactional SMS message, otherwise a
promotional message.MessageType
public CampaignSmsMessage withMessageType(java.lang.String messageType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: TRANSACTIONAL, PROMOTIONAL
messageType
- Is this is a transactional SMS message, otherwise a
promotional message.MessageType
public void setMessageType(MessageType messageType)
Constraints:
Allowed Values: TRANSACTIONAL, PROMOTIONAL
messageType
- Is this is a transactional SMS message, otherwise a
promotional message.MessageType
public CampaignSmsMessage withMessageType(MessageType messageType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: TRANSACTIONAL, PROMOTIONAL
messageType
- Is this is a transactional SMS message, otherwise a
promotional message.MessageType
public java.lang.String getSenderId()
public void setSenderId(java.lang.String senderId)
senderId
- Sender ID of sent message.public CampaignSmsMessage withSenderId(java.lang.String senderId)
Returns a reference to this object so that method calls can be chained together.
senderId
- Sender ID of sent message.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.