com.amazonaws.services.sqs.model
Class SendMessageRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.sqs.model.SendMessageRequest

public class SendMessageRequest
extends AmazonWebServiceRequest


Constructor Summary
SendMessageRequest()
          Default constructor for a new SendMessageRequest object.
SendMessageRequest(String queueUrl, String messageBody)
          Constructs a new SendMessageRequest object and initializes the specified object members.
 
Method Summary
 String getMessageBody()
          The message to send.
 String getQueueUrl()
           
 void setMessageBody(String messageBody)
          The message to send.
 void setQueueUrl(String queueUrl)
           
 String toString()
           
 SendMessageRequest withMessageBody(String messageBody)
          The message to send.
 SendMessageRequest withQueueUrl(String queueUrl)
           Returns a reference to this object so that method calls can be chained together.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, 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 and initializes the specified object members. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
queueUrl -
messageBody - The message to send.
Method Detail

getQueueUrl

public String getQueueUrl()
Returns:

setQueueUrl

public void setQueueUrl(String queueUrl)
Parameters:
queueUrl -

withQueueUrl

public SendMessageRequest withQueueUrl(String queueUrl)

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

Parameters:
queueUrl -
Returns:
A reference to this updated object so that method calls can be chained together.

getMessageBody

public String getMessageBody()
The message to send.

Returns:
The message to send.

setMessageBody

public void setMessageBody(String messageBody)
The message to send.

Parameters:
messageBody - The message to send.

withMessageBody

public SendMessageRequest withMessageBody(String messageBody)
The message to send.

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

Parameters:
messageBody - The message to send.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Overrides:
toString in class Object


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