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