Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.sqs.model
Class AddPermissionRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.sqs.model.AddPermissionRequest
All Implemented Interfaces:
Serializable

public class AddPermissionRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the AddPermission operation.

See Also:
AmazonSQS.addPermission(AddPermissionRequest), Serialized Form

Constructor Summary
AddPermissionRequest()
          Default constructor for a new AddPermissionRequest object.
AddPermissionRequest(String queueUrl, String label, List<String> aWSAccountIds, List<String> actions)
          Constructs a new AddPermissionRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 List<String> getActions()
          Returns the value of the Actions property for this object.
 List<String> getAWSAccountIds()
          Returns the value of the AWSAccountIds property for this object.
 String getLabel()
          Returns the value of the Label property for this object.
 String getQueueUrl()
          Returns the value of the QueueUrl property for this object.
 int hashCode()
           
 void setActions(Collection<String> actions)
          Sets the value of the Actions property for this object.
 void setAWSAccountIds(Collection<String> aWSAccountIds)
          Sets the value of the AWSAccountIds property for this object.
 void setLabel(String label)
          Sets the value of the Label property for this object.
 void setQueueUrl(String queueUrl)
          Sets the value of the QueueUrl property for this object.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AddPermissionRequest withActions(Collection<String> actions)
          Sets the value of the Actions property for this object.
 AddPermissionRequest withActions(String... actions)
          Sets the value of the Actions property for this object.
 AddPermissionRequest withAWSAccountIds(Collection<String> aWSAccountIds)
          Sets the value of the AWSAccountIds property for this object.
 AddPermissionRequest withAWSAccountIds(String... aWSAccountIds)
          Sets the value of the AWSAccountIds property for this object.
 AddPermissionRequest withLabel(String label)
          Sets the value of the Label property for this object.
 AddPermissionRequest withQueueUrl(String queueUrl)
          Sets the value of the QueueUrl property for this object.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddPermissionRequest

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


AddPermissionRequest

public AddPermissionRequest(String queueUrl,
                            String label,
                            List<String> aWSAccountIds,
                            List<String> actions)
Constructs a new AddPermissionRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
queueUrl -
label -
aWSAccountIds -
actions -
Method Detail

getQueueUrl

public String getQueueUrl()
Returns the value of the QueueUrl property for this object.

Returns:
The value of the QueueUrl property for this object.

setQueueUrl

public void setQueueUrl(String queueUrl)
Sets the value of the QueueUrl property for this object.

Parameters:
queueUrl - The new value for the QueueUrl property for this object.

withQueueUrl

public AddPermissionRequest withQueueUrl(String queueUrl)
Sets the value of the QueueUrl property for this object.

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

Parameters:
queueUrl - The new value for the QueueUrl property for this object.

getLabel

public String getLabel()
Returns the value of the Label property for this object.

Returns:
The value of the Label property for this object.

setLabel

public void setLabel(String label)
Sets the value of the Label property for this object.

Parameters:
label - The new value for the Label property for this object.

withLabel

public AddPermissionRequest withLabel(String label)
Sets the value of the Label property for this object.

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

Parameters:
label - The new value for the Label property for this object.

getAWSAccountIds

public List<String> getAWSAccountIds()
Returns the value of the AWSAccountIds property for this object.

Returns:
The value of the AWSAccountIds property for this object.

setAWSAccountIds

public void setAWSAccountIds(Collection<String> aWSAccountIds)
Sets the value of the AWSAccountIds property for this object.

Parameters:
aWSAccountIds - The new value for the AWSAccountIds property for this object.

withAWSAccountIds

public AddPermissionRequest withAWSAccountIds(String... aWSAccountIds)
Sets the value of the AWSAccountIds property for this object.

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

Parameters:
aWSAccountIds - The new value for the AWSAccountIds property for this object.

withAWSAccountIds

public AddPermissionRequest withAWSAccountIds(Collection<String> aWSAccountIds)
Sets the value of the AWSAccountIds property for this object.

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

Parameters:
aWSAccountIds - The new value for the AWSAccountIds property for this object.

getActions

public List<String> getActions()
Returns the value of the Actions property for this object.

Returns:
The value of the Actions property for this object.

setActions

public void setActions(Collection<String> actions)
Sets the value of the Actions property for this object.

Parameters:
actions - The new value for the Actions property for this object.

withActions

public AddPermissionRequest withActions(String... actions)
Sets the value of the Actions property for this object.

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

Parameters:
actions - The new value for the Actions property for this object.

withActions

public AddPermissionRequest withActions(Collection<String> actions)
Sets the value of the Actions property for this object.

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

Parameters:
actions - The new value for the Actions property for this object.

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.