Class GetQueueAttributesRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for GetQueueAttributesRequest object.GetQueueAttributesRequest
(String queueUrl) Constructs a new GetQueueAttributesRequest object.GetQueueAttributesRequest
(String queueUrl, List<String> attributeNames) Constructs a new GetQueueAttributesRequest object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
A list of attributes to retrieve information for.The URL of the Amazon SQS queue to take action on.int
hashCode()
void
setAttributeNames
(Collection<String> attributeNames) A list of attributes to retrieve information for.void
setQueueUrl
(String queueUrl) The URL of the Amazon SQS queue to take action on.toString()
Returns a string representation of this object; useful for testing and debugging.withAttributeNames
(QueueAttributeName... attributeNames) A list of attributes to retrieve information for.withAttributeNames
(String... attributeNames) A list of attributes to retrieve information for.withAttributeNames
(Collection<String> attributeNames) A list of attributes to retrieve information for.withQueueUrl
(String queueUrl) The URL of the Amazon SQS queue to take action on.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
GetQueueAttributesRequest
public GetQueueAttributesRequest()Default constructor for GetQueueAttributesRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
GetQueueAttributesRequest
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.Queue URLs are case-sensitive.
-
GetQueueAttributesRequest
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.Queue URLs are case-sensitive.
attributeNames
- A list of attributes to retrieve information for. The following attributes are supported:-
All
- returns all values. -
ApproximateNumberOfMessages
- returns the approximate number of visible messages in a queue. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide. -
ApproximateNumberOfMessagesNotVisible
- returns the approximate number of messages that are not timed-out and not deleted. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide. -
VisibilityTimeout
- returns the visibility timeout for the queue. For more information about visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide. -
CreatedTimestamp
- returns the time when the queue was created (epoch time in seconds). -
LastModifiedTimestamp
- returns the time when the queue was last changed (epoch time in seconds). -
Policy
- returns the queue's policy. -
MaximumMessageSize
- returns the limit of how many bytes a message can contain before Amazon SQS rejects it. -
MessageRetentionPeriod
- returns the number of seconds Amazon SQS retains a message. -
QueueArn
- returns the queue's Amazon resource name (ARN). -
ApproximateNumberOfMessagesDelayed
- returns the approximate number of messages that are pending to be added to the queue. -
DelaySeconds
- returns the default delay on the queue in seconds. -
ReceiveMessageWaitTimeSeconds
- returns the time for which a ReceiveMessage call will wait for a message to arrive. -
RedrivePolicy
- returns the parameters for dead letter queue functionality of the source queue. For more information about RedrivePolicy and dead letter queues, see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.
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.
-
-
-
Method Details
-
setQueueUrl
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
- Parameters:
queueUrl
- The URL of the Amazon SQS queue to take action on.Queue URLs are case-sensitive.
-
getQueueUrl
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
- Returns:
- The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
-
withQueueUrl
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
- Parameters:
queueUrl
- The URL of the Amazon SQS queue to take action on.Queue URLs are case-sensitive.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAttributeNames
A list of attributes to retrieve information for. The following attributes are supported:
-
All
- returns all values. -
ApproximateNumberOfMessages
- returns the approximate number of visible messages in a queue. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide. -
ApproximateNumberOfMessagesNotVisible
- returns the approximate number of messages that are not timed-out and not deleted. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide. -
VisibilityTimeout
- returns the visibility timeout for the queue. For more information about visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide. -
CreatedTimestamp
- returns the time when the queue was created (epoch time in seconds). -
LastModifiedTimestamp
- returns the time when the queue was last changed (epoch time in seconds). -
Policy
- returns the queue's policy. -
MaximumMessageSize
- returns the limit of how many bytes a message can contain before Amazon SQS rejects it. -
MessageRetentionPeriod
- returns the number of seconds Amazon SQS retains a message. -
QueueArn
- returns the queue's Amazon resource name (ARN). -
ApproximateNumberOfMessagesDelayed
- returns the approximate number of messages that are pending to be added to the queue. -
DelaySeconds
- returns the default delay on the queue in seconds. -
ReceiveMessageWaitTimeSeconds
- returns the time for which a ReceiveMessage call will wait for a message to arrive. -
RedrivePolicy
- returns the parameters for dead letter queue functionality of the source queue. For more information about RedrivePolicy and dead letter queues, see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.
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.
- Returns:
- A list of attributes to retrieve information for. The following
attributes are supported:
-
All
- returns all values. -
ApproximateNumberOfMessages
- returns the approximate number of visible messages in a queue. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide. -
ApproximateNumberOfMessagesNotVisible
- returns the approximate number of messages that are not timed-out and not deleted. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide. -
VisibilityTimeout
- returns the visibility timeout for the queue. For more information about visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide. -
CreatedTimestamp
- returns the time when the queue was created (epoch time in seconds). -
LastModifiedTimestamp
- returns the time when the queue was last changed (epoch time in seconds). -
Policy
- returns the queue's policy. -
MaximumMessageSize
- returns the limit of how many bytes a message can contain before Amazon SQS rejects it. -
MessageRetentionPeriod
- returns the number of seconds Amazon SQS retains a message. -
QueueArn
- returns the queue's Amazon resource name (ARN). -
ApproximateNumberOfMessagesDelayed
- returns the approximate number of messages that are pending to be added to the queue. -
DelaySeconds
- returns the default delay on the queue in seconds. -
ReceiveMessageWaitTimeSeconds
- returns the time for which a ReceiveMessage call will wait for a message to arrive. -
RedrivePolicy
- returns the parameters for dead letter queue functionality of the source queue. For more information about RedrivePolicy and dead letter queues, see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.
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.
-
- See Also:
-
-
setAttributeNames
A list of attributes to retrieve information for. The following attributes are supported:
-
All
- returns all values. -
ApproximateNumberOfMessages
- returns the approximate number of visible messages in a queue. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide. -
ApproximateNumberOfMessagesNotVisible
- returns the approximate number of messages that are not timed-out and not deleted. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide. -
VisibilityTimeout
- returns the visibility timeout for the queue. For more information about visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide. -
CreatedTimestamp
- returns the time when the queue was created (epoch time in seconds). -
LastModifiedTimestamp
- returns the time when the queue was last changed (epoch time in seconds). -
Policy
- returns the queue's policy. -
MaximumMessageSize
- returns the limit of how many bytes a message can contain before Amazon SQS rejects it. -
MessageRetentionPeriod
- returns the number of seconds Amazon SQS retains a message. -
QueueArn
- returns the queue's Amazon resource name (ARN). -
ApproximateNumberOfMessagesDelayed
- returns the approximate number of messages that are pending to be added to the queue. -
DelaySeconds
- returns the default delay on the queue in seconds. -
ReceiveMessageWaitTimeSeconds
- returns the time for which a ReceiveMessage call will wait for a message to arrive. -
RedrivePolicy
- returns the parameters for dead letter queue functionality of the source queue. For more information about RedrivePolicy and dead letter queues, see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.
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.
- Parameters:
attributeNames
- A list of attributes to retrieve information for. The following attributes are supported:-
All
- returns all values. -
ApproximateNumberOfMessages
- returns the approximate number of visible messages in a queue. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide. -
ApproximateNumberOfMessagesNotVisible
- returns the approximate number of messages that are not timed-out and not deleted. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide. -
VisibilityTimeout
- returns the visibility timeout for the queue. For more information about visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide. -
CreatedTimestamp
- returns the time when the queue was created (epoch time in seconds). -
LastModifiedTimestamp
- returns the time when the queue was last changed (epoch time in seconds). -
Policy
- returns the queue's policy. -
MaximumMessageSize
- returns the limit of how many bytes a message can contain before Amazon SQS rejects it. -
MessageRetentionPeriod
- returns the number of seconds Amazon SQS retains a message. -
QueueArn
- returns the queue's Amazon resource name (ARN). -
ApproximateNumberOfMessagesDelayed
- returns the approximate number of messages that are pending to be added to the queue. -
DelaySeconds
- returns the default delay on the queue in seconds. -
ReceiveMessageWaitTimeSeconds
- returns the time for which a ReceiveMessage call will wait for a message to arrive. -
RedrivePolicy
- returns the parameters for dead letter queue functionality of the source queue. For more information about RedrivePolicy and dead letter queues, see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.
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.
-
- See Also:
-
-
withAttributeNames
A list of attributes to retrieve information for. The following attributes are supported:
-
All
- returns all values. -
ApproximateNumberOfMessages
- returns the approximate number of visible messages in a queue. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide. -
ApproximateNumberOfMessagesNotVisible
- returns the approximate number of messages that are not timed-out and not deleted. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide. -
VisibilityTimeout
- returns the visibility timeout for the queue. For more information about visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide. -
CreatedTimestamp
- returns the time when the queue was created (epoch time in seconds). -
LastModifiedTimestamp
- returns the time when the queue was last changed (epoch time in seconds). -
Policy
- returns the queue's policy. -
MaximumMessageSize
- returns the limit of how many bytes a message can contain before Amazon SQS rejects it. -
MessageRetentionPeriod
- returns the number of seconds Amazon SQS retains a message. -
QueueArn
- returns the queue's Amazon resource name (ARN). -
ApproximateNumberOfMessagesDelayed
- returns the approximate number of messages that are pending to be added to the queue. -
DelaySeconds
- returns the default delay on the queue in seconds. -
ReceiveMessageWaitTimeSeconds
- returns the time for which a ReceiveMessage call will wait for a message to arrive. -
RedrivePolicy
- returns the parameters for dead letter queue functionality of the source queue. For more information about RedrivePolicy and dead letter queues, see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.
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: This method appends the values to the existing list (if any). Use
setAttributeNames(java.util.Collection)
orwithAttributeNames(java.util.Collection)
if you want to override the existing values.- Parameters:
attributeNames
- A list of attributes to retrieve information for. The following attributes are supported:-
All
- returns all values. -
ApproximateNumberOfMessages
- returns the approximate number of visible messages in a queue. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide. -
ApproximateNumberOfMessagesNotVisible
- returns the approximate number of messages that are not timed-out and not deleted. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide. -
VisibilityTimeout
- returns the visibility timeout for the queue. For more information about visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide. -
CreatedTimestamp
- returns the time when the queue was created (epoch time in seconds). -
LastModifiedTimestamp
- returns the time when the queue was last changed (epoch time in seconds). -
Policy
- returns the queue's policy. -
MaximumMessageSize
- returns the limit of how many bytes a message can contain before Amazon SQS rejects it. -
MessageRetentionPeriod
- returns the number of seconds Amazon SQS retains a message. -
QueueArn
- returns the queue's Amazon resource name (ARN). -
ApproximateNumberOfMessagesDelayed
- returns the approximate number of messages that are pending to be added to the queue. -
DelaySeconds
- returns the default delay on the queue in seconds. -
ReceiveMessageWaitTimeSeconds
- returns the time for which a ReceiveMessage call will wait for a message to arrive. -
RedrivePolicy
- returns the parameters for dead letter queue functionality of the source queue. For more information about RedrivePolicy and dead letter queues, see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
withAttributeNames
A list of attributes to retrieve information for. The following attributes are supported:
-
All
- returns all values. -
ApproximateNumberOfMessages
- returns the approximate number of visible messages in a queue. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide. -
ApproximateNumberOfMessagesNotVisible
- returns the approximate number of messages that are not timed-out and not deleted. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide. -
VisibilityTimeout
- returns the visibility timeout for the queue. For more information about visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide. -
CreatedTimestamp
- returns the time when the queue was created (epoch time in seconds). -
LastModifiedTimestamp
- returns the time when the queue was last changed (epoch time in seconds). -
Policy
- returns the queue's policy. -
MaximumMessageSize
- returns the limit of how many bytes a message can contain before Amazon SQS rejects it. -
MessageRetentionPeriod
- returns the number of seconds Amazon SQS retains a message. -
QueueArn
- returns the queue's Amazon resource name (ARN). -
ApproximateNumberOfMessagesDelayed
- returns the approximate number of messages that are pending to be added to the queue. -
DelaySeconds
- returns the default delay on the queue in seconds. -
ReceiveMessageWaitTimeSeconds
- returns the time for which a ReceiveMessage call will wait for a message to arrive. -
RedrivePolicy
- returns the parameters for dead letter queue functionality of the source queue. For more information about RedrivePolicy and dead letter queues, see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.
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.
- Parameters:
attributeNames
- A list of attributes to retrieve information for. The following attributes are supported:-
All
- returns all values. -
ApproximateNumberOfMessages
- returns the approximate number of visible messages in a queue. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide. -
ApproximateNumberOfMessagesNotVisible
- returns the approximate number of messages that are not timed-out and not deleted. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide. -
VisibilityTimeout
- returns the visibility timeout for the queue. For more information about visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide. -
CreatedTimestamp
- returns the time when the queue was created (epoch time in seconds). -
LastModifiedTimestamp
- returns the time when the queue was last changed (epoch time in seconds). -
Policy
- returns the queue's policy. -
MaximumMessageSize
- returns the limit of how many bytes a message can contain before Amazon SQS rejects it. -
MessageRetentionPeriod
- returns the number of seconds Amazon SQS retains a message. -
QueueArn
- returns the queue's Amazon resource name (ARN). -
ApproximateNumberOfMessagesDelayed
- returns the approximate number of messages that are pending to be added to the queue. -
DelaySeconds
- returns the default delay on the queue in seconds. -
ReceiveMessageWaitTimeSeconds
- returns the time for which a ReceiveMessage call will wait for a message to arrive. -
RedrivePolicy
- returns the parameters for dead letter queue functionality of the source queue. For more information about RedrivePolicy and dead letter queues, see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
withAttributeNames
A list of attributes to retrieve information for. The following attributes are supported:
-
All
- returns all values. -
ApproximateNumberOfMessages
- returns the approximate number of visible messages in a queue. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide. -
ApproximateNumberOfMessagesNotVisible
- returns the approximate number of messages that are not timed-out and not deleted. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide. -
VisibilityTimeout
- returns the visibility timeout for the queue. For more information about visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide. -
CreatedTimestamp
- returns the time when the queue was created (epoch time in seconds). -
LastModifiedTimestamp
- returns the time when the queue was last changed (epoch time in seconds). -
Policy
- returns the queue's policy. -
MaximumMessageSize
- returns the limit of how many bytes a message can contain before Amazon SQS rejects it. -
MessageRetentionPeriod
- returns the number of seconds Amazon SQS retains a message. -
QueueArn
- returns the queue's Amazon resource name (ARN). -
ApproximateNumberOfMessagesDelayed
- returns the approximate number of messages that are pending to be added to the queue. -
DelaySeconds
- returns the default delay on the queue in seconds. -
ReceiveMessageWaitTimeSeconds
- returns the time for which a ReceiveMessage call will wait for a message to arrive. -
RedrivePolicy
- returns the parameters for dead letter queue functionality of the source queue. For more information about RedrivePolicy and dead letter queues, see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.
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.
- Parameters:
attributeNames
- A list of attributes to retrieve information for. The following attributes are supported:-
All
- returns all values. -
ApproximateNumberOfMessages
- returns the approximate number of visible messages in a queue. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide. -
ApproximateNumberOfMessagesNotVisible
- returns the approximate number of messages that are not timed-out and not deleted. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide. -
VisibilityTimeout
- returns the visibility timeout for the queue. For more information about visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide. -
CreatedTimestamp
- returns the time when the queue was created (epoch time in seconds). -
LastModifiedTimestamp
- returns the time when the queue was last changed (epoch time in seconds). -
Policy
- returns the queue's policy. -
MaximumMessageSize
- returns the limit of how many bytes a message can contain before Amazon SQS rejects it. -
MessageRetentionPeriod
- returns the number of seconds Amazon SQS retains a message. -
QueueArn
- returns the queue's Amazon resource name (ARN). -
ApproximateNumberOfMessagesDelayed
- returns the approximate number of messages that are pending to be added to the queue. -
DelaySeconds
- returns the default delay on the queue in seconds. -
ReceiveMessageWaitTimeSeconds
- returns the time for which a ReceiveMessage call will wait for a message to arrive. -
RedrivePolicy
- returns the parameters for dead letter queue functionality of the source queue. For more information about RedrivePolicy and dead letter queues, see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-