public class DeleteMessageRequest extends AmazonWebServiceRequest implements Serializable
DeleteMessage operation
.
The DeleteMessage
action unconditionally removes the specified message from the specified queue. Even if the message is locked by another
reader due to the visibility timeout setting, it is still deleted from the queue.
Constructor and Description |
---|
DeleteMessageRequest()
Default constructor for a new DeleteMessageRequest object.
|
DeleteMessageRequest(String queueUrl,
String receiptHandle)
Constructs a new DeleteMessageRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getQueueUrl()
The URL of the SQS queue to take action on.
|
String |
getReceiptHandle()
The receipt handle associated with the message to delete.
|
int |
hashCode() |
void |
setQueueUrl(String queueUrl)
The URL of the SQS queue to take action on.
|
void |
setReceiptHandle(String receiptHandle)
The receipt handle associated with the message to delete.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteMessageRequest |
withQueueUrl(String queueUrl)
The URL of the SQS queue to take action on.
|
DeleteMessageRequest |
withReceiptHandle(String receiptHandle)
The receipt handle associated with the message to delete.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public DeleteMessageRequest()
public DeleteMessageRequest(String queueUrl, String receiptHandle)
queueUrl
- The URL of the SQS queue to take action on.receiptHandle
- The receipt handle associated with the message to
delete.public String getQueueUrl()
public void setQueueUrl(String queueUrl)
queueUrl
- The URL of the SQS queue to take action on.public DeleteMessageRequest withQueueUrl(String queueUrl)
Returns a reference to this object so that method calls can be chained together.
queueUrl
- The URL of the SQS queue to take action on.public String getReceiptHandle()
public void setReceiptHandle(String receiptHandle)
receiptHandle
- The receipt handle associated with the message to delete.public DeleteMessageRequest withReceiptHandle(String receiptHandle)
Returns a reference to this object so that method calls can be chained together.
receiptHandle
- The receipt handle associated with the message to delete.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.