com.amazonaws.services.sqs.model
Class SendMessageBatchRequestEntry

java.lang.Object
  extended by com.amazonaws.services.sqs.model.SendMessageBatchRequestEntry

public class SendMessageBatchRequestEntry
extends Object

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
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SendMessageBatchRequestEntry

public SendMessageBatchRequestEntry()
Default constructor for a new SendMessageBatchRequestEntry object. Callers should use the setter or fluent setter (with...) methods to initialize this 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 the the Ids of a batch request need to be unique within the request.
messageBody - Body of the message.
Method Detail

getId

public String getId()
An identifier for the message in this batch. This is used to communicate the result. Note that the the Ids 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 the Ids of a batch request need to be unique within the request.

setId

public void setId(String id)
An identifier for the message in this batch. This is used to communicate the result. Note that the the Ids 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 the the Ids 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 the 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.

Parameters:
id - An identifier for the message in this batch. This is used to communicate the result. Note that the the Ids of a batch request need to be unique within the request.
Returns:
A reference to this updated object so that method calls can be chained together.

getMessageBody

public String getMessageBody()
Body of the message.

Returns:
Body of the message.

setMessageBody

public void setMessageBody(String messageBody)
Body of the message.

Parameters:
messageBody - Body of the message.

withMessageBody

public SendMessageBatchRequestEntry withMessageBody(String messageBody)
Body of the message.

Returns a reference to this object so that method calls can be chained together.

Parameters:
messageBody - Body of the message.
Returns:
A reference to this updated object so that method calls can be chained together.

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.

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.

withDelaySeconds

public SendMessageBatchRequestEntry withDelaySeconds(Integer delaySeconds)
The number of seconds for which the message has to be delayed.

Returns a reference to this object so that method calls can be chained together.

Parameters:
delaySeconds - The number of seconds for which the message has to be delayed.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.