public static interface MessageRequest.Builder extends CopyableBuilder<MessageRequest.Builder,MessageRequest>
Modifier and Type | Method and Description |
---|---|
MessageRequest.Builder |
addresses(Map<String,AddressConfiguration> addresses)
A map of destination addresses, with the address as the key(Email address, phone number or push token) and
the Address Configuration as the value.
|
MessageRequest.Builder |
context(Map<String,String> context)
A map of custom attributes to attributes to be attached to the message.
|
MessageRequest.Builder |
endpoints(Map<String,EndpointSendConfiguration> endpoints)
A map of destination addresses, with the address as the key(Email address, phone number or push token) and
the Address Configuration as the value.
|
default MessageRequest.Builder |
messageConfiguration(Consumer<DirectMessageConfiguration.Builder> messageConfiguration)
Message configuration.
|
MessageRequest.Builder |
messageConfiguration(DirectMessageConfiguration messageConfiguration)
Message configuration.
|
copy
applyMutation, build
MessageRequest.Builder addresses(Map<String,AddressConfiguration> addresses)
addresses
- A map of destination addresses, with the address as the key(Email address, phone number or push token)
and the Address Configuration as the value.MessageRequest.Builder context(Map<String,String> context)
context
- A map of custom attributes to attributes to be attached to the message. This payload is added to the
push notification's 'data.pinpoint' object or added to the email/sms delivery receipt event
attributes.MessageRequest.Builder endpoints(Map<String,EndpointSendConfiguration> endpoints)
endpoints
- A map of destination addresses, with the address as the key(Email address, phone number or push token)
and the Address Configuration as the value.MessageRequest.Builder messageConfiguration(DirectMessageConfiguration messageConfiguration)
messageConfiguration
- Message configuration.default MessageRequest.Builder messageConfiguration(Consumer<DirectMessageConfiguration.Builder> messageConfiguration)
DirectMessageConfiguration.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.Builder
messageConfiguration(DirectMessageConfiguration)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.