Class ChangeMessageVisibilityRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.sqs.model.ChangeMessageVisibilityRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class ChangeMessageVisibilityRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description ChangeMessageVisibilityRequest()
Default constructor for ChangeMessageVisibilityRequest object.ChangeMessageVisibilityRequest(String queueUrl, String receiptHandle, Integer visibilityTimeout)
Constructs a new ChangeMessageVisibilityRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChangeMessageVisibilityRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getQueueUrl()
The URL of the Amazon SQS queue to take action on.String
getReceiptHandle()
The receipt handle associated with the message whose visibility timeout should be changed.Integer
getVisibilityTimeout()
The new value (in seconds - from 0 to 43200 - maximum 12 hours) for the message's visibility timeout.int
hashCode()
void
setQueueUrl(String queueUrl)
The URL of the Amazon SQS queue to take action on.void
setReceiptHandle(String receiptHandle)
The receipt handle associated with the message whose visibility timeout should be changed.void
setVisibilityTimeout(Integer visibilityTimeout)
The new value (in seconds - from 0 to 43200 - maximum 12 hours) for the message's visibility timeout.String
toString()
Returns a string representation of this object; useful for testing and debugging.ChangeMessageVisibilityRequest
withQueueUrl(String queueUrl)
The URL of the Amazon SQS queue to take action on.ChangeMessageVisibilityRequest
withReceiptHandle(String receiptHandle)
The receipt handle associated with the message whose visibility timeout should be changed.ChangeMessageVisibilityRequest
withVisibilityTimeout(Integer visibilityTimeout)
The new value (in seconds - from 0 to 43200 - maximum 12 hours) for the message's visibility timeout.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Constructor Detail
-
ChangeMessageVisibilityRequest
public ChangeMessageVisibilityRequest()
Default constructor for ChangeMessageVisibilityRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
ChangeMessageVisibilityRequest
public ChangeMessageVisibilityRequest(String queueUrl, String receiptHandle, Integer visibilityTimeout)
Constructs a new ChangeMessageVisibilityRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
queueUrl
- The URL of the Amazon SQS queue to take action on.Queue URLs are case-sensitive.
receiptHandle
- The receipt handle associated with the message whose visibility timeout should be changed. This parameter is returned by the ReceiveMessage action.visibilityTimeout
- The new value (in seconds - from 0 to 43200 - maximum 12 hours) for the message's visibility timeout.
-
-
Method Detail
-
setQueueUrl
public void setQueueUrl(String queueUrl)
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
- Parameters:
queueUrl
- The URL of the Amazon SQS queue to take action on.Queue URLs are case-sensitive.
-
getQueueUrl
public String getQueueUrl()
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
- Returns:
- The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
-
withQueueUrl
public ChangeMessageVisibilityRequest withQueueUrl(String queueUrl)
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
- Parameters:
queueUrl
- The URL of the Amazon SQS queue to take action on.Queue URLs are case-sensitive.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setReceiptHandle
public void setReceiptHandle(String receiptHandle)
The receipt handle associated with the message whose visibility timeout should be changed. This parameter is returned by the ReceiveMessage action.
- Parameters:
receiptHandle
- The receipt handle associated with the message whose visibility timeout should be changed. This parameter is returned by the ReceiveMessage action.
-
getReceiptHandle
public String getReceiptHandle()
The receipt handle associated with the message whose visibility timeout should be changed. This parameter is returned by the ReceiveMessage action.
- Returns:
- The receipt handle associated with the message whose visibility timeout should be changed. This parameter is returned by the ReceiveMessage action.
-
withReceiptHandle
public ChangeMessageVisibilityRequest withReceiptHandle(String receiptHandle)
The receipt handle associated with the message whose visibility timeout should be changed. This parameter is returned by the ReceiveMessage action.
- Parameters:
receiptHandle
- The receipt handle associated with the message whose visibility timeout should be changed. This parameter is returned by the ReceiveMessage action.- 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 - from 0 to 43200 - maximum 12 hours) for the message's visibility timeout.
- Parameters:
visibilityTimeout
- The new value (in seconds - from 0 to 43200 - maximum 12 hours) for the message's visibility timeout.
-
getVisibilityTimeout
public Integer getVisibilityTimeout()
The new value (in seconds - from 0 to 43200 - maximum 12 hours) for the message's visibility timeout.
- Returns:
- The new value (in seconds - from 0 to 43200 - maximum 12 hours) for the message's visibility timeout.
-
withVisibilityTimeout
public ChangeMessageVisibilityRequest withVisibilityTimeout(Integer visibilityTimeout)
The new value (in seconds - from 0 to 43200 - maximum 12 hours) for the message's visibility timeout.
- Parameters:
visibilityTimeout
- The new value (in seconds - from 0 to 43200 - maximum 12 hours) 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 ChangeMessageVisibilityRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-