@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BatchPutMessageRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
BatchPutMessageRequest() |
| Modifier and Type | Method and Description |
|---|---|
BatchPutMessageRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getChannelName()
The name of the channel where the messages are sent.
|
List<Message> |
getMessages()
The list of messages to be sent.
|
int |
hashCode() |
void |
setChannelName(String channelName)
The name of the channel where the messages are sent.
|
void |
setMessages(Collection<Message> messages)
The list of messages to be sent.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
BatchPutMessageRequest |
withChannelName(String channelName)
The name of the channel where the messages are sent.
|
BatchPutMessageRequest |
withMessages(Collection<Message> messages)
The list of messages to be sent.
|
BatchPutMessageRequest |
withMessages(Message... messages)
The list of messages to be sent.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setChannelName(String channelName)
The name of the channel where the messages are sent.
channelName - The name of the channel where the messages are sent.public String getChannelName()
The name of the channel where the messages are sent.
public BatchPutMessageRequest withChannelName(String channelName)
The name of the channel where the messages are sent.
channelName - The name of the channel where the messages are sent.public List<Message> getMessages()
The list of messages to be sent. Each message has format: '{ "messageId": "string", "payload": "string"}'.
public void setMessages(Collection<Message> messages)
The list of messages to be sent. Each message has format: '{ "messageId": "string", "payload": "string"}'.
messages - The list of messages to be sent. Each message has format: '{ "messageId": "string", "payload": "string"}'.public BatchPutMessageRequest withMessages(Message... messages)
The list of messages to be sent. Each message has format: '{ "messageId": "string", "payload": "string"}'.
NOTE: This method appends the values to the existing list (if any). Use
setMessages(java.util.Collection) or withMessages(java.util.Collection) if you want to override
the existing values.
messages - The list of messages to be sent. Each message has format: '{ "messageId": "string", "payload": "string"}'.public BatchPutMessageRequest withMessages(Collection<Message> messages)
The list of messages to be sent. Each message has format: '{ "messageId": "string", "payload": "string"}'.
messages - The list of messages to be sent. Each message has format: '{ "messageId": "string", "payload": "string"}'.public String toString()
toString in class ObjectObject.toString()public BatchPutMessageRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.