@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SMSMessage extends Object implements Serializable, Cloneable, StructuredPojo
Constructor and Description |
---|
SMSMessage() |
Modifier and Type | Method and Description |
---|---|
SMSMessage |
addSubstitutionsEntry(String key,
List<String> value) |
SMSMessage |
clearSubstitutionsEntries()
Removes all the entries added into Substitutions.
|
SMSMessage |
clone() |
boolean |
equals(Object obj) |
String |
getBody()
The body of the SMS message.
|
String |
getKeyword()
The SMS program name that you provided to AWS Support when you requested your dedicated number.
|
String |
getMessageType()
Is this a transaction priority message or lower priority.
|
String |
getOriginationNumber()
The phone number that the SMS message originates from.
|
String |
getSenderId()
The sender ID that is shown as the message sender on the recipient's device.
|
Map<String,List<String>> |
getSubstitutions()
Default message substitutions.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setBody(String body)
The body of the SMS message.
|
void |
setKeyword(String keyword)
The SMS program name that you provided to AWS Support when you requested your dedicated number.
|
void |
setMessageType(MessageType messageType)
Is this a transaction priority message or lower priority.
|
void |
setMessageType(String messageType)
Is this a transaction priority message or lower priority.
|
void |
setOriginationNumber(String originationNumber)
The phone number that the SMS message originates from.
|
void |
setSenderId(String senderId)
The sender ID that is shown as the message sender on the recipient's device.
|
void |
setSubstitutions(Map<String,List<String>> substitutions)
Default message substitutions.
|
String |
toString()
Returns a string representation of this object.
|
SMSMessage |
withBody(String body)
The body of the SMS message.
|
SMSMessage |
withKeyword(String keyword)
The SMS program name that you provided to AWS Support when you requested your dedicated number.
|
SMSMessage |
withMessageType(MessageType messageType)
Is this a transaction priority message or lower priority.
|
SMSMessage |
withMessageType(String messageType)
Is this a transaction priority message or lower priority.
|
SMSMessage |
withOriginationNumber(String originationNumber)
The phone number that the SMS message originates from.
|
SMSMessage |
withSenderId(String senderId)
The sender ID that is shown as the message sender on the recipient's device.
|
SMSMessage |
withSubstitutions(Map<String,List<String>> substitutions)
Default message substitutions.
|
public void setBody(String body)
body
- The body of the SMS message.public String getBody()
public SMSMessage withBody(String body)
body
- The body of the SMS message.public void setKeyword(String keyword)
keyword
- The SMS program name that you provided to AWS Support when you requested your dedicated number.public String getKeyword()
public SMSMessage withKeyword(String keyword)
keyword
- The SMS program name that you provided to AWS Support when you requested your dedicated number.public void setMessageType(String messageType)
messageType
- Is this a transaction priority message or lower priority.MessageType
public String getMessageType()
MessageType
public SMSMessage withMessageType(String messageType)
messageType
- Is this a transaction priority message or lower priority.MessageType
public void setMessageType(MessageType messageType)
messageType
- Is this a transaction priority message or lower priority.MessageType
public SMSMessage withMessageType(MessageType messageType)
messageType
- Is this a transaction priority message or lower priority.MessageType
public void setOriginationNumber(String originationNumber)
originationNumber
- The phone number that the SMS message originates from. Specify one of the dedicated long codes or short
codes that you requested from AWS Support and that is assigned to your account. If this attribute is not
specified, Amazon Pinpoint randomly assigns a long code.public String getOriginationNumber()
public SMSMessage withOriginationNumber(String originationNumber)
originationNumber
- The phone number that the SMS message originates from. Specify one of the dedicated long codes or short
codes that you requested from AWS Support and that is assigned to your account. If this attribute is not
specified, Amazon Pinpoint randomly assigns a long code.public void setSenderId(String senderId)
senderId
- The sender ID that is shown as the message sender on the recipient's device. Support for sender IDs varies
by country or region.public String getSenderId()
public SMSMessage withSenderId(String senderId)
senderId
- The sender ID that is shown as the message sender on the recipient's device. Support for sender IDs varies
by country or region.public Map<String,List<String>> getSubstitutions()
public void setSubstitutions(Map<String,List<String>> substitutions)
substitutions
- Default message substitutions. Can be overridden by individual address substitutions.public SMSMessage withSubstitutions(Map<String,List<String>> substitutions)
substitutions
- Default message substitutions. Can be overridden by individual address substitutions.public SMSMessage addSubstitutionsEntry(String key, List<String> value)
public SMSMessage clearSubstitutionsEntries()
public String toString()
toString
in class Object
Object.toString()
public SMSMessage clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2019. All rights reserved.