SMSMessage class

Specifies the default settings for a one-time SMS message that's sent directly to an endpoint.

Constructors

SMSMessage({String? body, String? keyword, String? mediaUrl, MessageType? messageType, String? originationNumber, String? senderId, Map<String, List<String>>? substitutions})

Properties

body String?
The body of the SMS message.
final
hashCode int
The hash code for this object.
no setterinherited
keyword String?
The SMS program name that you provided to AWS Support when you requested your dedicated number.
final
mediaUrl String?
This field is reserved for future use.
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).
final
originationNumber String?
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.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
senderId String?
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.
final
substitutions Map<String, List<String>>?
The message variables to use in the SMS message. You can override the default variables with individual address variables.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited