public class SendUsersMessageRequest extends Object implements Serializable
| Constructor and Description |
|---|
SendUsersMessageRequest() |
| Modifier and Type | Method and Description |
|---|---|
SendUsersMessageRequest |
addContextEntry(String key,
String value)
A map of custom attributes to attributes to be attached to the message.
|
SendUsersMessageRequest |
addUsersEntry(String key,
EndpointSendConfiguration value)
A map of destination endpoints, with the EndpointId as the key Endpoint
Message Configuration as the value.
|
SendUsersMessageRequest |
clearContextEntries()
Removes all the entries added into Context.
|
SendUsersMessageRequest |
clearUsersEntries()
Removes all the entries added into Users.
|
boolean |
equals(Object obj) |
Map<String,String> |
getContext()
A map of custom attributes to attributes to be attached to the message.
|
DirectMessageConfiguration |
getMessageConfiguration()
Message configuration.
|
Map<String,EndpointSendConfiguration> |
getUsers()
A map of destination endpoints, with the EndpointId as the key Endpoint
Message Configuration as the value.
|
int |
hashCode() |
void |
setContext(Map<String,String> context)
A map of custom attributes to attributes to be attached to the message.
|
void |
setMessageConfiguration(DirectMessageConfiguration messageConfiguration)
Message configuration.
|
void |
setUsers(Map<String,EndpointSendConfiguration> users)
A map of destination endpoints, with the EndpointId as the key Endpoint
Message Configuration as the value.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SendUsersMessageRequest |
withContext(Map<String,String> context)
A map of custom attributes to attributes to be attached to the message.
|
SendUsersMessageRequest |
withMessageConfiguration(DirectMessageConfiguration messageConfiguration)
Message configuration.
|
SendUsersMessageRequest |
withUsers(Map<String,EndpointSendConfiguration> users)
A map of destination endpoints, with the EndpointId as the key Endpoint
Message Configuration as the value.
|
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 SendUsersMessageRequest withContext(Map<String,String> context)
Returns a reference to this object so that method calls can be chained together.
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 SendUsersMessageRequest addContextEntry(String key, 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 configuration.public SendUsersMessageRequest withMessageConfiguration(DirectMessageConfiguration messageConfiguration)
Returns a reference to this object so that method calls can be chained together.
messageConfiguration - Message configuration.public Map<String,EndpointSendConfiguration> getUsers()
public void setUsers(Map<String,EndpointSendConfiguration> users)
users - A map of destination endpoints, with the EndpointId as the
key Endpoint Message Configuration as the value.public SendUsersMessageRequest withUsers(Map<String,EndpointSendConfiguration> users)
Returns a reference to this object so that method calls can be chained together.
users - A map of destination endpoints, with the EndpointId as the
key Endpoint Message Configuration as the value.public SendUsersMessageRequest addUsersEntry(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 String toString()
toString in class ObjectObject.toString()Copyright © 2018. All rights reserved.