public class SendMessageBatchRequestEntry extends Object implements Serializable
Contains the details of a single Amazon SQS message along with a
Id .
| Constructor and Description |
|---|
SendMessageBatchRequestEntry()
Default constructor for a new SendMessageBatchRequestEntry object.
|
SendMessageBatchRequestEntry(String id,
String messageBody)
Constructs a new SendMessageBatchRequestEntry object.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 |
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 |
withMessageBody(String messageBody)
Body of the message.
|
public SendMessageBatchRequestEntry()
public SendMessageBatchRequestEntry(String id, String messageBody)
id - An identifier for the message in this batch. This is used to
communicate the result. Note that the Ids of a batch
request need to be unique within the request.messageBody - Body of the message.public String getId()
Ids of a batch
request need to be unique within the request.Ids of a batch
request need to be unique within the request.public void setId(String id)
Ids 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 Ids of a batch
request need to be unique within the request.public SendMessageBatchRequestEntry withId(String id)
Ids 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 Ids of a batch
request need to be unique within the request.public String getMessageBody()
public void setMessageBody(String messageBody)
messageBody - Body of the message.public SendMessageBatchRequestEntry withMessageBody(String messageBody)
Returns a reference to this object so that method calls can be chained together.
messageBody - Body of the message.public Integer getDelaySeconds()
public void setDelaySeconds(Integer delaySeconds)
delaySeconds - The number of seconds for which the message has to be delayed.public SendMessageBatchRequestEntry withDelaySeconds(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 String toString()
toString in class ObjectObject.toString()Copyright © 2016. All rights reserved.