|
|||||||
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.SendMessageRequest
public class SendMessageRequest
Container for the parameters to the SendMessage operation
.
The SendMessage
action delivers a message to the specified queue.
AmazonSQS.sendMessage(SendMessageRequest)
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()
The number of seconds the message has to be delayed. |
String |
getMessageBody()
The message to send. |
String |
getQueueUrl()
The URL of the SQS queue to take action on. |
int |
hashCode()
|
void |
setDelaySeconds(Integer delaySeconds)
The number of seconds the message has to be delayed. |
void |
setMessageBody(String messageBody)
The message to send. |
void |
setQueueUrl(String queueUrl)
The URL of the SQS queue to take action on. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
SendMessageRequest |
withDelaySeconds(Integer delaySeconds)
The number of seconds the message has to be delayed. |
SendMessageRequest |
withMessageBody(String messageBody)
The message to send. |
SendMessageRequest |
withQueueUrl(String queueUrl)
The URL of the SQS queue to take action on. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SendMessageRequest()
public SendMessageRequest(String queueUrl, String messageBody)
queueUrl
- The URL of the SQS queue to take action on.messageBody
- The message to send.Method Detail |
---|
public String getQueueUrl()
public void setQueueUrl(String queueUrl)
queueUrl
- The URL of the SQS queue to take action on.public SendMessageRequest withQueueUrl(String queueUrl)
Returns a reference to this object so that method calls can be chained together.
queueUrl
- The URL of the SQS queue to take action on.
public String getMessageBody()
public void setMessageBody(String messageBody)
messageBody
- The message to send.public SendMessageRequest withMessageBody(String messageBody)
Returns a reference to this object so that method calls can be chained together.
messageBody
- The message to send.
public Integer getDelaySeconds()
public void setDelaySeconds(Integer delaySeconds)
delaySeconds
- The number of seconds the message has to be delayed.public SendMessageRequest withDelaySeconds(Integer delaySeconds)
Returns a reference to this object so that method calls can be chained together.
delaySeconds
- The number of seconds the message has to be delayed.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |