com.amazonaws.services.sqs.model
Class GetQueueAttributesRequest

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

public class GetQueueAttributesRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the GetQueueAttributes operation.

Gets attributes for the specified queue. The following attributes are supported:

NOTE:Going forward, new attributes might be added. If you are writing code that calls this action, we recommend that you structure your code so that it can handle new attributes gracefully.

NOTE:Some API actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=this

&Attribute.2=that

See Also:
AmazonSQS.getQueueAttributes(GetQueueAttributesRequest), Serialized Form

Constructor Summary
GetQueueAttributesRequest()
          Default constructor for a new GetQueueAttributesRequest object.
GetQueueAttributesRequest(java.lang.String queueUrl)
          Constructs a new GetQueueAttributesRequest object.
GetQueueAttributesRequest(java.lang.String queueUrl, java.util.List<java.lang.String> attributeNames)
          Constructs a new GetQueueAttributesRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.List<java.lang.String> getAttributeNames()
          A list of attributes to retrieve information for.
 java.lang.String getQueueUrl()
          The URL of the Amazon SQS queue to take action on.
 int hashCode()
           
 void setAttributeNames(java.util.Collection<java.lang.String> attributeNames)
          A list of attributes to retrieve information for.
 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.
 GetQueueAttributesRequest withAttributeNames(java.util.Collection<java.lang.String> attributeNames)
          A list of attributes to retrieve information for.
 GetQueueAttributesRequest withAttributeNames(QueueAttributeName... attributeNames)
          A list of attributes to retrieve information for.
 GetQueueAttributesRequest withAttributeNames(java.lang.String... attributeNames)
          A list of attributes to retrieve information for.
 GetQueueAttributesRequest withQueueUrl(java.lang.String queueUrl)
          The URL of the Amazon SQS queue to take action on.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GetQueueAttributesRequest

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


GetQueueAttributesRequest

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

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

GetQueueAttributesRequest

public GetQueueAttributesRequest(java.lang.String queueUrl,
                                 java.util.List<java.lang.String> attributeNames)
Constructs a new GetQueueAttributesRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
queueUrl - The URL of the Amazon SQS queue to take action on.
attributeNames - A list of attributes to retrieve information for.
Method Detail

getQueueUrl

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

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

setQueueUrl

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

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

withQueueUrl

public GetQueueAttributesRequest withQueueUrl(java.lang.String queueUrl)
The URL of the Amazon 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 Amazon SQS queue to take action on.
Returns:
A reference to this updated object so that method calls can be chained together.

getAttributeNames

public java.util.List<java.lang.String> getAttributeNames()
A list of attributes to retrieve information for.

Returns:
A list of attributes to retrieve information for.

setAttributeNames

public void setAttributeNames(java.util.Collection<java.lang.String> attributeNames)
A list of attributes to retrieve information for.

Parameters:
attributeNames - A list of attributes to retrieve information for.

withAttributeNames

public GetQueueAttributesRequest withAttributeNames(java.lang.String... attributeNames)
A list of attributes to retrieve information for.

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

Parameters:
attributeNames - A list of attributes to retrieve information for.
Returns:
A reference to this updated object so that method calls can be chained together.

withAttributeNames

public GetQueueAttributesRequest withAttributeNames(java.util.Collection<java.lang.String> attributeNames)
A list of attributes to retrieve information for.

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

Parameters:
attributeNames - A list of attributes to retrieve information for.
Returns:
A reference to this updated object so that method calls can be chained together.

withAttributeNames

public GetQueueAttributesRequest withAttributeNames(QueueAttributeName... attributeNames)
A list of attributes to retrieve information for.

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

Parameters:
attributeNames - A list of attributes to retrieve information for.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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