|
|||||||
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.ChangeMessageVisibilityBatchRequest
public class ChangeMessageVisibilityBatchRequest
Container for the parameters to the ChangeMessageVisibilityBatch operation
.
Changes the visibility timeout of multiple messages. This is a batch
version of ChangeMessageVisibility. The result of the action on each
message is reported individually in the response. You can send up to
10 ChangeMessageVisibility requests with each
ChangeMessageVisibilityBatch
action.
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.changeMessageVisibilityBatch(ChangeMessageVisibilityBatchRequest)
,
Serialized FormConstructor Summary | |
---|---|
ChangeMessageVisibilityBatchRequest()
Default constructor for a new ChangeMessageVisibilityBatchRequest object. |
|
ChangeMessageVisibilityBatchRequest(java.lang.String queueUrl,
java.util.List<ChangeMessageVisibilityBatchRequestEntry> entries)
Constructs a new ChangeMessageVisibilityBatchRequest object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.util.List<ChangeMessageVisibilityBatchRequestEntry> |
getEntries()
A list of receipt handles of the messages for which the visibility timeout must be changed. |
java.lang.String |
getQueueUrl()
The URL of the Amazon SQS queue to take action on. |
int |
hashCode()
|
void |
setEntries(java.util.Collection<ChangeMessageVisibilityBatchRequestEntry> entries)
A list of receipt handles of the messages for which the visibility timeout must be changed. |
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. |
ChangeMessageVisibilityBatchRequest |
withEntries(ChangeMessageVisibilityBatchRequestEntry... entries)
A list of receipt handles of the messages for which the visibility timeout must be changed. |
ChangeMessageVisibilityBatchRequest |
withEntries(java.util.Collection<ChangeMessageVisibilityBatchRequestEntry> entries)
A list of receipt handles of the messages for which the visibility timeout must be changed. |
ChangeMessageVisibilityBatchRequest |
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 ChangeMessageVisibilityBatchRequest()
public ChangeMessageVisibilityBatchRequest(java.lang.String queueUrl, java.util.List<ChangeMessageVisibilityBatchRequestEntry> entries)
queueUrl
- The URL of the Amazon SQS queue to take action on.entries
- A list of receipt handles of the messages for which the
visibility timeout must be changed.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 ChangeMessageVisibilityBatchRequest 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<ChangeMessageVisibilityBatchRequestEntry> getEntries()
public void setEntries(java.util.Collection<ChangeMessageVisibilityBatchRequestEntry> entries)
entries
- A list of receipt handles of the messages for which the visibility
timeout must be changed.public ChangeMessageVisibilityBatchRequest withEntries(ChangeMessageVisibilityBatchRequestEntry... entries)
Returns a reference to this object so that method calls can be chained together.
entries
- A list of receipt handles of the messages for which the visibility
timeout must be changed.
public ChangeMessageVisibilityBatchRequest withEntries(java.util.Collection<ChangeMessageVisibilityBatchRequestEntry> entries)
Returns a reference to this object so that method calls can be chained together.
entries
- A list of receipt handles of the messages for which the visibility
timeout must be changed.
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 |