public class DeleteMessageBatchRequest extends AmazonWebServiceRequest implements java.io.Serializable
Deletes up to ten messages from the specified queue. This is a batch version of DeleteMessage. The result of the delete action on each message is reported individually in the response.
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 |
---|
DeleteMessageBatchRequest()
Default constructor for DeleteMessageBatchRequest object.
|
DeleteMessageBatchRequest(java.lang.String queueUrl)
Constructs a new DeleteMessageBatchRequest object.
|
DeleteMessageBatchRequest(java.lang.String queueUrl,
java.util.List<DeleteMessageBatchRequestEntry> entries)
Constructs a new DeleteMessageBatchRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<DeleteMessageBatchRequestEntry> |
getEntries()
A list of receipt handles for the messages to be deleted.
|
java.lang.String |
getQueueUrl()
The URL of the Amazon SQS queue to take action on.
|
int |
hashCode() |
void |
setEntries(java.util.Collection<DeleteMessageBatchRequestEntry> entries)
A list of receipt handles for the messages to be deleted.
|
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.
|
DeleteMessageBatchRequest |
withEntries(java.util.Collection<DeleteMessageBatchRequestEntry> entries)
A list of receipt handles for the messages to be deleted.
|
DeleteMessageBatchRequest |
withEntries(DeleteMessageBatchRequestEntry... entries)
A list of receipt handles for the messages to be deleted.
|
DeleteMessageBatchRequest |
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, withRequestMetricCollector
public DeleteMessageBatchRequest()
public DeleteMessageBatchRequest(java.lang.String queueUrl)
queueUrl
- The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
public DeleteMessageBatchRequest(java.lang.String queueUrl, java.util.List<DeleteMessageBatchRequestEntry> entries)
queueUrl
- The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
entries
- A list of receipt handles for the messages to be deleted.
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 DeleteMessageBatchRequest 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<DeleteMessageBatchRequestEntry> getEntries()
A list of receipt handles for the messages to be deleted.
A list of receipt handles for the messages to be deleted.
public void setEntries(java.util.Collection<DeleteMessageBatchRequestEntry> entries)
A list of receipt handles for the messages to be deleted.
entries
- A list of receipt handles for the messages to be deleted.
public DeleteMessageBatchRequest withEntries(DeleteMessageBatchRequestEntry... entries)
A list of receipt handles for the messages to be deleted.
Returns a reference to this object so that method calls can be chained together.
entries
- A list of receipt handles for the messages to be deleted.
public DeleteMessageBatchRequest withEntries(java.util.Collection<DeleteMessageBatchRequestEntry> entries)
A list of receipt handles for the messages to be deleted.
Returns a reference to this object so that method calls can be chained together.
entries
- A list of receipt handles for the messages to be deleted.
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
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.