com.amazonaws.services.sqs.model
Class RemovePermissionRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.sqs.model.RemovePermissionRequest

public class RemovePermissionRequest
extends AmazonWebServiceRequest

Container for the parameters to the RemovePermission operation.

The RemovePermission action revokes any permissions in the queue policy that matches the specified Label parameter. Only the owner of the queue can remove permissions.

See Also:
AmazonSQS.removePermission(RemovePermissionRequest)

Constructor Summary
RemovePermissionRequest()
          Default constructor for a new RemovePermissionRequest object.
RemovePermissionRequest(String queueUrl, String label)
          Constructs a new RemovePermissionRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getLabel()
          The identification of the permission to remove.
 String getQueueUrl()
          The URL of the 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 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 SQS queue to take action on.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemovePermissionRequest

public RemovePermissionRequest()
Default constructor for a new RemovePermissionRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


RemovePermissionRequest

public RemovePermissionRequest(String queueUrl,
                               String label)
Constructs a new RemovePermissionRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
queueUrl - The URL of the SQS queue to take action on.
label - The identification of the permission to remove. This is the label added with the AddPermission operation.
Method Detail

getQueueUrl

public String getQueueUrl()
The URL of the SQS queue to take action on.

Returns:
The URL of the SQS queue to take action on.

setQueueUrl

public void setQueueUrl(String queueUrl)
The URL of the SQS queue to take action on.

Parameters:
queueUrl - The URL of the SQS queue to take action on.

withQueueUrl

public RemovePermissionRequest withQueueUrl(String queueUrl)
The URL of the SQS queue to take action on.

Returns a reference to this object so that method calls can be chained together.

Parameters:
queueUrl - The URL of the SQS queue to take action on.
Returns:
A reference to this updated object so that method calls can be chained together.

getLabel

public String getLabel()
The identification of the permission to remove. This is the label added with the AddPermission operation.

Returns:
The identification of the permission to remove. This is the label added with the AddPermission operation.

setLabel

public void setLabel(String label)
The identification of the permission to remove. This is the label added with the AddPermission operation.

Parameters:
label - The identification of the permission to remove. This is the label added with the AddPermission operation.

withLabel

public RemovePermissionRequest withLabel(String label)
The identification of the permission to remove. This is the label added with the AddPermission operation.

Returns a reference to this object so that method calls can be chained together.

Parameters:
label - The identification of the permission to remove. This is the label added with the AddPermission operation.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.