public class SendMessageRequest extends AmazonWebServiceRequest implements Serializable
SendMessage operation
.
The SendMessage
action delivers a message to the specified queue.
Constructor and Description |
---|
SendMessageRequest()
Default constructor for a new SendMessageRequest object.
|
SendMessageRequest(String queueUrl,
String messageBody)
Constructs a new SendMessageRequest object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public SendMessageRequest()
public SendMessageRequest(String queueUrl, String messageBody)
queueUrl
- The URL of the SQS queue to take action on.messageBody
- The message to send.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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.