Class SendMessageRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for SendMessageRequest object.SendMessageRequest
(String queueUrl, String messageBody) Constructs a new SendMessageRequest object. -
Method Summary
Modifier and TypeMethodDescriptionaddMessageAttributesEntry
(String key, MessageAttributeValue value) Removes all the entries added into MessageAttributes.clone()
Creates a shallow clone of this request.boolean
The number of seconds (0 to 900 - 15 minutes) to delay a specific message.Each message attribute consists of a Name, Type, and Value.The message to send.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.toString()
Returns a string representation of this object; useful for testing and debugging.withDelaySeconds
(Integer delaySeconds) The number of seconds (0 to 900 - 15 minutes) to delay a specific message.withMessageAttributes
(Map<String, MessageAttributeValue> messageAttributes) Each message attribute consists of a Name, Type, and Value.withMessageBody
(String messageBody) The message to send.withQueueUrl
(String queueUrl) The URL of the Amazon SQS queue to take action on.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
SendMessageRequest
public SendMessageRequest()Default constructor for SendMessageRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
SendMessageRequest
Constructs a new SendMessageRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
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.
-
-
Method Details
-
setQueueUrl
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
- Parameters:
queueUrl
- The URL of the Amazon SQS queue to take action on.Queue URLs are case-sensitive.
-
getQueueUrl
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
- Returns:
- The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
-
withQueueUrl
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
- Parameters:
queueUrl
- The URL of the Amazon SQS queue to take action on.Queue URLs are case-sensitive.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMessageBody
The message to send. String maximum 256 KB in size. For a list of allowed characters, see the preceding important note.
- Parameters:
messageBody
- The message to send. String maximum 256 KB in size. For a list of allowed characters, see the preceding important note.
-
getMessageBody
The message to send. String maximum 256 KB in size. For a list of allowed characters, see the preceding important note.
- Returns:
- The message to send. String maximum 256 KB in size. For a list of allowed characters, see the preceding important note.
-
withMessageBody
The message to send. String maximum 256 KB in size. For a list of allowed characters, see the preceding important note.
- Parameters:
messageBody
- The message to send. String maximum 256 KB in size. For a list of allowed characters, see the preceding important note.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDelaySeconds
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.- Parameters:
delaySeconds
- The number of seconds (0 to 900 - 15 minutes) to delay a specific message. Messages with a positiveDelaySeconds
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.
-
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.- Returns:
- 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.
-
withDelaySeconds
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.- Parameters:
delaySeconds
- The number of seconds (0 to 900 - 15 minutes) to delay a specific message. Messages with a positiveDelaySeconds
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getMessageAttributes
Each message attribute consists of a Name, Type, and Value. For more information, see Message Attribute Items.
- Returns:
- Each message attribute consists of a Name, Type, and Value. For more information, see Message Attribute Items.
-
setMessageAttributes
Each message attribute consists of a Name, Type, and Value. For more information, see Message Attribute Items.
- Parameters:
messageAttributes
- Each message attribute consists of a Name, Type, and Value. For more information, see Message Attribute Items.
-
withMessageAttributes
public SendMessageRequest withMessageAttributes(Map<String, MessageAttributeValue> messageAttributes) Each message attribute consists of a Name, Type, and Value. For more information, see Message Attribute Items.
- Parameters:
messageAttributes
- Each message attribute consists of a Name, Type, and Value. For more information, see Message Attribute Items.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addMessageAttributesEntry
-
clearMessageAttributesEntries
Removes all the entries added into MessageAttributes. <p> Returns a reference to this object so that method calls can be chained together. -
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-