|
|||||||
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. If you provide the name of an existing queue, a new queue
isn't created and an error isn't returned. Instead, the request
succeeds and the queue URL for the existing queue is returned.
IMPORTANT:If you provide a value for DefaultVisibilityTimeout that is different from the value for the existing queue, you receive an error.
AmazonSQS.createQueue(CreateQueueRequest)
Constructor Summary | |
---|---|
CreateQueueRequest()
Default constructor for a new CreateQueueRequest object. |
|
CreateQueueRequest(java.lang.String queueName)
Constructs a new CreateQueueRequest object. |
Method Summary | |
---|---|
java.lang.Integer |
getDefaultVisibilityTimeout()
The visibility timeout (in seconds) to use for the created queue. |
java.lang.String |
getQueueName()
The name for the queue to be created. |
void |
setDefaultVisibilityTimeout(java.lang.Integer defaultVisibilityTimeout)
The visibility timeout (in seconds) to use for the created queue. |
void |
setQueueName(java.lang.String queueName)
The name for the queue to be created. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
CreateQueueRequest |
withDefaultVisibilityTimeout(java.lang.Integer defaultVisibilityTimeout)
The visibility timeout (in seconds) to use for the created queue. |
CreateQueueRequest |
withQueueName(java.lang.String queueName)
The name for the queue to be created. |
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 |
---|
public CreateQueueRequest()
public CreateQueueRequest(java.lang.String queueName)
queueName
- The name for the queue to be created.Method Detail |
---|
public java.lang.String getQueueName()
public void setQueueName(java.lang.String queueName)
queueName
- The name for the queue to be created.public CreateQueueRequest withQueueName(java.lang.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 java.lang.Integer getDefaultVisibilityTimeout()
public void setDefaultVisibilityTimeout(java.lang.Integer defaultVisibilityTimeout)
defaultVisibilityTimeout
- The visibility timeout (in seconds) to use for the created queue.public CreateQueueRequest withDefaultVisibilityTimeout(java.lang.Integer defaultVisibilityTimeout)
Returns a reference to this object so that method calls can be chained together.
defaultVisibilityTimeout
- The visibility timeout (in seconds) to use for the created queue.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |