@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SendUsersMessageRequest extends Object implements Serializable, Cloneable, StructuredPojo
| Constructor and Description |
|---|
SendUsersMessageRequest() |
| Modifier and Type | Method and Description |
|---|---|
SendUsersMessageRequest |
addContextEntry(String key,
String value) |
SendUsersMessageRequest |
addUsersEntry(String key,
EndpointSendConfiguration value) |
SendUsersMessageRequest |
clearContextEntries()
Removes all the entries added into Context.
|
SendUsersMessageRequest |
clearUsersEntries()
Removes all the entries added into Users.
|
SendUsersMessageRequest |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getContext()
A map of custom attribute-value pairs.
|
DirectMessageConfiguration |
getMessageConfiguration()
Message definitions for the default message and any messages that are tailored for specific channels.
|
String |
getTraceId()
A unique ID that you can use to trace a message.
|
Map<String,EndpointSendConfiguration> |
getUsers()
A map that associates user IDs with EndpointSendConfiguration objects.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setContext(Map<String,String> context)
A map of custom attribute-value pairs.
|
void |
setMessageConfiguration(DirectMessageConfiguration messageConfiguration)
Message definitions for the default message and any messages that are tailored for specific channels.
|
void |
setTraceId(String traceId)
A unique ID that you can use to trace a message.
|
void |
setUsers(Map<String,EndpointSendConfiguration> users)
A map that associates user IDs with EndpointSendConfiguration objects.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
SendUsersMessageRequest |
withContext(Map<String,String> context)
A map of custom attribute-value pairs.
|
SendUsersMessageRequest |
withMessageConfiguration(DirectMessageConfiguration messageConfiguration)
Message definitions for the default message and any messages that are tailored for specific channels.
|
SendUsersMessageRequest |
withTraceId(String traceId)
A unique ID that you can use to trace a message.
|
SendUsersMessageRequest |
withUsers(Map<String,EndpointSendConfiguration> users)
A map that associates user IDs with EndpointSendConfiguration objects.
|
public Map<String,String> getContext()
public void setContext(Map<String,String> context)
context - A map of custom attribute-value pairs. Amazon Pinpoint adds these attributes to the data.pinpoint object
in the body of the push notification payload. Amazon Pinpoint also provides these attributes in the events
that it generates for users-messages deliveries.public SendUsersMessageRequest withContext(Map<String,String> context)
context - A map of custom attribute-value pairs. Amazon Pinpoint adds these attributes to the data.pinpoint object
in the body of the push notification payload. Amazon Pinpoint also provides these attributes in the events
that it generates for users-messages deliveries.public SendUsersMessageRequest addContextEntry(String key, String value)
public SendUsersMessageRequest clearContextEntries()
public void setMessageConfiguration(DirectMessageConfiguration messageConfiguration)
messageConfiguration - Message definitions for the default message and any messages that are tailored for specific channels.public DirectMessageConfiguration getMessageConfiguration()
public SendUsersMessageRequest withMessageConfiguration(DirectMessageConfiguration messageConfiguration)
messageConfiguration - Message definitions for the default message and any messages that are tailored for specific channels.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 SendUsersMessageRequest withTraceId(String traceId)
traceId - A unique ID that you can use to trace a message. This ID is visible to recipients.public Map<String,EndpointSendConfiguration> getUsers()
public void setUsers(Map<String,EndpointSendConfiguration> users)
users - A map that associates user IDs with EndpointSendConfiguration objects. Within an EndpointSendConfiguration
object, you can tailor the message for a user by specifying message overrides or substitutions.public SendUsersMessageRequest withUsers(Map<String,EndpointSendConfiguration> users)
users - A map that associates user IDs with EndpointSendConfiguration objects. Within an EndpointSendConfiguration
object, you can tailor the message for a user by specifying message overrides or substitutions.public SendUsersMessageRequest addUsersEntry(String key, EndpointSendConfiguration value)
public SendUsersMessageRequest clearUsersEntries()
public String toString()
toString in class ObjectObject.toString()public SendUsersMessageRequest clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2018. All rights reserved.