public class SendUsersMessageRequest
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
SendUsersMessageRequest() |
Modifier and Type | Method and Description |
---|---|
SendUsersMessageRequest |
addContextEntry(java.lang.String key,
java.lang.String value)
A map of custom attribute-value pairs.
|
SendUsersMessageRequest |
addUsersEntry(java.lang.String key,
EndpointSendConfiguration value)
A map that associates user IDs with EndpointSendConfiguration objects.
|
SendUsersMessageRequest |
clearContextEntries()
Removes all the entries added into Context.
|
SendUsersMessageRequest |
clearUsersEntries()
Removes all the entries added into Users.
|
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,java.lang.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.
|
java.lang.String |
getTraceId()
A unique ID that you can use to trace a message.
|
java.util.Map<java.lang.String,EndpointSendConfiguration> |
getUsers()
A map that associates user IDs with EndpointSendConfiguration objects.
|
int |
hashCode() |
void |
setContext(java.util.Map<java.lang.String,java.lang.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(java.lang.String traceId)
A unique ID that you can use to trace a message.
|
void |
setUsers(java.util.Map<java.lang.String,EndpointSendConfiguration> users)
A map that associates user IDs with EndpointSendConfiguration objects.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SendUsersMessageRequest |
withContext(java.util.Map<java.lang.String,java.lang.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(java.lang.String traceId)
A unique ID that you can use to trace a message.
|
SendUsersMessageRequest |
withUsers(java.util.Map<java.lang.String,EndpointSendConfiguration> users)
A map that associates user IDs with EndpointSendConfiguration objects.
|
public java.util.Map<java.lang.String,java.lang.String> getContext()
public void setContext(java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.String> context)
Returns a reference to this object so that method calls can be chained together.
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(java.lang.String key, java.lang.String value)
The method adds a new key-value pair into Context parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Context.value
- The corresponding value of the entry to be added into
Context.public SendUsersMessageRequest clearContextEntries()
Returns a reference to this object so that method calls can be chained together.
public DirectMessageConfiguration getMessageConfiguration()
public void setMessageConfiguration(DirectMessageConfiguration messageConfiguration)
messageConfiguration
- Message definitions for the default message
and any messages that are tailored for specific channels.public SendUsersMessageRequest withMessageConfiguration(DirectMessageConfiguration messageConfiguration)
Returns a reference to this object so that method calls can be chained together.
messageConfiguration
- Message definitions for the default message
and any messages that are tailored for specific channels.public java.lang.String getTraceId()
public void setTraceId(java.lang.String traceId)
traceId
- A unique ID that you can use to trace a message. This ID
is visible to recipients.public SendUsersMessageRequest withTraceId(java.lang.String traceId)
Returns a reference to this object so that method calls can be chained together.
traceId
- A unique ID that you can use to trace a message. This ID
is visible to recipients.public java.util.Map<java.lang.String,EndpointSendConfiguration> getUsers()
public void setUsers(java.util.Map<java.lang.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(java.util.Map<java.lang.String,EndpointSendConfiguration> users)
Returns a reference to this object so that method calls can be chained together.
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(java.lang.String key, EndpointSendConfiguration value)
The method adds a new key-value pair into Users parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Users.value
- The corresponding value of the entry to be added into Users.public SendUsersMessageRequest clearUsersEntries()
Returns a reference to this object so that method calls can be chained together.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.