public class SendMessageRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
SendMessageRequest()
Default constructor for SendMessageRequest object.
|
SendMessageRequest(String queueUrl,
String messageBody)
Constructs a new SendMessageRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
SendMessageRequest |
addMessageAttributesEntry(String key,
MessageAttributeValue value) |
SendMessageRequest |
clearMessageAttributesEntries()
Removes all the entries added into MessageAttributes.
|
SendMessageRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
Integer |
getDelaySeconds()
The number of seconds (0 to 900 - 15 minutes) to delay a specific
message.
|
Map<String,MessageAttributeValue> |
getMessageAttributes()
Each message attribute consists of a Name, Type, and Value.
|
String |
getMessageBody()
The message to send.
|
String |
getQueueUrl()
The URL of the Amazon SQS queue to take action on.
|
int |
hashCode() |
void |
setDelaySeconds(Integer delaySeconds)
The number of seconds (0 to 900 - 15 minutes) to delay a specific
message.
|
void |
setMessageAttributes(Map<String,MessageAttributeValue> messageAttributes)
Each message attribute consists of a Name, Type, and Value.
|
void |
setMessageBody(String messageBody)
The message to send.
|
void |
setQueueUrl(String queueUrl)
The URL of the Amazon 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 (0 to 900 - 15 minutes) to delay a specific
message.
|
SendMessageRequest |
withMessageAttributes(Map<String,MessageAttributeValue> messageAttributes)
Each message attribute consists of a Name, Type, and Value.
|
SendMessageRequest |
withMessageBody(String messageBody)
The message to send.
|
SendMessageRequest |
withQueueUrl(String queueUrl)
The URL of the Amazon SQS queue to take action on.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic SendMessageRequest()
public SendMessageRequest(String queueUrl, String messageBody)
queueUrl - The URL of the Amazon SQS queue to take action on.messageBody - The message to send. String maximum 256 KB in size. For a list of
allowed characters, see the preceding important note.public void setQueueUrl(String queueUrl)
The URL of the Amazon SQS queue to take action on.
queueUrl - The URL of the Amazon SQS queue to take action on.public String getQueueUrl()
The URL of the Amazon SQS queue to take action on.
public SendMessageRequest withQueueUrl(String queueUrl)
The URL of the Amazon SQS queue to take action on.
queueUrl - The URL of the Amazon SQS queue to take action on.public void setMessageBody(String messageBody)
The message to send. String maximum 256 KB in size. For a list of allowed characters, see the preceding important note.
messageBody - The message to send. String maximum 256 KB in size. For a list of
allowed characters, see the preceding important note.public String getMessageBody()
The message to send. String maximum 256 KB in size. For a list of allowed characters, see the preceding important note.
public SendMessageRequest withMessageBody(String messageBody)
The message to send. String maximum 256 KB in size. For a list of allowed characters, see the preceding important note.
messageBody - The message to send. String maximum 256 KB in size. For a list of
allowed characters, see the preceding important note.public void setDelaySeconds(Integer delaySeconds)
The number of seconds (0 to 900 - 15 minutes) to delay a specific
message. Messages with a positive DelaySeconds value become
available for processing after the delay time is finished. If you don't
specify a value, the default value for the queue applies.
delaySeconds - The number of seconds (0 to 900 - 15 minutes) to delay a specific
message. Messages with a positive DelaySeconds value
become available for processing after the delay time is finished.
If you don't specify a value, the default value for the queue
applies.public Integer getDelaySeconds()
The number of seconds (0 to 900 - 15 minutes) to delay a specific
message. Messages with a positive DelaySeconds value become
available for processing after the delay time is finished. If you don't
specify a value, the default value for the queue applies.
DelaySeconds value
become available for processing after the delay time is finished.
If you don't specify a value, the default value for the queue
applies.public SendMessageRequest withDelaySeconds(Integer delaySeconds)
The number of seconds (0 to 900 - 15 minutes) to delay a specific
message. Messages with a positive DelaySeconds value become
available for processing after the delay time is finished. If you don't
specify a value, the default value for the queue applies.
delaySeconds - The number of seconds (0 to 900 - 15 minutes) to delay a specific
message. Messages with a positive DelaySeconds value
become available for processing after the delay time is finished.
If you don't specify a value, the default value for the queue
applies.public Map<String,MessageAttributeValue> getMessageAttributes()
Each message attribute consists of a Name, Type, and Value. For more information, see Message Attribute Items.
public void setMessageAttributes(Map<String,MessageAttributeValue> messageAttributes)
Each message attribute consists of a Name, Type, and Value. For more information, see Message Attribute Items.
messageAttributes - Each message attribute consists of a Name, Type, and Value. For
more information, see Message Attribute Items.public SendMessageRequest withMessageAttributes(Map<String,MessageAttributeValue> messageAttributes)
Each message attribute consists of a Name, Type, and Value. For more information, see Message Attribute Items.
messageAttributes - Each message attribute consists of a Name, Type, and Value. For
more information, see Message Attribute Items.public SendMessageRequest addMessageAttributesEntry(String key, MessageAttributeValue value)
public SendMessageRequest clearMessageAttributesEntries()
public String toString()
toString in class ObjectObject.toString()public SendMessageRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.