Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.sqs.model
Class SendMessageRequest

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

public class SendMessageRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the SendMessage operation.

See Also:
AmazonSQS.sendMessage(SendMessageRequest), Serialized Form

Constructor Summary
SendMessageRequest()
          Default constructor for a new SendMessageRequest object.
SendMessageRequest(String queueUrl, String messageBody)
          Constructs a new SendMessageRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 Integer getDelaySeconds()
          Returns the value of the DelaySeconds property for this object.
 String getMessageBody()
          Returns the value of the MessageBody property for this object.
 String getQueueUrl()
          Returns the value of the QueueUrl property for this object.
 int hashCode()
           
 void setDelaySeconds(Integer delaySeconds)
          Sets the value of the DelaySeconds property for this object.
 void setMessageBody(String messageBody)
          Sets the value of the MessageBody property for this object.
 void setQueueUrl(String queueUrl)
          Sets the value of the QueueUrl property for this object.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 SendMessageRequest withDelaySeconds(Integer delaySeconds)
          Sets the value of the DelaySeconds property for this object.
 SendMessageRequest withMessageBody(String messageBody)
          Sets the value of the MessageBody property for this object.
 SendMessageRequest withQueueUrl(String queueUrl)
          Sets the value of the QueueUrl 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

SendMessageRequest

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


SendMessageRequest

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

Parameters:
queueUrl -
messageBody -
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 SendMessageRequest 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.

getMessageBody

public String getMessageBody()
Returns the value of the MessageBody property for this object.

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

setMessageBody

public void setMessageBody(String messageBody)
Sets the value of the MessageBody property for this object.

Parameters:
messageBody - The new value for the MessageBody property for this object.

withMessageBody

public SendMessageRequest withMessageBody(String messageBody)
Sets the value of the MessageBody property for this object.

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

Parameters:
messageBody - The new value for the MessageBody property for this object.

getDelaySeconds

public Integer getDelaySeconds()
Returns the value of the DelaySeconds property for this object.

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

setDelaySeconds

public void setDelaySeconds(Integer delaySeconds)
Sets the value of the DelaySeconds property for this object.

Parameters:
delaySeconds - The new value for the DelaySeconds property for this object.

withDelaySeconds

public SendMessageRequest withDelaySeconds(Integer delaySeconds)
Sets the value of the DelaySeconds property for this object.

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

Parameters:
delaySeconds - The new value for the DelaySeconds property for this object.

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.