com.amazonaws.services.sqs.model
Class SetQueueAttributesRequest

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

public class SetQueueAttributesRequest
extends AmazonWebServiceRequest

Container for the parameters to the SetQueueAttributes operation.

Sets an attribute of a queue. Currently, you can set only the VisibilityTimeout attribute for a queue.

See Also:
AmazonSQS.setQueueAttributes(SetQueueAttributesRequest)

Constructor Summary
SetQueueAttributesRequest()
          Default constructor for a new SetQueueAttributesRequest object.
SetQueueAttributesRequest(java.lang.String queueUrl, java.util.Map<java.lang.String,java.lang.String> attributes)
          Constructs a new SetQueueAttributesRequest object.
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getAttributes()
          A list of attributes to set.
 java.lang.String getQueueUrl()
          The URL of the SQS queue to take action on.
 void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
          A list of attributes to set.
 void setQueueUrl(java.lang.String queueUrl)
          The URL of the SQS queue to take action on.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 SetQueueAttributesRequest withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
          A list of attributes to set.
 SetQueueAttributesRequest withQueueUrl(java.lang.String queueUrl)
          The URL of the SQS queue to take action on.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetQueueAttributesRequest

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


SetQueueAttributesRequest

public SetQueueAttributesRequest(java.lang.String queueUrl,
                                 java.util.Map<java.lang.String,java.lang.String> attributes)
Constructs a new SetQueueAttributesRequest 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.
attributes - A list of attributes to set.
Method Detail

getQueueUrl

public java.lang.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(java.lang.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 SetQueueAttributesRequest withQueueUrl(java.lang.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.

getAttributes

public java.util.Map<java.lang.String,java.lang.String> getAttributes()
A list of attributes to set.

Returns:
A list of attributes to set.

setAttributes

public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
A list of attributes to set.

Parameters:
attributes - A list of attributes to set.

withAttributes

public SetQueueAttributesRequest withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
A list of attributes to set.

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

Parameters:
attributes - A list of attributes to set.
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()


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