public class SendMessageRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
delaySeconds
The number of seconds (0 to 900 - 15 minutes) to delay a specific
message.
|
private SdkInternalMap<java.lang.String,MessageAttributeValue> |
messageAttributes
Each message attribute consists of a Name, Type, and Value.
|
private java.lang.String |
messageBody
The message to send.
|
private java.lang.String |
queueUrl
The URL of the Amazon SQS queue to take action on.
|
NOOP
Constructor and Description |
---|
SendMessageRequest()
Default constructor for SendMessageRequest object.
|
SendMessageRequest(java.lang.String queueUrl,
java.lang.String messageBody)
Constructs a new SendMessageRequest object.
|
Modifier and Type | Method and Description |
---|---|
SendMessageRequest |
addMessageAttributesEntry(java.lang.String key,
MessageAttributeValue value) |
SendMessageRequest |
clearMessageAttributesEntries()
Removes all the entries added into MessageAttributes.
|
SendMessageRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getDelaySeconds()
The number of seconds (0 to 900 - 15 minutes) to delay a specific
message.
|
java.util.Map<java.lang.String,MessageAttributeValue> |
getMessageAttributes()
Each message attribute consists of a Name, Type, and Value.
|
java.lang.String |
getMessageBody()
The message to send.
|
java.lang.String |
getQueueUrl()
The URL of the Amazon SQS queue to take action on.
|
int |
hashCode() |
void |
setDelaySeconds(java.lang.Integer delaySeconds)
The number of seconds (0 to 900 - 15 minutes) to delay a specific
message.
|
void |
setMessageAttributes(java.util.Map<java.lang.String,MessageAttributeValue> messageAttributes)
Each message attribute consists of a Name, Type, and Value.
|
void |
setMessageBody(java.lang.String messageBody)
The message to send.
|
void |
setQueueUrl(java.lang.String queueUrl)
The URL of the Amazon SQS queue to take action on.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SendMessageRequest |
withDelaySeconds(java.lang.Integer delaySeconds)
The number of seconds (0 to 900 - 15 minutes) to delay a specific
message.
|
SendMessageRequest |
withMessageAttributes(java.util.Map<java.lang.String,MessageAttributeValue> messageAttributes)
Each message attribute consists of a Name, Type, and Value.
|
SendMessageRequest |
withMessageBody(java.lang.String messageBody)
The message to send.
|
SendMessageRequest |
withQueueUrl(java.lang.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, withSdkRequestTimeout
private java.lang.String queueUrl
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
private java.lang.String messageBody
The message to send. String maximum 256 KB in size. For a list of allowed characters, see the preceding important note.
private java.lang.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.
private SdkInternalMap<java.lang.String,MessageAttributeValue> messageAttributes
Each message attribute consists of a Name, Type, and Value. For more information, see Message Attribute Items.
public SendMessageRequest()
public SendMessageRequest(java.lang.String queueUrl, java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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 java.util.Map<java.lang.String,MessageAttributeValue> getMessageAttributes()
Each message attribute consists of a Name, Type, and Value. For more information, see Message Attribute Items.
public void setMessageAttributes(java.util.Map<java.lang.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(java.util.Map<java.lang.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(java.lang.String key, MessageAttributeValue value)
public SendMessageRequest clearMessageAttributesEntries()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SendMessageRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()