public class ChangeMessageVisibilityBatchRequest extends AmazonWebServiceRequest implements java.io.Serializable
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.
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.
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
| Constructor and Description |
|---|
ChangeMessageVisibilityBatchRequest()
Default constructor for ChangeMessageVisibilityBatchRequest object.
|
ChangeMessageVisibilityBatchRequest(java.lang.String queueUrl,
java.util.List<ChangeMessageVisibilityBatchRequestEntry> entries)
Constructs a new ChangeMessageVisibilityBatchRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic ChangeMessageVisibilityBatchRequest()
public ChangeMessageVisibilityBatchRequest(java.lang.String queueUrl,
java.util.List<ChangeMessageVisibilityBatchRequestEntry> entries)
queueUrl - The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
entries - A list of receipt handles of the messages for which the visibility timeout must be changed.
public java.lang.String getQueueUrl()
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
public void setQueueUrl(java.lang.String queueUrl)
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
queueUrl - The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
public ChangeMessageVisibilityBatchRequest withQueueUrl(java.lang.String queueUrl)
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
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.
Queue URLs are case-sensitive.
public java.util.List<ChangeMessageVisibilityBatchRequestEntry> getEntries()
A list of receipt handles of the messages for which the visibility timeout must be changed.
A list of receipt handles of the messages for which the visibility timeout must be changed.
public void setEntries(java.util.Collection<ChangeMessageVisibilityBatchRequestEntry> entries)
A list of receipt handles of the messages for which the visibility timeout must be changed.
entries - A list of receipt handles of the messages for which the visibility timeout must be changed.
public ChangeMessageVisibilityBatchRequest withEntries(ChangeMessageVisibilityBatchRequestEntry... entries)
A list of receipt handles of the messages for which the visibility timeout must be changed.
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)
A list of receipt handles of the messages for which the visibility timeout must be changed.
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.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.