Class ChangeMessageVisibilityBatchRequestEntry
- java.lang.Object
-
- com.amazonaws.services.sqs.model.ChangeMessageVisibilityBatchRequestEntry
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ChangeMessageVisibilityBatchRequestEntry extends Object implements Serializable, Cloneable
Encloses a receipt handle and an entry id for each message in ChangeMessageVisibilityBatch.
All of the following parameters are list parameters that must be prefixed with
ChangeMessageVisibilityBatchRequestEntry.n
, wheren
is an integer value starting with 1. For example, a parameter list for this action might look like this:Your_Receipt_Handle]]>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChangeMessageVisibilityBatchRequestEntry()
Default constructor for ChangeMessageVisibilityBatchRequestEntry object.ChangeMessageVisibilityBatchRequestEntry(String id, String receiptHandle)
Constructs a new ChangeMessageVisibilityBatchRequestEntry object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChangeMessageVisibilityBatchRequestEntry
clone()
boolean
equals(Object obj)
String
getId()
An identifier for this particular receipt handle.String
getReceiptHandle()
A receipt handle.Integer
getVisibilityTimeout()
The new value (in seconds) for the message's visibility timeout.int
hashCode()
void
setId(String id)
An identifier for this particular receipt handle.void
setReceiptHandle(String receiptHandle)
A receipt handle.void
setVisibilityTimeout(Integer visibilityTimeout)
The new value (in seconds) for the message's visibility timeout.String
toString()
Returns a string representation of this object; useful for testing and debugging.ChangeMessageVisibilityBatchRequestEntry
withId(String id)
An identifier for this particular receipt handle.ChangeMessageVisibilityBatchRequestEntry
withReceiptHandle(String receiptHandle)
A receipt handle.ChangeMessageVisibilityBatchRequestEntry
withVisibilityTimeout(Integer visibilityTimeout)
The new value (in seconds) for the message's visibility timeout.
-
-
-
Constructor Detail
-
ChangeMessageVisibilityBatchRequestEntry
public ChangeMessageVisibilityBatchRequestEntry()
Default constructor for ChangeMessageVisibilityBatchRequestEntry object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
ChangeMessageVisibilityBatchRequestEntry
public ChangeMessageVisibilityBatchRequestEntry(String id, 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 theId
s of a batch request need to be unique within the request.receiptHandle
- A receipt handle.
-
-
Method Detail
-
setId
public void setId(String id)
An identifier for this particular receipt handle. This is used to communicate the result. Note that the
Id
s 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 theId
s of a batch request need to be unique within the request.
-
getId
public String getId()
An identifier for this particular receipt handle. This is used to communicate the result. Note that the
Id
s 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
Id
s of a batch request need to be unique within the request.
-
withId
public ChangeMessageVisibilityBatchRequestEntry withId(String id)
An identifier for this particular receipt handle. This is used to communicate the result. Note that the
Id
s 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 theId
s of a batch request need to be unique within the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setReceiptHandle
public void setReceiptHandle(String receiptHandle)
A receipt handle.
- Parameters:
receiptHandle
- A receipt handle.
-
getReceiptHandle
public String getReceiptHandle()
A receipt handle.
- Returns:
- A receipt handle.
-
withReceiptHandle
public ChangeMessageVisibilityBatchRequestEntry withReceiptHandle(String receiptHandle)
A receipt handle.
- Parameters:
receiptHandle
- A receipt handle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVisibilityTimeout
public void setVisibilityTimeout(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.
-
getVisibilityTimeout
public 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.
-
withVisibilityTimeout
public ChangeMessageVisibilityBatchRequestEntry withVisibilityTimeout(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.- Returns:
- Returns a reference to this 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ChangeMessageVisibilityBatchRequestEntry clone()
-
-