Class SendMessageBatchRequestEntry
- All Implemented Interfaces:
Serializable
,Cloneable
Contains the details of a single Amazon SQS message along with a
Id
.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for SendMessageBatchRequestEntry object.SendMessageBatchRequestEntry
(String id, String messageBody) Constructs a new SendMessageBatchRequestEntry object. -
Method Summary
Modifier and TypeMethodDescriptionaddMessageAttributesEntry
(String key, MessageAttributeValue value) Removes all the entries added into MessageAttributes.clone()
boolean
The number of seconds for which the message has to be delayed.getId()
An identifier for the message in this batch.Each message attribute consists of a Name, Type, and Value.Body of the message.int
hashCode()
void
setDelaySeconds
(Integer delaySeconds) The number of seconds for which the message has to be delayed.void
An identifier for the message in this batch.void
setMessageAttributes
(Map<String, MessageAttributeValue> messageAttributes) Each message attribute consists of a Name, Type, and Value.void
setMessageBody
(String messageBody) Body of the message.toString()
Returns a string representation of this object; useful for testing and debugging.withDelaySeconds
(Integer delaySeconds) The number of seconds for which the message has to be delayed.An identifier for the message in this batch.withMessageAttributes
(Map<String, MessageAttributeValue> messageAttributes) Each message attribute consists of a Name, Type, and Value.withMessageBody
(String messageBody) Body of the message.
-
Constructor Details
-
SendMessageBatchRequestEntry
public SendMessageBatchRequestEntry()Default constructor for SendMessageBatchRequestEntry object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
SendMessageBatchRequestEntry
Constructs a new SendMessageBatchRequestEntry object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
id
- An identifier for the message in this batch. This is used to communicate the result. Note that theId
s of a batch request need to be unique within the request.messageBody
- Body of the message.
-
-
Method Details
-
setId
An identifier for the message in this batch. This is used to communicate the result. Note that the
Id
s of a batch request need to be unique within the request.- Parameters:
id
- An identifier for the message in this batch. This is used to communicate the result. Note that theId
s of a batch request need to be unique within the request.
-
getId
An identifier for the message in this batch. This is used to communicate the result. Note that the
Id
s of a batch request need to be unique within the request.- Returns:
- An identifier for the message in this batch. This is used to
communicate the result. Note that the
Id
s of a batch request need to be unique within the request.
-
withId
An identifier for the message in this batch. This is used to communicate the result. Note that the
Id
s of a batch request need to be unique within the request.- Parameters:
id
- An identifier for the message in this batch. This is used to communicate the result. Note that theId
s of a batch request need to be unique within the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMessageBody
Body of the message.
- Parameters:
messageBody
- Body of the message.
-
getMessageBody
Body of the message.
- Returns:
- Body of the message.
-
withMessageBody
Body of the message.
- Parameters:
messageBody
- Body of the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDelaySeconds
The number of seconds for which the message has to be delayed.
- Parameters:
delaySeconds
- The number of seconds for which the message has to be delayed.
-
getDelaySeconds
The number of seconds for which the message has to be delayed.
- Returns:
- The number of seconds for which the message has to be delayed.
-
withDelaySeconds
The number of seconds for which the message has to be delayed.
- Parameters:
delaySeconds
- The number of seconds for which the message has to be delayed.- 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 SendMessageBatchRequestEntry 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
public SendMessageBatchRequestEntry addMessageAttributesEntry(String key, MessageAttributeValue value) -
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
-