public class RemovePermissionRequest extends AmazonWebServiceRequest implements java.io.Serializable
Revokes any permissions in the queue policy that matches the specified
Label parameter. Only the owner of the queue can remove
permissions.
| Constructor and Description |
|---|
RemovePermissionRequest()
Default constructor for RemovePermissionRequest object.
|
RemovePermissionRequest(java.lang.String queueUrl,
java.lang.String label)
Constructs a new RemovePermissionRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getLabel()
The identification of the permission to remove.
|
java.lang.String |
getQueueUrl()
The URL of the Amazon SQS queue to take action on.
|
int |
hashCode() |
void |
setLabel(java.lang.String label)
The identification of the permission to remove.
|
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.
|
RemovePermissionRequest |
withLabel(java.lang.String label)
The identification of the permission to remove.
|
RemovePermissionRequest |
withQueueUrl(java.lang.String queueUrl)
The URL of the Amazon SQS queue to take action on.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic RemovePermissionRequest()
public RemovePermissionRequest(java.lang.String queueUrl,
java.lang.String label)
queueUrl - The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
label - The identification of the permission to remove. This is the label added with the AddPermission action.
public java.lang.String getQueueUrl()
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
public void setQueueUrl(java.lang.String queueUrl)
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
queueUrl - The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
public RemovePermissionRequest withQueueUrl(java.lang.String queueUrl)
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
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.
Queue URLs are case-sensitive.
public java.lang.String getLabel()
The identification of the permission to remove. This is the label added with the AddPermission action.
The identification of the permission to remove. This is the label added with the AddPermission action.
public void setLabel(java.lang.String label)
The identification of the permission to remove. This is the label added with the AddPermission action.
label - The identification of the permission to remove. This is the label added with the AddPermission action.
public RemovePermissionRequest withLabel(java.lang.String label)
The identification of the permission to remove. This is the label added with the AddPermission action.
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 java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.