@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SendUsersMessageRequest extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the configuration and other settings for a message to send to all the endpoints that are associated with a list of users.
Constructor and Description |
---|
SendUsersMessageRequest() |
Modifier and Type | Method and Description |
---|---|
SendUsersMessageRequest |
addContextEntry(String key,
String value)
Add a single Context entry
|
SendUsersMessageRequest |
addUsersEntry(String key,
EndpointSendConfiguration value)
Add a single Users entry
|
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()
The settings and content for the default message and any default messages that you defined for specific channels.
|
TemplateConfiguration |
getTemplateConfiguration()
The message template to use for the message.
|
String |
getTraceId()
The unique identifier for tracing the message.
|
Map<String,EndpointSendConfiguration> |
getUsers()
A map that associates user IDs with EndpointSendConfiguration objects.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContext(Map<String,String> context)
A map of custom attribute-value pairs.
|
void |
setMessageConfiguration(DirectMessageConfiguration messageConfiguration)
The settings and content for the default message and any default messages that you defined for specific channels.
|
void |
setTemplateConfiguration(TemplateConfiguration templateConfiguration)
The message template to use for the message.
|
void |
setTraceId(String traceId)
The unique identifier for tracing the 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.
|
SendUsersMessageRequest |
withContext(Map<String,String> context)
A map of custom attribute-value pairs.
|
SendUsersMessageRequest |
withMessageConfiguration(DirectMessageConfiguration messageConfiguration)
The settings and content for the default message and any default messages that you defined for specific channels.
|
SendUsersMessageRequest |
withTemplateConfiguration(TemplateConfiguration templateConfiguration)
The message template to use for the message.
|
SendUsersMessageRequest |
withTraceId(String traceId)
The unique identifier for tracing the message.
|
SendUsersMessageRequest |
withUsers(Map<String,EndpointSendConfiguration> users)
A map that associates user IDs with EndpointSendConfiguration objects.
|
public Map<String,String> getContext()
A map of custom attribute-value pairs. For a push notification, Amazon Pinpoint adds these attributes to the data.pinpoint object in the body of the notification payload. Amazon Pinpoint also provides these attributes in the events that it generates for users-messages deliveries.
public void setContext(Map<String,String> context)
A map of custom attribute-value pairs. For a push notification, Amazon Pinpoint adds these attributes to the data.pinpoint object in the body of the notification payload. Amazon Pinpoint also provides these attributes in the events that it generates for users-messages deliveries.
context
- A map of custom attribute-value pairs. For a push notification, Amazon Pinpoint adds these attributes to
the data.pinpoint object in the body of the 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)
A map of custom attribute-value pairs. For a push notification, Amazon Pinpoint adds these attributes to the data.pinpoint object in the body of the notification payload. Amazon Pinpoint also provides these attributes in the events that it generates for users-messages deliveries.
context
- A map of custom attribute-value pairs. For a push notification, Amazon Pinpoint adds these attributes to
the data.pinpoint object in the body of the 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)
The settings and content for the default message and any default messages that you defined for specific channels.
messageConfiguration
- The settings and content for the default message and any default messages that you defined for specific
channels.public DirectMessageConfiguration getMessageConfiguration()
The settings and content for the default message and any default messages that you defined for specific channels.
public SendUsersMessageRequest withMessageConfiguration(DirectMessageConfiguration messageConfiguration)
The settings and content for the default message and any default messages that you defined for specific channels.
messageConfiguration
- The settings and content for the default message and any default messages that you defined for specific
channels.public void setTemplateConfiguration(TemplateConfiguration templateConfiguration)
The message template to use for the message.
templateConfiguration
- The message template to use for the message.public TemplateConfiguration getTemplateConfiguration()
The message template to use for the message.
public SendUsersMessageRequest withTemplateConfiguration(TemplateConfiguration templateConfiguration)
The message template to use for the message.
templateConfiguration
- The message template to use for the message.public void setTraceId(String traceId)
The unique identifier for tracing the message. This identifier is visible to message recipients.
traceId
- The unique identifier for tracing the message. This identifier is visible to message recipients.public String getTraceId()
The unique identifier for tracing the message. This identifier is visible to message recipients.
public SendUsersMessageRequest withTraceId(String traceId)
The unique identifier for tracing the message. This identifier is visible to message recipients.
traceId
- The unique identifier for tracing the message. This identifier is visible to message recipients.public Map<String,EndpointSendConfiguration> getUsers()
A map that associates user IDs with EndpointSendConfiguration objects. You can use an EndpointSendConfiguration object to tailor the message for a user by specifying settings such as content overrides and message variables.
public void setUsers(Map<String,EndpointSendConfiguration> users)
A map that associates user IDs with EndpointSendConfiguration objects. You can use an EndpointSendConfiguration object to tailor the message for a user by specifying settings such as content overrides and message variables.
users
- A map that associates user IDs with EndpointSendConfiguration objects. You can use an EndpointSendConfiguration object to tailor the message for a user by specifying settings such as
content overrides and message variables.public SendUsersMessageRequest withUsers(Map<String,EndpointSendConfiguration> users)
A map that associates user IDs with EndpointSendConfiguration objects. You can use an EndpointSendConfiguration object to tailor the message for a user by specifying settings such as content overrides and message variables.
users
- A map that associates user IDs with EndpointSendConfiguration objects. You can use an EndpointSendConfiguration object to tailor the message for a user by specifying settings such as
content overrides and message variables.public SendUsersMessageRequest addUsersEntry(String key, EndpointSendConfiguration value)
public SendUsersMessageRequest clearUsersEntries()
public String toString()
toString
in class Object
Object.toString()
public SendUsersMessageRequest clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.