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() |
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.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, 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.
Queue URLs are case-sensitive.
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.
Queue URLs are case-sensitive.
queueUrl - The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
public String getQueueUrl()
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
Queue URLs are case-sensitive.
public SendMessageRequest withQueueUrl(String queueUrl)
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
queueUrl - The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
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()
clone in class AmazonWebServiceRequestCopyright © 2016. All rights reserved.