|
|||||||
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(String queueName)
Constructs a new CreateQueueRequest object. |
|
CreateQueueRequest(String queueName,
Integer defaultVisibilityTimeout)
Constructs a new CreateQueueRequest object. |
Method Summary | |
---|---|
Integer |
getDefaultVisibilityTimeout()
The visibility timeout (in seconds) to use for the created queue. |
String |
getQueueName()
The name to use for the created queue. |
void |
setDefaultVisibilityTimeout(Integer defaultVisibilityTimeout)
The visibility timeout (in seconds) to use for the created queue. |
void |
setQueueName(String queueName)
The name to use for the created queue. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
CreateQueueRequest |
withDefaultVisibilityTimeout(Integer defaultVisibilityTimeout)
The visibility timeout (in seconds) to use for the created queue. |
CreateQueueRequest |
withQueueName(String queueName)
The name to use for the created queue. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CreateQueueRequest()
public CreateQueueRequest(String queueName)
queueName
- The name to use for the created queue.public CreateQueueRequest(String queueName, Integer defaultVisibilityTimeout)
queueName
- The name to use for the created queue.defaultVisibilityTimeout
- The visibility timeout (in seconds) to
use for the created queue.Method Detail |
---|
public String getQueueName()
public void setQueueName(String queueName)
queueName
- The name to use for the created queue.public CreateQueueRequest withQueueName(String queueName)
Returns a reference to this object so that method calls can be chained together.
queueName
- The name to use for the created queue.
public Integer getDefaultVisibilityTimeout()
public void setDefaultVisibilityTimeout(Integer defaultVisibilityTimeout)
defaultVisibilityTimeout
- The visibility timeout (in seconds) to use for the created queue.public CreateQueueRequest withDefaultVisibilityTimeout(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 String toString()
toString
in class Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |