Class SendMessageBatchRequestEntry
- java.lang.Object
-
- com.amazonaws.services.sqs.model.SendMessageBatchRequestEntry
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class SendMessageBatchRequestEntry extends Object implements Serializable, Cloneable
Contains the details of a single Amazon SQS message along with a
Id
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SendMessageBatchRequestEntry()
Default constructor for SendMessageBatchRequestEntry object.SendMessageBatchRequestEntry(String id, String messageBody)
Constructs a new SendMessageBatchRequestEntry object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SendMessageBatchRequestEntry
addMessageAttributesEntry(String key, MessageAttributeValue value)
SendMessageBatchRequestEntry
clearMessageAttributesEntries()
Removes all the entries added into MessageAttributes.SendMessageBatchRequestEntry
clone()
boolean
equals(Object obj)
Integer
getDelaySeconds()
The number of seconds for which the message has to be delayed.String
getId()
An identifier for the message in this batch.Map<String,MessageAttributeValue>
getMessageAttributes()
Each message attribute consists of a Name, Type, and Value.String
getMessageBody()
Body of the message.int
hashCode()
void
setDelaySeconds(Integer delaySeconds)
The number of seconds for which the message has to be delayed.void
setId(String id)
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.String
toString()
Returns a string representation of this object; useful for testing and debugging.SendMessageBatchRequestEntry
withDelaySeconds(Integer delaySeconds)
The number of seconds for which the message has to be delayed.SendMessageBatchRequestEntry
withId(String id)
An identifier for the message in this batch.SendMessageBatchRequestEntry
withMessageAttributes(Map<String,MessageAttributeValue> messageAttributes)
Each message attribute consists of a Name, Type, and Value.SendMessageBatchRequestEntry
withMessageBody(String messageBody)
Body of the message.
-
-
-
Constructor Detail
-
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
public SendMessageBatchRequestEntry(String id, String messageBody)
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 Detail
-
setId
public void setId(String id)
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
public String 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
public SendMessageBatchRequestEntry withId(String id)
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
public void setMessageBody(String messageBody)
Body of the message.
- Parameters:
messageBody
- Body of the message.
-
getMessageBody
public String getMessageBody()
Body of the message.
- Returns:
- Body of the message.
-
withMessageBody
public SendMessageBatchRequestEntry withMessageBody(String messageBody)
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
public void setDelaySeconds(Integer delaySeconds)
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
public Integer 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
public SendMessageBatchRequestEntry withDelaySeconds(Integer delaySeconds)
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
public Map<String,MessageAttributeValue> 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
public void setMessageAttributes(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.
-
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
public SendMessageBatchRequestEntry clearMessageAttributesEntries()
Removes all the entries added into MessageAttributes. <p> Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SendMessageBatchRequestEntry clone()
-
-