public class SetQueueAttributesRequest extends AmazonWebServiceRequest implements Serializable
SetQueueAttributes operation
.
Sets the value of one or more queue attributes. Valid attributes that can be set are [VisibilityTimeout, Policy, MaximumMessageSize, MessageRetentionPeriod, ReceiveMessageWaitTimeSeconds].
Constructor and Description |
---|
SetQueueAttributesRequest()
Default constructor for a new SetQueueAttributesRequest object.
|
SetQueueAttributesRequest(String queueUrl,
Map<String,String> attributes)
Constructs a new SetQueueAttributesRequest object.
|
Modifier and Type | Method and Description |
---|---|
SetQueueAttributesRequest |
addAttributesEntry(String key,
String value)
A map of attributes to set.
|
SetQueueAttributesRequest |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAttributes()
A map of attributes to set.
|
String |
getQueueUrl()
The URL of the SQS queue to take action on.
|
int |
hashCode() |
void |
setAttributes(Map<String,String> attributes)
A map of attributes to set.
|
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.
|
SetQueueAttributesRequest |
withAttributes(Map<String,String> attributes)
A map of attributes to set.
|
SetQueueAttributesRequest |
withQueueUrl(String queueUrl)
The URL of the SQS queue to take action on.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public SetQueueAttributesRequest()
public SetQueueAttributesRequest(String queueUrl, Map<String,String> attributes)
queueUrl
- The URL of the SQS queue to take action on.attributes
- A map of attributes to set.public String getQueueUrl()
public void setQueueUrl(String queueUrl)
queueUrl
- The URL of the SQS queue to take action on.public SetQueueAttributesRequest withQueueUrl(String queueUrl)
Returns a reference to this object so that method calls can be chained together.
queueUrl
- The URL of the SQS queue to take action on.public Map<String,String> getAttributes()
public void setAttributes(Map<String,String> attributes)
attributes
- A map of attributes to set.public SetQueueAttributesRequest withAttributes(Map<String,String> attributes)
Returns a reference to this object so that method calls can be chained together.
attributes
- A map of attributes to set.public SetQueueAttributesRequest addAttributesEntry(String key, String value)
The method adds a new key-value pair into Attributes parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Attributes.value
- The corresponding value of the entry to be added into Attributes.public SetQueueAttributesRequest clearAttributesEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.