Struct aws_sdk_pinpoint::model::message_request::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for MessageRequest
Implementations
Adds a key-value pair to addresses
.
To override the contents of this collection use set_addresses
.
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.
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.
Adds a key-value pair to context
.
To override the contents of this collection use set_context
.
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.
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.
Adds a key-value pair to endpoints
.
To override the contents of this collection use set_endpoints
.
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.
pub fn set_endpoints(
self,
input: Option<HashMap<String, EndpointSendConfiguration>>
) -> Self
pub fn set_endpoints(
self,
input: Option<HashMap<String, EndpointSendConfiguration>>
) -> Self
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.
The settings and content for the default message and any default messages that you defined for specific channels.
The settings and content for the default message and any default messages that you defined for specific channels.
The message template to use for the message.
The message template to use for the message.
The unique identifier for tracing the message. This identifier is visible to message recipients.
The unique identifier for tracing the message. This identifier is visible to message recipients.
Consumes the builder and constructs a MessageRequest
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl UnwindSafe for Builder
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more