public class RemovePermissionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
RemovePermission operation
.
Revokes any permissions in the queue policy that matches the specified
Label
parameter. Only the owner of the queue can remove
permissions.
NOOP
Constructor and Description |
---|
RemovePermissionRequest()
Default constructor for a new RemovePermissionRequest object.
|
RemovePermissionRequest(String queueUrl,
String label)
Constructs a new RemovePermissionRequest object.
|
Modifier and Type | Method and Description |
---|---|
RemovePermissionRequest |
clone() |
boolean |
equals(Object obj) |
String |
getLabel()
The identification of the permission to remove.
|
String |
getQueueUrl()
The URL of the Amazon SQS queue to take action on.
|
int |
hashCode() |
void |
setLabel(String label)
The identification of the permission to remove.
|
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.
|
RemovePermissionRequest |
withLabel(String label)
The identification of the permission to remove.
|
RemovePermissionRequest |
withQueueUrl(String queueUrl)
The URL of the Amazon SQS queue to take action on.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public RemovePermissionRequest()
public RemovePermissionRequest(String queueUrl, String label)
queueUrl
- The URL of the Amazon SQS queue to take action on.label
- The identification of the permission to remove. This is
the label added with the AddPermission action.public String getQueueUrl()
public void setQueueUrl(String queueUrl)
queueUrl
- The URL of the Amazon SQS queue to take action on.public RemovePermissionRequest withQueueUrl(String queueUrl)
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.public String getLabel()
public void setLabel(String label)
label
- The identification of the permission to remove. This is the label
added with the AddPermission action.public RemovePermissionRequest withLabel(String label)
Returns a reference to this object so that method calls can be chained together.
label
- The identification of the permission to remove. This is the label
added with the AddPermission action.public String toString()
toString
in class Object
Object.toString()
public RemovePermissionRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2015. All rights reserved.