|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.sqs.model.SendMessageBatchRequest
public class SendMessageBatchRequest
Container for the parameters to the SendMessageBatch operation
.
Delivers up to ten messages to the specified queue. This is a batch version of SendMessage. The result of the send action on each message is reported individually in the response. The maximum allowed individual message size is 256 KB (262,144 bytes).
The maximum total payload size (i.e., the sum of all a batch's individual message lengths) is also 256 KB (262,144 bytes).
If the DelaySeconds
parameter is not specified for an
entry, the default for the queue is used.
IMPORTANT:The following list shows the characters (in Unicode) that are allowed in your message, according to the W3C XML specification. For more information, go to http://www.faqs.org/rfcs/rfc1321.html. If you send any characters that are not included in the list, your request will be rejected. #x9 | #xA | #xD | [#x20 to #xD7FF] | [#xE000 to #xFFFD] | [#x10000 to #x10FFFF]
IMPORTANT: Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.
NOTE:Some API actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:
&Attribute.1=this
&Attribute.2=that
AmazonSQS.sendMessageBatch(SendMessageBatchRequest)
,
Serialized FormConstructor Summary | |
---|---|
SendMessageBatchRequest()
Default constructor for a new SendMessageBatchRequest object. |
|
SendMessageBatchRequest(java.lang.String queueUrl)
Constructs a new SendMessageBatchRequest object. |
|
SendMessageBatchRequest(java.lang.String queueUrl,
java.util.List<SendMessageBatchRequestEntry> entries)
Constructs a new SendMessageBatchRequest object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.util.List<SendMessageBatchRequestEntry> |
getEntries()
A list of SendMessageBatchRequestEntry items. |
java.lang.String |
getQueueUrl()
The URL of the Amazon SQS queue to take action on. |
int |
hashCode()
|
void |
setEntries(java.util.Collection<SendMessageBatchRequestEntry> entries)
A list of SendMessageBatchRequestEntry items. |
void |
setQueueUrl(java.lang.String queueUrl)
The URL of the Amazon SQS queue to take action on. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
SendMessageBatchRequest |
withEntries(java.util.Collection<SendMessageBatchRequestEntry> entries)
A list of SendMessageBatchRequestEntry items. |
SendMessageBatchRequest |
withEntries(SendMessageBatchRequestEntry... entries)
A list of SendMessageBatchRequestEntry items. |
SendMessageBatchRequest |
withQueueUrl(java.lang.String queueUrl)
The URL of the Amazon SQS queue to take action on. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SendMessageBatchRequest()
public SendMessageBatchRequest(java.lang.String queueUrl)
queueUrl
- The URL of the Amazon SQS queue to take action on.public SendMessageBatchRequest(java.lang.String queueUrl, java.util.List<SendMessageBatchRequestEntry> entries)
queueUrl
- The URL of the Amazon SQS queue to take action on.entries
- A list of SendMessageBatchRequestEntry items.Method Detail |
---|
public java.lang.String getQueueUrl()
public void setQueueUrl(java.lang.String queueUrl)
queueUrl
- The URL of the Amazon SQS queue to take action on.public SendMessageBatchRequest withQueueUrl(java.lang.String queueUrl)
Returns a reference to this object so that method calls can be chained together.
queueUrl
- The URL of the Amazon SQS queue to take action on.
public java.util.List<SendMessageBatchRequestEntry> getEntries()
public void setEntries(java.util.Collection<SendMessageBatchRequestEntry> entries)
entries
- A list of SendMessageBatchRequestEntry items.public SendMessageBatchRequest withEntries(SendMessageBatchRequestEntry... entries)
Returns a reference to this object so that method calls can be chained together.
entries
- A list of SendMessageBatchRequestEntry items.
public SendMessageBatchRequest withEntries(java.util.Collection<SendMessageBatchRequestEntry> entries)
Returns a reference to this object so that method calls can be chained together.
entries
- A list of SendMessageBatchRequestEntry items.
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
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |