@Generated(value="software.amazon.awssdk:codegen") public final class SMSMessage extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SMSMessage.Builder,SMSMessage>
Specifies the default settings for a one-time SMS message that's sent directly to an endpoint.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SMSMessage.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
body()
The body of the SMS message.
|
static SMSMessage.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
keyword()
The SMS program name that you provided to AWS Support when you requested your dedicated number.
|
MessageType |
messageType()
The SMS message type.
|
String |
messageTypeAsString()
The SMS message type.
|
String |
originationNumber()
The number to send the SMS message from.
|
List<SdkField<?>> |
sdkFields() |
String |
senderId()
The sender ID to display as the sender of the message on a recipient's device.
|
static Class<? extends SMSMessage.Builder> |
serializableBuilderClass() |
Map<String,List<String>> |
substitutions()
The message variables to use in the SMS message.
|
SMSMessage.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String body()
The body of the SMS message.
public String keyword()
The SMS program name that you provided to AWS Support when you requested your dedicated number.
public MessageType messageType()
The SMS message type. Valid values are: TRANSACTIONAL, the message is critical or time-sensitive, such as a one-time password that supports a customer transaction; and, PROMOTIONAL, the message is not critical or time-sensitive, such as a marketing message.
If the service returns an enum value that is not available in the current SDK version, messageType will
return MessageType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
messageTypeAsString().
MessageTypepublic String messageTypeAsString()
The SMS message type. Valid values are: TRANSACTIONAL, the message is critical or time-sensitive, such as a one-time password that supports a customer transaction; and, PROMOTIONAL, the message is not critical or time-sensitive, such as a marketing message.
If the service returns an enum value that is not available in the current SDK version, messageType will
return MessageType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
messageTypeAsString().
MessageTypepublic String originationNumber()
The number to send the SMS message from. This value should be one of the dedicated long or short codes that's assigned to your AWS account. If you don't specify a long or short code, Amazon Pinpoint assigns a random long code to the SMS message and sends the message from that code.
public 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.
public Map<String,List<String>> substitutions()
The message variables to use in the SMS message. You can override the default variables with individual address variables.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public SMSMessage.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SMSMessage.Builder,SMSMessage>public static SMSMessage.Builder builder()
public static Class<? extends SMSMessage.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2019. All rights reserved.