@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MessageRequest extends Object implements Serializable, Cloneable, StructuredPojo
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 attributes to be attached 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()
Message configuration.
|
String |
getTraceId()
A unique ID that you can use to trace a message.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
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 attributes to be attached 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)
Message configuration.
|
void |
setTraceId(String traceId)
A unique ID that you can use to trace a message.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
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 attributes to be attached 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)
Message configuration.
|
MessageRequest |
withTraceId(String traceId)
A unique ID that you can use to trace a message.
|
public Map<String,AddressConfiguration> getAddresses()
public void setAddresses(Map<String,AddressConfiguration> addresses)
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.public MessageRequest withAddresses(Map<String,AddressConfiguration> addresses)
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.public MessageRequest addAddressesEntry(String key, AddressConfiguration value)
public MessageRequest clearAddressesEntries()
public Map<String,String> getContext()
public void setContext(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.public MessageRequest withContext(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.public MessageRequest addContextEntry(String key, String value)
public MessageRequest clearContextEntries()
public Map<String,EndpointSendConfiguration> getEndpoints()
public void setEndpoints(Map<String,EndpointSendConfiguration> endpoints)
endpoints
- A map of key-value pairs, where each key is an endpoint ID and each value is an EndpointSendConfiguration
object. Within an EndpointSendConfiguration object, you can tailor the message for an endpoint by
specifying message overrides or substitutions.public MessageRequest withEndpoints(Map<String,EndpointSendConfiguration> endpoints)
endpoints
- A map of key-value pairs, where each key is an endpoint ID and each value is an EndpointSendConfiguration
object. Within an EndpointSendConfiguration object, you can tailor the message for an endpoint by
specifying message overrides or substitutions.public MessageRequest addEndpointsEntry(String key, EndpointSendConfiguration value)
public MessageRequest clearEndpointsEntries()
public void setMessageConfiguration(DirectMessageConfiguration messageConfiguration)
messageConfiguration
- Message configuration.public DirectMessageConfiguration getMessageConfiguration()
public MessageRequest withMessageConfiguration(DirectMessageConfiguration messageConfiguration)
messageConfiguration
- Message configuration.public void setTraceId(String traceId)
traceId
- A unique ID that you can use to trace a message. This ID is visible to recipients.public String getTraceId()
public MessageRequest withTraceId(String traceId)
traceId
- A unique ID that you can use to trace a message. This ID is visible to recipients.public String toString()
toString
in class Object
Object.toString()
public MessageRequest clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.