com.amazonaws.services.sqs.model
Class ChangeMessageVisibilityBatchRequestEntry

java.lang.Object
  extended by com.amazonaws.services.sqs.model.ChangeMessageVisibilityBatchRequestEntry
All Implemented Interfaces:
java.io.Serializable

public class ChangeMessageVisibilityBatchRequestEntry
extends java.lang.Object
implements java.io.Serializable

Encloses a receipt handle and an entry id for each message in ChangeMessageVisibilityBatch.

IMPORTANT: All of the following parameters are list parameters that must be prefixed with ChangeMessageVisibilityBatchRequestEntry.n, where n is an integer value starting with 1. For example, a parameter list for this action might look like this:

MessageVisibilityBatchRequestEntry.1.Id=change_visibility_msg_2

MessageVisibilityBatchRequestEntry.1.ReceiptHandle=Your_Receipt_Handle

ChangeMessageVisibilityBatchRequestEntry.1.VisibilityTimeout=45

See Also:
Serialized Form

Constructor Summary
ChangeMessageVisibilityBatchRequestEntry()
          Default constructor for a new ChangeMessageVisibilityBatchRequestEntry object.
ChangeMessageVisibilityBatchRequestEntry(java.lang.String id, java.lang.String receiptHandle)
          Constructs a new ChangeMessageVisibilityBatchRequestEntry object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getId()
          An identifier for this particular receipt handle.
 java.lang.String getReceiptHandle()
          A receipt handle.
 java.lang.Integer getVisibilityTimeout()
          The new value (in seconds) for the message's visibility timeout.
 int hashCode()
           
 void setId(java.lang.String id)
          An identifier for this particular receipt handle.
 void setReceiptHandle(java.lang.String receiptHandle)
          A receipt handle.
 void setVisibilityTimeout(java.lang.Integer visibilityTimeout)
          The new value (in seconds) for the message's visibility timeout.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ChangeMessageVisibilityBatchRequestEntry withId(java.lang.String id)
          An identifier for this particular receipt handle.
 ChangeMessageVisibilityBatchRequestEntry withReceiptHandle(java.lang.String receiptHandle)
          A receipt handle.
 ChangeMessageVisibilityBatchRequestEntry withVisibilityTimeout(java.lang.Integer visibilityTimeout)
          The new value (in seconds) for the message's visibility timeout.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChangeMessageVisibilityBatchRequestEntry

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


ChangeMessageVisibilityBatchRequestEntry

public ChangeMessageVisibilityBatchRequestEntry(java.lang.String id,
                                                java.lang.String receiptHandle)
Constructs a new ChangeMessageVisibilityBatchRequestEntry 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 java.lang.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(java.lang.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 ChangeMessageVisibilityBatchRequestEntry withId(java.lang.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 java.lang.String getReceiptHandle()
A receipt handle.

Returns:
A receipt handle.

setReceiptHandle

public void setReceiptHandle(java.lang.String receiptHandle)
A receipt handle.

Parameters:
receiptHandle - A receipt handle.

withReceiptHandle

public ChangeMessageVisibilityBatchRequestEntry withReceiptHandle(java.lang.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.

getVisibilityTimeout

public java.lang.Integer getVisibilityTimeout()
The new value (in seconds) for the message's visibility timeout.

Returns:
The new value (in seconds) for the message's visibility timeout.

setVisibilityTimeout

public void setVisibilityTimeout(java.lang.Integer visibilityTimeout)
The new value (in seconds) for the message's visibility timeout.

Parameters:
visibilityTimeout - The new value (in seconds) for the message's visibility timeout.

withVisibilityTimeout

public ChangeMessageVisibilityBatchRequestEntry withVisibilityTimeout(java.lang.Integer visibilityTimeout)
The new value (in seconds) for the message's visibility timeout.

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

Parameters:
visibilityTimeout - The new value (in seconds) for the message's visibility timeout.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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