@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MessageRequest extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the objects that define configuration and other settings for a message.
| Constructor and Description |
|---|
MessageRequest() |
| Modifier and Type | Method and Description |
|---|---|
MessageRequest |
addAddressesEntry(String key,
AddressConfiguration value) |
MessageRequest |
addContextEntry(String key,
String value) |
MessageRequest |
addEndpointsEntry(String key,
EndpointSendConfiguration value) |
MessageRequest |
clearAddressesEntries()
Removes all the entries added into Addresses.
|
MessageRequest |
clearContextEntries()
Removes all the entries added into Context.
|
MessageRequest |
clearEndpointsEntries()
Removes all the entries added into Endpoints.
|
MessageRequest |
clone() |
boolean |
equals(Object obj) |
Map<String,AddressConfiguration> |
getAddresses()
A map of key-value pairs, where each key is an address and each value is an AddressConfiguration object.
|
Map<String,String> |
getContext()
A map of custom attributes to attach to the message.
|
Map<String,EndpointSendConfiguration> |
getEndpoints()
A map of key-value pairs, where each key is an endpoint ID and each value is an EndpointSendConfiguration object.
|
DirectMessageConfiguration |
getMessageConfiguration()
The set of properties that defines the configuration settings for the message.
|
String |
getTraceId()
The unique identifier for tracing the message.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setAddresses(Map<String,AddressConfiguration> addresses)
A map of key-value pairs, where each key is an address and each value is an AddressConfiguration object.
|
void |
setContext(Map<String,String> context)
A map of custom attributes to attach to the message.
|
void |
setEndpoints(Map<String,EndpointSendConfiguration> endpoints)
A map of key-value pairs, where each key is an endpoint ID and each value is an EndpointSendConfiguration object.
|
void |
setMessageConfiguration(DirectMessageConfiguration messageConfiguration)
The set of properties that defines the configuration settings for the message.
|
void |
setTraceId(String traceId)
The unique identifier for tracing the message.
|
String |
toString()
Returns a string representation of this object.
|
MessageRequest |
withAddresses(Map<String,AddressConfiguration> addresses)
A map of key-value pairs, where each key is an address and each value is an AddressConfiguration object.
|
MessageRequest |
withContext(Map<String,String> context)
A map of custom attributes to attach to the message.
|
MessageRequest |
withEndpoints(Map<String,EndpointSendConfiguration> endpoints)
A map of key-value pairs, where each key is an endpoint ID and each value is an EndpointSendConfiguration object.
|
MessageRequest |
withMessageConfiguration(DirectMessageConfiguration messageConfiguration)
The set of properties that defines the configuration settings for the message.
|
MessageRequest |
withTraceId(String traceId)
The unique identifier for tracing the message.
|
public Map<String,AddressConfiguration> getAddresses()
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.
public void setAddresses(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.public MessageRequest withAddresses(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.public MessageRequest addAddressesEntry(String key, AddressConfiguration value)
public MessageRequest clearAddressesEntries()
public Map<String,String> getContext()
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.
public void setContext(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.public MessageRequest withContext(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.public MessageRequest addContextEntry(String key, String value)
public MessageRequest clearContextEntries()
public Map<String,EndpointSendConfiguration> getEndpoints()
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.
public void setEndpoints(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.public MessageRequest withEndpoints(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.public MessageRequest addEndpointsEntry(String key, EndpointSendConfiguration value)
public MessageRequest clearEndpointsEntries()
public void setMessageConfiguration(DirectMessageConfiguration messageConfiguration)
The set of properties that defines the configuration settings for the message.
messageConfiguration - The set of properties that defines the configuration settings for the message.public DirectMessageConfiguration getMessageConfiguration()
The set of properties that defines the configuration settings for the message.
public MessageRequest withMessageConfiguration(DirectMessageConfiguration messageConfiguration)
The set of properties that defines the configuration settings for the message.
messageConfiguration - The set of properties that defines the configuration settings for the message.public void setTraceId(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.public String getTraceId()
The unique identifier for tracing the message. This identifier is visible to message recipients.
public MessageRequest withTraceId(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.public String toString()
toString in class ObjectObject.toString()public MessageRequest clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2019. All rights reserved.