public static interface MessageRequest.Builder extends SdkPojo, CopyableBuilder<MessageRequest.Builder,MessageRequest>
| Modifier and Type | Method and Description |
|---|---|
MessageRequest.Builder |
addresses(Map<String,AddressConfiguration> addresses)
A map of key-value pairs, where each key is an address and each value is an AddressConfiguration object.
|
MessageRequest.Builder |
context(Map<String,String> context)
A map of custom attributes to attach to the message.
|
MessageRequest.Builder |
endpoints(Map<String,EndpointSendConfiguration> endpoints)
A map of key-value pairs, where each key is an endpoint ID and each value is an EndpointSendConfiguration object.
|
default MessageRequest.Builder |
messageConfiguration(Consumer<DirectMessageConfiguration.Builder> messageConfiguration)
The settings and content for the default message and any default messages that you defined for specific
channels.
|
MessageRequest.Builder |
messageConfiguration(DirectMessageConfiguration messageConfiguration)
The settings and content for the default message and any default messages that you defined for specific
channels.
|
default MessageRequest.Builder |
templateConfiguration(Consumer<TemplateConfiguration.Builder> templateConfiguration)
The message template to use for the message.
|
MessageRequest.Builder |
templateConfiguration(TemplateConfiguration templateConfiguration)
The message template to use for the message.
|
MessageRequest.Builder |
traceId(String traceId)
The unique identifier for tracing the message.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildMessageRequest.Builder addresses(Map<String,AddressConfiguration> 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.
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.MessageRequest.Builder context(Map<String,String> 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.
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.MessageRequest.Builder endpoints(Map<String,EndpointSendConfiguration> 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.
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.MessageRequest.Builder messageConfiguration(DirectMessageConfiguration messageConfiguration)
The settings and content for the default message and any default messages that you defined for specific channels.
messageConfiguration - The settings and content for the default message and any default messages that you defined for
specific channels.default MessageRequest.Builder messageConfiguration(Consumer<DirectMessageConfiguration.Builder> messageConfiguration)
The settings and content for the default message and any default messages that you defined for specific channels.
This is a convenience that creates an instance of theDirectMessageConfiguration.Builder avoiding the
need to create one manually via DirectMessageConfiguration.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to messageConfiguration(DirectMessageConfiguration).messageConfiguration - a consumer that will call methods on DirectMessageConfiguration.BuildermessageConfiguration(DirectMessageConfiguration)MessageRequest.Builder templateConfiguration(TemplateConfiguration templateConfiguration)
The message template to use for the message.
templateConfiguration - The message template to use for the message.default MessageRequest.Builder templateConfiguration(Consumer<TemplateConfiguration.Builder> templateConfiguration)
The message template to use for the message.
This is a convenience that creates an instance of theTemplateConfiguration.Builder avoiding the need
to create one manually via TemplateConfiguration.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to templateConfiguration(TemplateConfiguration).templateConfiguration - a consumer that will call methods on TemplateConfiguration.BuildertemplateConfiguration(TemplateConfiguration)MessageRequest.Builder traceId(String traceId)
The unique identifier for tracing the message. This identifier is visible to message recipients.
traceId - The unique identifier for tracing the message. This identifier is visible to message recipients.Copyright © 2020. All rights reserved.