Class DeleteMessageBatchRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.sqs.model.DeleteMessageBatchRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class DeleteMessageBatchRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description DeleteMessageBatchRequest()
Default constructor for DeleteMessageBatchRequest object.DeleteMessageBatchRequest(String queueUrl)
Constructs a new DeleteMessageBatchRequest object.DeleteMessageBatchRequest(String queueUrl, List<DeleteMessageBatchRequestEntry> entries)
Constructs a new DeleteMessageBatchRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeleteMessageBatchRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
List<DeleteMessageBatchRequestEntry>
getEntries()
A list of receipt handles for the messages to be deleted.String
getQueueUrl()
The URL of the Amazon SQS queue to take action on.int
hashCode()
void
setEntries(Collection<DeleteMessageBatchRequestEntry> entries)
A list of receipt handles for the messages to be deleted.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.DeleteMessageBatchRequest
withEntries(DeleteMessageBatchRequestEntry... entries)
A list of receipt handles for the messages to be deleted.DeleteMessageBatchRequest
withEntries(Collection<DeleteMessageBatchRequestEntry> entries)
A list of receipt handles for the messages to be deleted.DeleteMessageBatchRequest
withQueueUrl(String queueUrl)
The URL of the Amazon SQS queue to take action on.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Constructor Detail
-
DeleteMessageBatchRequest
public DeleteMessageBatchRequest()
Default constructor for DeleteMessageBatchRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
DeleteMessageBatchRequest
public DeleteMessageBatchRequest(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.Queue URLs are case-sensitive.
-
DeleteMessageBatchRequest
public DeleteMessageBatchRequest(String queueUrl, 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.Queue URLs are case-sensitive.
entries
- A list of receipt handles for the messages to be deleted.
-
-
Method Detail
-
setQueueUrl
public void setQueueUrl(String queueUrl)
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
- Parameters:
queueUrl
- The URL of the Amazon SQS queue to take action on.Queue URLs are case-sensitive.
-
getQueueUrl
public String getQueueUrl()
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
- Returns:
- The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
-
withQueueUrl
public DeleteMessageBatchRequest withQueueUrl(String queueUrl)
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
- Parameters:
queueUrl
- The URL of the Amazon SQS queue to take action on.Queue URLs are case-sensitive.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getEntries
public 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(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.
NOTE: This method appends the values to the existing list (if any). Use
setEntries(java.util.Collection)
orwithEntries(java.util.Collection)
if you want to override the existing values.- Parameters:
entries
- A list of receipt handles for the messages to be deleted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withEntries
public DeleteMessageBatchRequest withEntries(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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DeleteMessageBatchRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-