|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.sqs.model.CreateQueueRequest
public class CreateQueueRequest
Container for the parameters to the 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.
AmazonSQS.createQueue(CreateQueueRequest)
Constructor Summary | |
---|---|
CreateQueueRequest()
Default constructor for a new CreateQueueRequest object. |
|
CreateQueueRequest(String queueName)
Constructs a new CreateQueueRequest object. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CreateQueueRequest()
public CreateQueueRequest(String queueName)
queueName
- The name for the queue to be created.Method Detail |
---|
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 String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |