public class PurgeQueueRequest extends AmazonWebServiceRequest implements java.io.Serializable
Deletes the messages in a queue specified by the queue URL.
When you use the PurgeQueue
API, the deleted messages in the
queue can't be retrieved.
When you purge a queue, the message deletion process takes up to 60 seconds.
All messages sent to the queue before calling PurgeQueue
will be
deleted; messages sent to the queue while it is being purged might be
deleted. While the queue is being purged, messages sent to the queue before
PurgeQueue
was called might be received, but will be deleted
within the next minute.
Constructor and Description |
---|
PurgeQueueRequest()
Default constructor for PurgeQueueRequest object.
|
PurgeQueueRequest(java.lang.String queueUrl)
Constructs a new PurgeQueueRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getQueueUrl()
The queue URL of the queue to delete the messages from when using the
PurgeQueue API. |
int |
hashCode() |
void |
setQueueUrl(java.lang.String queueUrl)
The queue URL of the queue to delete the messages from when using the
PurgeQueue API. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PurgeQueueRequest |
withQueueUrl(java.lang.String queueUrl)
The queue URL of the queue to delete the messages from when using the
PurgeQueue API. |
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public PurgeQueueRequest()
public PurgeQueueRequest(java.lang.String queueUrl)
queueUrl
-
The queue URL of the queue to delete the messages from when
using the PurgeQueue
API.
Queue URLs are case-sensitive.
public java.lang.String getQueueUrl()
The queue URL of the queue to delete the messages from when using the
PurgeQueue
API.
Queue URLs are case-sensitive.
The queue URL of the queue to delete the messages from when using
the PurgeQueue
API.
Queue URLs are case-sensitive.
public void setQueueUrl(java.lang.String queueUrl)
The queue URL of the queue to delete the messages from when using the
PurgeQueue
API.
Queue URLs are case-sensitive.
queueUrl
-
The queue URL of the queue to delete the messages from when
using the PurgeQueue
API.
Queue URLs are case-sensitive.
public PurgeQueueRequest withQueueUrl(java.lang.String queueUrl)
The queue URL of the queue to delete the messages from when using the
PurgeQueue
API.
Queue URLs are case-sensitive.
Returns a reference to this object so that method calls can be chained together.
queueUrl
-
The queue URL of the queue to delete the messages from when
using the PurgeQueue
API.
Queue URLs are case-sensitive.
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.