@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 destination addresses, with the address as the key(Email address, phone number or push token) and the
Address Configuration as the value.
|
Map<String,String> |
getContext()
A map of custom attributes to attributes to be attached to the message.
|
Map<String,EndpointSendConfiguration> |
getEndpoints()
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.
|
DirectMessageConfiguration |
getMessageConfiguration()
Message configuration.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAddresses(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.
|
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 destination addresses, with the address as the key(Email address, phone number or push token) and the
Address Configuration as the value.
|
void |
setMessageConfiguration(DirectMessageConfiguration messageConfiguration)
Message configuration.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
MessageRequest |
withAddresses(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 |
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 destination addresses, with the address as the key(Email address, phone number or push token) and the
Address Configuration as the value.
|
MessageRequest |
withMessageConfiguration(DirectMessageConfiguration messageConfiguration)
Message configuration.
|
public Map<String,AddressConfiguration> getAddresses()
public void setAddresses(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.public MessageRequest withAddresses(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.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 destination addresses, with the address as the key(Email address, phone number or push token) and
the Address Configuration as the value.public MessageRequest withEndpoints(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.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 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.