@Generated(value="software.amazon.awssdk:codegen") public final class MessageRequest extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MessageRequest.Builder,MessageRequest>
Specifies the configuration and other settings for a message.
| Modifier and Type | Class and Description |
|---|---|
static interface |
MessageRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
Map<String,AddressConfiguration> |
addresses()
A map of key-value pairs, where each key is an address and each value is an AddressConfiguration object.
|
static MessageRequest.Builder |
builder() |
Map<String,String> |
context()
A map of custom attributes to attach to the message.
|
Map<String,EndpointSendConfiguration> |
endpoints()
A map of key-value pairs, where each key is an endpoint ID and each value is an EndpointSendConfiguration object.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAddresses()
Returns true if the Addresses property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasContext()
Returns true if the Context property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasEndpoints()
Returns true if the Endpoints property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
int |
hashCode() |
DirectMessageConfiguration |
messageConfiguration()
The settings and content for the default message and any default messages that you defined for specific channels.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends MessageRequest.Builder> |
serializableBuilderClass() |
TemplateConfiguration |
templateConfiguration()
The message template to use for the message.
|
MessageRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
traceId()
The unique identifier for tracing the message.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic boolean hasAddresses()
public 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAddresses() to see if a value was sent in this field.
public boolean hasContext()
public 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasContext() to see if a value was sent in this field.
public boolean hasEndpoints()
public 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasEndpoints() to see if a value was sent in this field.
public DirectMessageConfiguration messageConfiguration()
The settings and content for the default message and any default messages that you defined for specific channels.
public TemplateConfiguration templateConfiguration()
The message template to use for the message.
public String traceId()
The unique identifier for tracing the message. This identifier is visible to message recipients.
public MessageRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<MessageRequest.Builder,MessageRequest>public static MessageRequest.Builder builder()
public static Class<? extends MessageRequest.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.