Class SetTaskStatusRequest
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
Contains the parameters for SetTaskStatus.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a shallow clone of this request.booleanIf an error occurred during the task, this value specifies the error code.If an error occurred during the task, this value specifies a text description of the error.If an error occurred during the task, this value specifies the stack trace associated with the error.The ID of the task assigned to the task runner.IfFINISHED, the task successfully completed.inthashCode()voidsetErrorId(String errorId) If an error occurred during the task, this value specifies the error code.voidsetErrorMessage(String errorMessage) If an error occurred during the task, this value specifies a text description of the error.voidsetErrorStackTrace(String errorStackTrace) If an error occurred during the task, this value specifies the stack trace associated with the error.voidThe ID of the task assigned to the task runner.voidsetTaskStatus(TaskStatus taskStatus) IfFINISHED, the task successfully completed.voidsetTaskStatus(String taskStatus) IfFINISHED, the task successfully completed.toString()Returns a string representation of this object; useful for testing and debugging.withErrorId(String errorId) If an error occurred during the task, this value specifies the error code.withErrorMessage(String errorMessage) If an error occurred during the task, this value specifies a text description of the error.withErrorStackTrace(String errorStackTrace) If an error occurred during the task, this value specifies the stack trace associated with the error.withTaskId(String taskId) The ID of the task assigned to the task runner.withTaskStatus(TaskStatus taskStatus) IfFINISHED, the task successfully completed.withTaskStatus(String taskStatus) IfFINISHED, the task successfully completed.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 Details
-
SetTaskStatusRequest
public SetTaskStatusRequest()
-
-
Method Details
-
setTaskId
The ID of the task assigned to the task runner. This value is provided in the response for PollForTask.
- Parameters:
taskId- The ID of the task assigned to the task runner. This value is provided in the response for PollForTask.
-
getTaskId
The ID of the task assigned to the task runner. This value is provided in the response for PollForTask.
- Returns:
- The ID of the task assigned to the task runner. This value is provided in the response for PollForTask.
-
withTaskId
The ID of the task assigned to the task runner. This value is provided in the response for PollForTask.
- Parameters:
taskId- The ID of the task assigned to the task runner. This value is provided in the response for PollForTask.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTaskStatus
If
FINISHED, the task successfully completed. IfFAILED, the task ended unsuccessfully. Preconditions use false.- Parameters:
taskStatus- IfFINISHED, the task successfully completed. IfFAILED, the task ended unsuccessfully. Preconditions use false.- See Also:
-
getTaskStatus
If
FINISHED, the task successfully completed. IfFAILED, the task ended unsuccessfully. Preconditions use false.- Returns:
- If
FINISHED, the task successfully completed. IfFAILED, the task ended unsuccessfully. Preconditions use false. - See Also:
-
withTaskStatus
If
FINISHED, the task successfully completed. IfFAILED, the task ended unsuccessfully. Preconditions use false.- Parameters:
taskStatus- IfFINISHED, the task successfully completed. IfFAILED, the task ended unsuccessfully. Preconditions use false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setTaskStatus
If
FINISHED, the task successfully completed. IfFAILED, the task ended unsuccessfully. Preconditions use false.- Parameters:
taskStatus- IfFINISHED, the task successfully completed. IfFAILED, the task ended unsuccessfully. Preconditions use false.- See Also:
-
withTaskStatus
If
FINISHED, the task successfully completed. IfFAILED, the task ended unsuccessfully. Preconditions use false.- Parameters:
taskStatus- IfFINISHED, the task successfully completed. IfFAILED, the task ended unsuccessfully. Preconditions use false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setErrorId
If an error occurred during the task, this value specifies the error code. This value is set on the physical attempt object. It is used to display error information to the user. It should not start with string "Service_" which is reserved by the system.
- Parameters:
errorId- If an error occurred during the task, this value specifies the error code. This value is set on the physical attempt object. It is used to display error information to the user. It should not start with string "Service_" which is reserved by the system.
-
getErrorId
If an error occurred during the task, this value specifies the error code. This value is set on the physical attempt object. It is used to display error information to the user. It should not start with string "Service_" which is reserved by the system.
- Returns:
- If an error occurred during the task, this value specifies the error code. This value is set on the physical attempt object. It is used to display error information to the user. It should not start with string "Service_" which is reserved by the system.
-
withErrorId
If an error occurred during the task, this value specifies the error code. This value is set on the physical attempt object. It is used to display error information to the user. It should not start with string "Service_" which is reserved by the system.
- Parameters:
errorId- If an error occurred during the task, this value specifies the error code. This value is set on the physical attempt object. It is used to display error information to the user. It should not start with string "Service_" which is reserved by the system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setErrorMessage
If an error occurred during the task, this value specifies a text description of the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.
- Parameters:
errorMessage- If an error occurred during the task, this value specifies a text description of the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.
-
getErrorMessage
If an error occurred during the task, this value specifies a text description of the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.
- Returns:
- If an error occurred during the task, this value specifies a text description of the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.
-
withErrorMessage
If an error occurred during the task, this value specifies a text description of the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.
- Parameters:
errorMessage- If an error occurred during the task, this value specifies a text description of the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setErrorStackTrace
If an error occurred during the task, this value specifies the stack trace associated with the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.
- Parameters:
errorStackTrace- If an error occurred during the task, this value specifies the stack trace associated with the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.
-
getErrorStackTrace
If an error occurred during the task, this value specifies the stack trace associated with the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.
- Returns:
- If an error occurred during the task, this value specifies the stack trace associated with the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.
-
withErrorStackTrace
If an error occurred during the task, this value specifies the stack trace associated with the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.
- Parameters:
errorStackTrace- If an error occurred during the task, this value specifies the stack trace associated with the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
-