public class ChangeMessageVisibilityBatchRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
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
NOOP
Constructor and Description |
---|
ChangeMessageVisibilityBatchRequest()
Default constructor for a new ChangeMessageVisibilityBatchRequest object.
|
ChangeMessageVisibilityBatchRequest(String queueUrl,
List<ChangeMessageVisibilityBatchRequestEntry> entries)
Constructs a new ChangeMessageVisibilityBatchRequest object.
|
Modifier and Type | Method and Description |
---|---|
ChangeMessageVisibilityBatchRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
List<ChangeMessageVisibilityBatchRequestEntry> |
getEntries()
A list of receipt handles of the messages for which the visibility
timeout must be changed.
|
String |
getQueueUrl()
The URL of the Amazon SQS queue to take action on.
|
int |
hashCode() |
void |
setEntries(Collection<ChangeMessageVisibilityBatchRequestEntry> entries)
A list of receipt handles of the messages for which the visibility
timeout must be changed.
|
void |
setQueueUrl(String queueUrl)
The URL of the Amazon SQS queue to take action on.
|
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(Collection<ChangeMessageVisibilityBatchRequestEntry> entries)
A list of receipt handles of the messages for which the visibility
timeout must be changed.
|
ChangeMessageVisibilityBatchRequest |
withQueueUrl(String queueUrl)
The URL of the Amazon SQS queue to take action on.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public ChangeMessageVisibilityBatchRequest()
public ChangeMessageVisibilityBatchRequest(String queueUrl, 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.public String getQueueUrl()
public void setQueueUrl(String queueUrl)
queueUrl
- The URL of the Amazon SQS queue to take action on.public ChangeMessageVisibilityBatchRequest withQueueUrl(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 List<ChangeMessageVisibilityBatchRequestEntry> getEntries()
public void setEntries(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)
NOTE: This method appends the values to the existing list (if
any). Use setEntries(java.util.Collection)
or withEntries(java.util.Collection)
if you want to override the
existing values.
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(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 String toString()
toString
in class Object
Object.toString()
public ChangeMessageVisibilityBatchRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.