@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() |
String |
entityId()
The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasSubstitutions()
Returns true if the Substitutions property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
String |
keyword()
The SMS program name that you provided to AWS Support when you requested your dedicated number.
|
String |
mediaUrl()
This field is reserved for future use.
|
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.
|
String |
templateId()
The template ID received from the regulatory body for sending SMS in your country.
|
SMSMessage.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String body()
The body of the SMS message.
public final String keyword()
The SMS program name that you provided to AWS Support when you requested your dedicated number.
public final String mediaUrl()
This field is reserved for future use.
public final 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).
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 final String messageTypeAsString()
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).
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 final 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 final 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 final boolean hasSubstitutions()
public final 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.
You can use hasSubstitutions() to see if a value was sent in this field.
public final String entityId()
The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
public final String templateId()
The template ID received from the regulatory body for sending SMS in your country.
public SMSMessage.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SMSMessage.Builder,SMSMessage>public static SMSMessage.Builder builder()
public static Class<? extends SMSMessage.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.