public class CreateQueueRequest extends AmazonWebServiceRequest implements Serializable
CreateQueue operation
.
The CreateQueue
action creates a new queue, or returns the URL of an existing one. When you request CreateQueue
, you
provide a name for the queue. To successfully create a new queue, you must provide a name that is unique within the scope of your own queues.
You may pass one or more attributes in the request. If you do not provide a value for any attribute, the queue will have the default value for that attribute. Permitted attributes are the same that can be set using SetQueueAttributes.
If you provide the name of an existing queue, a new queue isn't created. If the values of attributes provided with the request match up with those on
the existing queue, the queue URL is returned. Otherwise, a QueueNameExists
error is returned.
Constructor and Description |
---|
CreateQueueRequest()
Default constructor for a new CreateQueueRequest object.
|
CreateQueueRequest(String queueName)
Constructs a new CreateQueueRequest object.
|
Modifier and Type | Method and Description |
---|---|
CreateQueueRequest |
addAttributesEntry(String key,
String value)
A map of attributes with their corresponding values.
|
CreateQueueRequest |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAttributes()
A map of attributes with their corresponding values.
|
String |
getQueueName()
The name for the queue to be created.
|
int |
hashCode() |
void |
setAttributes(Map<String,String> attributes)
A map of attributes with their corresponding values.
|
void |
setQueueName(String queueName)
The name for the queue to be created.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateQueueRequest |
withAttributes(Map<String,String> attributes)
A map of attributes with their corresponding values.
|
CreateQueueRequest |
withQueueName(String queueName)
The name for the queue to be created.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public CreateQueueRequest()
public CreateQueueRequest(String queueName)
queueName
- The name for the queue to be created.public String getQueueName()
public void setQueueName(String queueName)
queueName
- The name for the queue to be created.public CreateQueueRequest withQueueName(String queueName)
Returns a reference to this object so that method calls can be chained together.
queueName
- The name for the queue to be created.public Map<String,String> getAttributes()
public void setAttributes(Map<String,String> attributes)
attributes
- A map of attributes with their corresponding values.public CreateQueueRequest withAttributes(Map<String,String> attributes)
Returns a reference to this object so that method calls can be chained together.
attributes
- A map of attributes with their corresponding values.public CreateQueueRequest 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 CreateQueueRequest 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.