|
|||||||
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 SQS message along with a
Id
.
Constructor Summary | |
---|---|
SendMessageBatchRequestEntry()
Default constructor for a new SendMessageBatchRequestEntry object. |
|
SendMessageBatchRequestEntry(String id,
String messageBody)
Constructs a new SendMessageBatchRequestEntry object. |
Method Summary | |
---|---|
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. |
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 the Id
s of a batch
request need to be unique within the request.messageBody
- Body of the message.Method Detail |
---|
public 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(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 the Id
s of a batch
request need to be unique within the request.public SendMessageBatchRequestEntry withId(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 the Id
s 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 Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |