public static interface SMSMessage.Builder extends SdkPojo, CopyableBuilder<SMSMessage.Builder,SMSMessage>
| Modifier and Type | Method and Description |
|---|---|
SMSMessage.Builder |
body(String body)
The body of the SMS message.
|
SMSMessage.Builder |
keyword(String keyword)
The SMS program name that you provided to AWS Support when you requested your dedicated number.
|
SMSMessage.Builder |
messageType(MessageType messageType)
The SMS message type.
|
SMSMessage.Builder |
messageType(String messageType)
The SMS message type.
|
SMSMessage.Builder |
originationNumber(String originationNumber)
The number to send the SMS message from.
|
SMSMessage.Builder |
senderId(String senderId)
The sender ID to display as the sender of the message on a recipient's device.
|
SMSMessage.Builder |
substitutions(Map<String,? extends Collection<String>> substitutions)
The message variables to use in the SMS message.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildSMSMessage.Builder body(String body)
The body of the SMS message.
body - The body of the SMS message.SMSMessage.Builder keyword(String keyword)
The SMS program name that you provided to AWS Support when you requested your dedicated number.
keyword - The SMS program name that you provided to AWS Support when you requested your dedicated number.SMSMessage.Builder messageType(String 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.
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.MessageType,
MessageTypeSMSMessage.Builder messageType(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.
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.MessageType,
MessageTypeSMSMessage.Builder originationNumber(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.
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.SMSMessage.Builder senderId(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.
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.SMSMessage.Builder substitutions(Map<String,? extends Collection<String>> substitutions)
The message variables to use in the SMS message. You can override the default variables with individual address variables.
substitutions - The message variables to use in the SMS message. You can override the default variables with
individual address variables.Copyright © 2019. All rights reserved.