@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class JourneySMSMessage extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the sender ID and message type for an SMS message that's sent to participants in a journey.
| Constructor and Description |
|---|
JourneySMSMessage() |
| Modifier and Type | Method and Description |
|---|---|
JourneySMSMessage |
clone() |
boolean |
equals(Object obj) |
String |
getMessageType()
The SMS message type.
|
String |
getSenderId()
The sender ID to display as the sender of the message on a recipient's device.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setMessageType(String messageType)
The SMS message type.
|
void |
setSenderId(String senderId)
The sender ID to display as the sender of the message on a recipient's device.
|
String |
toString()
Returns a string representation of this object.
|
JourneySMSMessage |
withMessageType(MessageType messageType)
The SMS message type.
|
JourneySMSMessage |
withMessageType(String messageType)
The SMS message type.
|
JourneySMSMessage |
withSenderId(String senderId)
The sender ID to display as the sender of the message on a recipient's device.
|
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 JourneySMSMessage 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 JourneySMSMessage 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 as the sender of the message on a recipient's device. Support for sender IDs varies by country or region. For more information, see Supported Countries and Regions in the Amazon Pinpoint User Guide.
senderId - The sender ID to display as the sender of the message on a recipient's device. Support for sender IDs
varies by country or region. For more information, see Supported
Countries and Regions in the Amazon Pinpoint User Guide.public String getSenderId()
The sender ID to display as the sender of the message on a recipient's device. Support for sender IDs varies by country or region. For more information, see Supported Countries and Regions in the Amazon Pinpoint User Guide.
public JourneySMSMessage withSenderId(String senderId)
The sender ID to display as the sender of the message on a recipient's device. Support for sender IDs varies by country or region. For more information, see Supported Countries and Regions in the Amazon Pinpoint User Guide.
senderId - The sender ID to display as the sender of the message on a recipient's device. Support for sender IDs
varies by country or region. For more information, see Supported
Countries and Regions in the Amazon Pinpoint User Guide.public String toString()
toString in class ObjectObject.toString()public JourneySMSMessage clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.