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 |
entityId(String entityId)
The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
|
SMSMessage.Builder |
keyword(String keyword)
The SMS program name that you provided to AWS Support when you requested your dedicated number.
|
SMSMessage.Builder |
mediaUrl(String mediaUrl)
This field is reserved for future use.
|
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.
|
SMSMessage.Builder |
templateId(String templateId)
The template ID received from the regulatory body for sending SMS in your country.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
SMSMessage.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 mediaUrl(String mediaUrl)
This field is reserved for future use.
mediaUrl
- This field is reserved for future use.SMSMessage.Builder messageType(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).MessageType
,
MessageType
SMSMessage.Builder messageType(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).MessageType
,
MessageType
SMSMessage.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.SMSMessage.Builder entityId(String entityId)
The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
entityId
- The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your
country.SMSMessage.Builder templateId(String templateId)
The template ID received from the regulatory body for sending SMS in your country.
templateId
- The template ID received from the regulatory body for sending SMS in your country.Copyright © 2021. All rights reserved.