public class ChangeMessageVisibilityRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
queueUrl
The URL of the Amazon SQS queue to take action on.
|
private java.lang.String |
receiptHandle
The receipt handle associated with the message whose visibility timeout
should be changed.
|
private java.lang.Integer |
visibilityTimeout
The new value (in seconds - from 0 to 43200 - maximum 12 hours) for the
message's visibility timeout.
|
NOOP
Constructor and Description |
---|
ChangeMessageVisibilityRequest()
Default constructor for ChangeMessageVisibilityRequest object.
|
ChangeMessageVisibilityRequest(java.lang.String queueUrl,
java.lang.String receiptHandle,
java.lang.Integer visibilityTimeout)
Constructs a new ChangeMessageVisibilityRequest object.
|
Modifier and Type | Method and Description |
---|---|
ChangeMessageVisibilityRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getQueueUrl()
The URL of the Amazon SQS queue to take action on.
|
java.lang.String |
getReceiptHandle()
The receipt handle associated with the message whose visibility timeout
should be changed.
|
java.lang.Integer |
getVisibilityTimeout()
The new value (in seconds - from 0 to 43200 - maximum 12 hours) for the
message's visibility timeout.
|
int |
hashCode() |
void |
setQueueUrl(java.lang.String queueUrl)
The URL of the Amazon SQS queue to take action on.
|
void |
setReceiptHandle(java.lang.String receiptHandle)
The receipt handle associated with the message whose visibility timeout
should be changed.
|
void |
setVisibilityTimeout(java.lang.Integer visibilityTimeout)
The new value (in seconds - from 0 to 43200 - maximum 12 hours) for the
message's visibility timeout.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ChangeMessageVisibilityRequest |
withQueueUrl(java.lang.String queueUrl)
The URL of the Amazon SQS queue to take action on.
|
ChangeMessageVisibilityRequest |
withReceiptHandle(java.lang.String receiptHandle)
The receipt handle associated with the message whose visibility timeout
should be changed.
|
ChangeMessageVisibilityRequest |
withVisibilityTimeout(java.lang.Integer visibilityTimeout)
The new value (in seconds - from 0 to 43200 - maximum 12 hours) for the
message's visibility timeout.
|
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
private java.lang.String queueUrl
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
private java.lang.String receiptHandle
The receipt handle associated with the message whose visibility timeout should be changed. This parameter is returned by the ReceiveMessage action.
private java.lang.Integer visibilityTimeout
The new value (in seconds - from 0 to 43200 - maximum 12 hours) for the message's visibility timeout.
public ChangeMessageVisibilityRequest()
public ChangeMessageVisibilityRequest(java.lang.String queueUrl, java.lang.String receiptHandle, java.lang.Integer visibilityTimeout)
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.public void setQueueUrl(java.lang.String queueUrl)
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
queueUrl
- The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
public java.lang.String getQueueUrl()
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
Queue URLs are case-sensitive.
public ChangeMessageVisibilityRequest withQueueUrl(java.lang.String queueUrl)
The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
queueUrl
- The URL of the Amazon SQS queue to take action on.
Queue URLs are case-sensitive.
public void setReceiptHandle(java.lang.String receiptHandle)
The receipt handle associated with the message whose visibility timeout should be changed. This parameter is returned by the ReceiveMessage action.
receiptHandle
- The receipt handle associated with the message whose visibility
timeout should be changed. This parameter is returned by the
ReceiveMessage action.public java.lang.String getReceiptHandle()
The receipt handle associated with the message whose visibility timeout should be changed. This parameter is returned by the ReceiveMessage action.
public ChangeMessageVisibilityRequest withReceiptHandle(java.lang.String receiptHandle)
The receipt handle associated with the message whose visibility timeout should be changed. This parameter is returned by the ReceiveMessage action.
receiptHandle
- The receipt handle associated with the message whose visibility
timeout should be changed. This parameter is returned by the
ReceiveMessage action.public void setVisibilityTimeout(java.lang.Integer visibilityTimeout)
The new value (in seconds - from 0 to 43200 - maximum 12 hours) for the message's visibility timeout.
visibilityTimeout
- The new value (in seconds - from 0 to 43200 - maximum 12 hours)
for the message's visibility timeout.public java.lang.Integer getVisibilityTimeout()
The new value (in seconds - from 0 to 43200 - maximum 12 hours) for the message's visibility timeout.
public ChangeMessageVisibilityRequest withVisibilityTimeout(java.lang.Integer visibilityTimeout)
The new value (in seconds - from 0 to 43200 - maximum 12 hours) for the message's visibility timeout.
visibilityTimeout
- The new value (in seconds - from 0 to 43200 - maximum 12 hours)
for the message's visibility timeout.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ChangeMessageVisibilityRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()