com.amazonaws.services.sqs.model
Class DeleteMessageBatchRequestEntry

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

public class DeleteMessageBatchRequestEntry
extends Object

Encloses a receipt handle and an identifier for it.


Constructor Summary
DeleteMessageBatchRequestEntry()
          Default constructor for a new DeleteMessageBatchRequestEntry object.
DeleteMessageBatchRequestEntry(String id, String receiptHandle)
          Constructs a new DeleteMessageBatchRequestEntry object.
 
Method Summary
 boolean equals(Object obj)
           
 String getId()
          An identifier for this particular receipt handle.
 String getReceiptHandle()
          A receipt handle.
 int hashCode()
           
 void setId(String id)
          An identifier for this particular receipt handle.
 void setReceiptHandle(String receiptHandle)
          A receipt handle.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DeleteMessageBatchRequestEntry withId(String id)
          An identifier for this particular receipt handle.
 DeleteMessageBatchRequestEntry withReceiptHandle(String receiptHandle)
          A receipt handle.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeleteMessageBatchRequestEntry

public DeleteMessageBatchRequestEntry()
Default constructor for a new DeleteMessageBatchRequestEntry object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


DeleteMessageBatchRequestEntry

public DeleteMessageBatchRequestEntry(String id,
                                      String receiptHandle)
Constructs a new DeleteMessageBatchRequestEntry object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
id - An identifier for this particular receipt handle. This is used to communicate the result. Note that the Ids of a batch request need to be unique within the request.
receiptHandle - A receipt handle.
Method Detail

getId

public String getId()
An identifier for this particular receipt handle. This is used to communicate the result. Note that the Ids of a batch request need to be unique within the request.

Returns:
An identifier for this particular receipt handle. This is used to communicate the result. Note that the Ids of a batch request need to be unique within the request.

setId

public void setId(String id)
An identifier for this particular receipt handle. This is used to communicate the result. Note that the Ids of a batch request need to be unique within the request.

Parameters:
id - An identifier for this particular receipt handle. This is used to communicate the result. Note that the Ids of a batch request need to be unique within the request.

withId

public DeleteMessageBatchRequestEntry withId(String id)
An identifier for this particular receipt handle. This is used to communicate the result. Note that 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 this particular receipt handle. This is used to communicate the result. Note that 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.

getReceiptHandle

public String getReceiptHandle()
A receipt handle.

Returns:
A receipt handle.

setReceiptHandle

public void setReceiptHandle(String receiptHandle)
A receipt handle.

Parameters:
receiptHandle - A receipt handle.

withReceiptHandle

public DeleteMessageBatchRequestEntry withReceiptHandle(String receiptHandle)
A receipt handle.

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

Parameters:
receiptHandle - A receipt handle.
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.