Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.sqs.model
Class ReceiveMessageRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.sqs.model.ReceiveMessageRequest
All Implemented Interfaces:
Serializable

public class ReceiveMessageRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the ReceiveMessage operation.

See Also:
AmazonSQS.receiveMessage(ReceiveMessageRequest), Serialized Form

Constructor Summary
ReceiveMessageRequest()
          Default constructor for a new ReceiveMessageRequest object.
ReceiveMessageRequest(String queueUrl)
          Constructs a new ReceiveMessageRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 List<String> getAttributeNames()
          Returns the value of the AttributeNames property for this object.
 Integer getMaxNumberOfMessages()
          Returns the value of the MaxNumberOfMessages property for this object.
 String getQueueUrl()
          Returns the value of the QueueUrl property for this object.
 Integer getVisibilityTimeout()
          Returns the value of the VisibilityTimeout property for this object.
 Integer getWaitTimeSeconds()
          Returns the value of the WaitTimeSeconds property for this object.
 int hashCode()
           
 void setAttributeNames(Collection<String> attributeNames)
          Sets the value of the AttributeNames property for this object.
 void setMaxNumberOfMessages(Integer maxNumberOfMessages)
          Sets the value of the MaxNumberOfMessages property for this object.
 void setQueueUrl(String queueUrl)
          Sets the value of the QueueUrl property for this object.
 void setVisibilityTimeout(Integer visibilityTimeout)
          Sets the value of the VisibilityTimeout property for this object.
 void setWaitTimeSeconds(Integer waitTimeSeconds)
          Sets the value of the WaitTimeSeconds property for this object.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ReceiveMessageRequest withAttributeNames(Collection<String> attributeNames)
          Sets the value of the AttributeNames property for this object.
 ReceiveMessageRequest withAttributeNames(String... attributeNames)
          Sets the value of the AttributeNames property for this object.
 ReceiveMessageRequest withMaxNumberOfMessages(Integer maxNumberOfMessages)
          Sets the value of the MaxNumberOfMessages property for this object.
 ReceiveMessageRequest withQueueUrl(String queueUrl)
          Sets the value of the QueueUrl property for this object.
 ReceiveMessageRequest withVisibilityTimeout(Integer visibilityTimeout)
          Sets the value of the VisibilityTimeout property for this object.
 ReceiveMessageRequest withWaitTimeSeconds(Integer waitTimeSeconds)
          Sets the value of the WaitTimeSeconds property for this object.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReceiveMessageRequest

public ReceiveMessageRequest()
Default constructor for a new ReceiveMessageRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


ReceiveMessageRequest

public ReceiveMessageRequest(String queueUrl)
Constructs a new ReceiveMessageRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
queueUrl -
Method Detail

getQueueUrl

public String getQueueUrl()
Returns the value of the QueueUrl property for this object.

Returns:
The value of the QueueUrl property for this object.

setQueueUrl

public void setQueueUrl(String queueUrl)
Sets the value of the QueueUrl property for this object.

Parameters:
queueUrl - The new value for the QueueUrl property for this object.

withQueueUrl

public ReceiveMessageRequest withQueueUrl(String queueUrl)
Sets the value of the QueueUrl property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
queueUrl - The new value for the QueueUrl property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getAttributeNames

public List<String> getAttributeNames()
Returns the value of the AttributeNames property for this object.

Returns:
The value of the AttributeNames property for this object.

setAttributeNames

public void setAttributeNames(Collection<String> attributeNames)
Sets the value of the AttributeNames property for this object.

Parameters:
attributeNames - The new value for the AttributeNames property for this object.

withAttributeNames

public ReceiveMessageRequest withAttributeNames(String... attributeNames)
Sets the value of the AttributeNames property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
attributeNames - The new value for the AttributeNames property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

withAttributeNames

public ReceiveMessageRequest withAttributeNames(Collection<String> attributeNames)
Sets the value of the AttributeNames property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
attributeNames - The new value for the AttributeNames property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getMaxNumberOfMessages

public Integer getMaxNumberOfMessages()
Returns the value of the MaxNumberOfMessages property for this object.

Returns:
The value of the MaxNumberOfMessages property for this object.

setMaxNumberOfMessages

public void setMaxNumberOfMessages(Integer maxNumberOfMessages)
Sets the value of the MaxNumberOfMessages property for this object.

Parameters:
maxNumberOfMessages - The new value for the MaxNumberOfMessages property for this object.

withMaxNumberOfMessages

public ReceiveMessageRequest withMaxNumberOfMessages(Integer maxNumberOfMessages)
Sets the value of the MaxNumberOfMessages property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
maxNumberOfMessages - The new value for the MaxNumberOfMessages property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getVisibilityTimeout

public Integer getVisibilityTimeout()
Returns the value of the VisibilityTimeout property for this object.

Returns:
The value of the VisibilityTimeout property for this object.

setVisibilityTimeout

public void setVisibilityTimeout(Integer visibilityTimeout)
Sets the value of the VisibilityTimeout property for this object.

Parameters:
visibilityTimeout - The new value for the VisibilityTimeout property for this object.

withVisibilityTimeout

public ReceiveMessageRequest withVisibilityTimeout(Integer visibilityTimeout)
Sets the value of the VisibilityTimeout property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
visibilityTimeout - The new value for the VisibilityTimeout property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getWaitTimeSeconds

public Integer getWaitTimeSeconds()
Returns the value of the WaitTimeSeconds property for this object.

Returns:
The value of the WaitTimeSeconds property for this object.

setWaitTimeSeconds

public void setWaitTimeSeconds(Integer waitTimeSeconds)
Sets the value of the WaitTimeSeconds property for this object.

Parameters:
waitTimeSeconds - The new value for the WaitTimeSeconds property for this object.

withWaitTimeSeconds

public ReceiveMessageRequest withWaitTimeSeconds(Integer waitTimeSeconds)
Sets the value of the WaitTimeSeconds property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
waitTimeSeconds - The new value for the WaitTimeSeconds property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.