Interface SendUsersMessageRequest.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SendUsersMessageRequest.Builder,
,SendUsersMessageRequest> SdkBuilder<SendUsersMessageRequest.Builder,
,SendUsersMessageRequest> SdkPojo
- Enclosing class:
SendUsersMessageRequest
-
Method Summary
Modifier and TypeMethodDescriptionA map of custom attribute-value pairs.default SendUsersMessageRequest.Builder
messageConfiguration
(Consumer<DirectMessageConfiguration.Builder> messageConfiguration) The settings and content for the default message and any default messages that you defined for specific channels.messageConfiguration
(DirectMessageConfiguration messageConfiguration) The settings and content for the default message and any default messages that you defined for specific channels.default SendUsersMessageRequest.Builder
templateConfiguration
(Consumer<TemplateConfiguration.Builder> templateConfiguration) The message template to use for the message.templateConfiguration
(TemplateConfiguration templateConfiguration) The message template to use for the message.The unique identifier for tracing the message.users
(Map<String, EndpointSendConfiguration> users) A map that associates user IDs with EndpointSendConfiguration objects.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
context
A map of custom attribute-value pairs. For a push notification, Amazon Pinpoint adds these attributes to the data.pinpoint object in the body of the notification payload. Amazon Pinpoint also provides these attributes in the events that it generates for users-messages deliveries.
- Parameters:
context
- A map of custom attribute-value pairs. For a push notification, Amazon Pinpoint adds these attributes to the data.pinpoint object in the body of the notification payload. Amazon Pinpoint also provides these attributes in the events that it generates for users-messages deliveries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageConfiguration
SendUsersMessageRequest.Builder messageConfiguration(DirectMessageConfiguration messageConfiguration) The settings and content for the default message and any default messages that you defined for specific channels.
- Parameters:
messageConfiguration
- The settings and content for the default message and any default messages that you defined for specific channels.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageConfiguration
default SendUsersMessageRequest.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 method that creates an instance of theDirectMessageConfiguration.Builder
avoiding the need to create one manually viaDirectMessageConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomessageConfiguration(DirectMessageConfiguration)
.- Parameters:
messageConfiguration
- a consumer that will call methods onDirectMessageConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
templateConfiguration
The message template to use for the message.
- Parameters:
templateConfiguration
- The message template to use for the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateConfiguration
default SendUsersMessageRequest.Builder templateConfiguration(Consumer<TemplateConfiguration.Builder> templateConfiguration) The message template to use for the message.
This is a convenience method that creates an instance of theTemplateConfiguration.Builder
avoiding the need to create one manually viaTemplateConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totemplateConfiguration(TemplateConfiguration)
.- Parameters:
templateConfiguration
- a consumer that will call methods onTemplateConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
traceId
The unique identifier for tracing the message. This identifier is visible to message recipients.
- Parameters:
traceId
- The unique identifier for tracing the message. This identifier is visible to message recipients.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
users
A map that associates user IDs with EndpointSendConfiguration objects. You can use an EndpointSendConfiguration object to tailor the message for a user by specifying settings such as content overrides and message variables.
- Parameters:
users
- A map that associates user IDs with EndpointSendConfiguration objects. You can use an EndpointSendConfiguration object to tailor the message for a user by specifying settings such as content overrides and message variables.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-