|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.sqs.model.SendMessageBatchRequestEntry
public class SendMessageBatchRequestEntry
Contains the details of a single Amazon SQS message along with a
Id
.
Constructor Summary | |
---|---|
SendMessageBatchRequestEntry()
Default constructor for a new SendMessageBatchRequestEntry object. |
|
SendMessageBatchRequestEntry(java.lang.String id,
java.lang.String messageBody)
Constructs a new SendMessageBatchRequestEntry object. |
Method Summary | |
---|---|
SendMessageBatchRequestEntry |
addMessageAttributesEntry(java.lang.String key,
MessageAttributeValue value)
Each message attribute consists of a Name, Type, and Value. |
SendMessageBatchRequestEntry |
clearMessageAttributesEntries()
Removes all the entries added into MessageAttributes. |
boolean |
equals(java.lang.Object obj)
|
java.lang.Integer |
getDelaySeconds()
The number of seconds for which the message has to be delayed. |
java.lang.String |
getId()
An identifier for the message in this batch. |
java.util.Map<java.lang.String,MessageAttributeValue> |
getMessageAttributes()
Each message attribute consists of a Name, Type, and Value. |
java.lang.String |
getMessageBody()
Body of the message. |
int |
hashCode()
|
void |
setDelaySeconds(java.lang.Integer delaySeconds)
The number of seconds for which the message has to be delayed. |
void |
setId(java.lang.String id)
An identifier for the message in this batch. |
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)
Body of the message. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
SendMessageBatchRequestEntry |
withDelaySeconds(java.lang.Integer delaySeconds)
The number of seconds for which the message has to be delayed. |
SendMessageBatchRequestEntry |
withId(java.lang.String id)
An identifier for the message in this batch. |
SendMessageBatchRequestEntry |
withMessageAttributes(java.util.Map<java.lang.String,MessageAttributeValue> messageAttributes)
Each message attribute consists of a Name, Type, and Value. |
SendMessageBatchRequestEntry |
withMessageBody(java.lang.String messageBody)
Body of the message. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SendMessageBatchRequestEntry()
public SendMessageBatchRequestEntry(java.lang.String id, java.lang.String messageBody)
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.messageBody
- Body of the message.Method Detail |
---|
public java.lang.String getId()
Id
s of a batch
request need to be unique within the request.
Id
s of a batch
request need to be unique within the request.public void setId(java.lang.String id)
Id
s of a batch
request need to be unique within the request.
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.public SendMessageBatchRequestEntry withId(java.lang.String id)
Id
s of a batch
request need to be unique within the request.
Returns a reference to this object so that method calls can be chained together.
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.
public java.lang.String getMessageBody()
public void setMessageBody(java.lang.String messageBody)
messageBody
- Body of the message.public SendMessageBatchRequestEntry withMessageBody(java.lang.String messageBody)
Returns a reference to this object so that method calls can be chained together.
messageBody
- Body of the message.
public java.lang.Integer getDelaySeconds()
public void setDelaySeconds(java.lang.Integer delaySeconds)
delaySeconds
- The number of seconds for which the message has to be delayed.public SendMessageBatchRequestEntry withDelaySeconds(java.lang.Integer delaySeconds)
Returns a reference to this object so that method calls can be chained together.
delaySeconds
- The number of seconds for which the message has to be delayed.
public java.util.Map<java.lang.String,MessageAttributeValue> getMessageAttributes()
public void setMessageAttributes(java.util.Map<java.lang.String,MessageAttributeValue> messageAttributes)
messageAttributes
- Each message attribute consists of a Name, Type, and Value. For more
information, see Message
Attribute Items.public SendMessageBatchRequestEntry withMessageAttributes(java.util.Map<java.lang.String,MessageAttributeValue> messageAttributes)
Returns a reference to this object so that method calls can be chained together.
messageAttributes
- Each message attribute consists of a Name, Type, and Value. For more
information, see Message
Attribute Items.
public SendMessageBatchRequestEntry addMessageAttributesEntry(java.lang.String key, MessageAttributeValue value)
The method adds a new key-value pair into MessageAttributes parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into MessageAttributes.value
- The corresponding value of the entry to be added into MessageAttributes.public SendMessageBatchRequestEntry clearMessageAttributesEntries()
Returns a reference to this object so that method calls can be chained together.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |