com.amazonaws.services.sqs.model
Class DeleteMessageBatchRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.sqs.model.DeleteMessageBatchRequest
All Implemented Interfaces:
java.io.Serializable

public class DeleteMessageBatchRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the DeleteMessageBatch operation.

Deletes multiple messages. This is a batch version of DeleteMessage. The result of the delete action on each message is reported individually in the response.

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

See Also:
AmazonSQS.deleteMessageBatch(DeleteMessageBatchRequest), Serialized Form

Constructor Summary
DeleteMessageBatchRequest()
          Default constructor for a new 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.
 
Method Summary
 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.
 
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

DeleteMessageBatchRequest

public DeleteMessageBatchRequest()
Default constructor for a new DeleteMessageBatchRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


DeleteMessageBatchRequest

public DeleteMessageBatchRequest(java.lang.String queueUrl)
Constructs a new DeleteMessageBatchRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
queueUrl - The URL of the Amazon SQS queue to take action on.

DeleteMessageBatchRequest

public DeleteMessageBatchRequest(java.lang.String queueUrl,
                                 java.util.List<DeleteMessageBatchRequestEntry> entries)
Constructs a new DeleteMessageBatchRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
queueUrl - The URL of the Amazon SQS queue to take action on.
entries - A list of receipt handles for the messages to be deleted.
Method Detail

getQueueUrl

public java.lang.String getQueueUrl()
The URL of the Amazon SQS queue to take action on.

Returns:
The URL of the Amazon SQS queue to take action on.

setQueueUrl

public void setQueueUrl(java.lang.String queueUrl)
The URL of the Amazon SQS queue to take action on.

Parameters:
queueUrl - The URL of the Amazon SQS queue to take action on.

withQueueUrl

public DeleteMessageBatchRequest withQueueUrl(java.lang.String queueUrl)
The URL of the Amazon SQS queue to take action on.

Returns a reference to this object so that method calls can be chained together.

Parameters:
queueUrl - The URL of the Amazon SQS queue to take action on.
Returns:
A reference to this updated object so that method calls can be chained together.

getEntries

public java.util.List<DeleteMessageBatchRequestEntry> getEntries()
A list of receipt handles for the messages to be deleted.

Returns:
A list of receipt handles for the messages to be deleted.

setEntries

public void setEntries(java.util.Collection<DeleteMessageBatchRequestEntry> entries)
A list of receipt handles for the messages to be deleted.

Parameters:
entries - A list of receipt handles for the messages to be deleted.

withEntries

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.

Parameters:
entries - A list of receipt handles for the messages to be deleted.
Returns:
A reference to this updated object so that method calls can be chained together.

withEntries

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.

Parameters:
entries - A list of receipt handles for the messages to be deleted.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.