MessageRequest class

Specifies the configuration and other settings for a message.

Constructors

MessageRequest({required DirectMessageConfiguration messageConfiguration, Map<String, AddressConfiguration>? addresses, Map<String, String>? context, Map<String, EndpointSendConfiguration>? endpoints, TemplateConfiguration? templateConfiguration, String? traceId})

Properties

addresses Map<String, AddressConfiguration>?
A map of key-value pairs, where each key is an address and each value is an AddressConfiguration object. An address can be a push notification token, a phone number, or an email address. You can use an AddressConfiguration object to tailor the message for an address by specifying settings such as content overrides and message variables.
final
context Map<String, String>?
A map of custom attributes to attach to the message. For a push notification, this payload is added to the data.pinpoint object. For an email or text message, this payload is added to email/SMS delivery receipt event attributes.
final
endpoints Map<String, EndpointSendConfiguration>?
A map of key-value pairs, where each key is an endpoint ID and each value is an EndpointSendConfiguration object. You can use an EndpointSendConfiguration object to tailor the message for an endpoint by specifying settings such as content overrides and message variables.
final
hashCode int
The hash code for this object.
no setterinherited
messageConfiguration DirectMessageConfiguration
The settings and content for the default message and any default messages that you defined for specific channels.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
templateConfiguration TemplateConfiguration?
The message template to use for the message.
final
traceId String?
The unique identifier for tracing the message. This identifier is visible to message recipients.
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