public class SetTaskStatusRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Contains the parameters for SetTaskStatus.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
errorId
If an error occurred during the task, this value specifies the error
code.
|
private java.lang.String |
errorMessage
If an error occurred during the task, this value specifies a text
description of the error.
|
private java.lang.String |
errorStackTrace
If an error occurred during the task, this value specifies the stack
trace associated with the error.
|
private java.lang.String |
taskId
The ID of the task assigned to the task runner.
|
private java.lang.String |
taskStatus
If
FINISHED , the task successfully completed. |
NOOP
Constructor and Description |
---|
SetTaskStatusRequest() |
Modifier and Type | Method and Description |
---|---|
SetTaskStatusRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getErrorId()
If an error occurred during the task, this value specifies the error
code.
|
java.lang.String |
getErrorMessage()
If an error occurred during the task, this value specifies a text
description of the error.
|
java.lang.String |
getErrorStackTrace()
If an error occurred during the task, this value specifies the stack
trace associated with the error.
|
java.lang.String |
getTaskId()
The ID of the task assigned to the task runner.
|
java.lang.String |
getTaskStatus()
If
FINISHED , the task successfully completed. |
int |
hashCode() |
void |
setErrorId(java.lang.String errorId)
If an error occurred during the task, this value specifies the error
code.
|
void |
setErrorMessage(java.lang.String errorMessage)
If an error occurred during the task, this value specifies a text
description of the error.
|
void |
setErrorStackTrace(java.lang.String errorStackTrace)
If an error occurred during the task, this value specifies the stack
trace associated with the error.
|
void |
setTaskId(java.lang.String taskId)
The ID of the task assigned to the task runner.
|
void |
setTaskStatus(java.lang.String taskStatus)
If
FINISHED , the task successfully completed. |
void |
setTaskStatus(TaskStatus taskStatus)
If
FINISHED , the task successfully completed. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetTaskStatusRequest |
withErrorId(java.lang.String errorId)
If an error occurred during the task, this value specifies the error
code.
|
SetTaskStatusRequest |
withErrorMessage(java.lang.String errorMessage)
If an error occurred during the task, this value specifies a text
description of the error.
|
SetTaskStatusRequest |
withErrorStackTrace(java.lang.String errorStackTrace)
If an error occurred during the task, this value specifies the stack
trace associated with the error.
|
SetTaskStatusRequest |
withTaskId(java.lang.String taskId)
The ID of the task assigned to the task runner.
|
SetTaskStatusRequest |
withTaskStatus(java.lang.String taskStatus)
If
FINISHED , the task successfully completed. |
SetTaskStatusRequest |
withTaskStatus(TaskStatus taskStatus)
If
FINISHED , the task successfully completed. |
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 taskId
The ID of the task assigned to the task runner. This value is provided in the response for PollForTask.
private java.lang.String taskStatus
If FINISHED
, the task successfully completed. If
FAILED
, the task ended unsuccessfully. Preconditions use
false.
private java.lang.String 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.
private java.lang.String 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.
private java.lang.String 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.
public void setTaskId(java.lang.String taskId)
The ID of the task assigned to the task runner. This value is provided in the response for PollForTask.
taskId
- The ID of the task assigned to the task runner. This value is
provided in the response for PollForTask.public java.lang.String getTaskId()
The ID of the task assigned to the task runner. This value is provided in the response for PollForTask.
public SetTaskStatusRequest withTaskId(java.lang.String taskId)
The ID of the task assigned to the task runner. This value is provided in the response for PollForTask.
taskId
- The ID of the task assigned to the task runner. This value is
provided in the response for PollForTask.public void setTaskStatus(java.lang.String taskStatus)
If FINISHED
, the task successfully completed. If
FAILED
, the task ended unsuccessfully. Preconditions use
false.
taskStatus
- If FINISHED
, the task successfully completed. If
FAILED
, the task ended unsuccessfully. Preconditions
use false.TaskStatus
public java.lang.String getTaskStatus()
If FINISHED
, the task successfully completed. If
FAILED
, the task ended unsuccessfully. Preconditions use
false.
FINISHED
, the task successfully completed. If
FAILED
, the task ended unsuccessfully. Preconditions
use false.TaskStatus
public SetTaskStatusRequest withTaskStatus(java.lang.String taskStatus)
If FINISHED
, the task successfully completed. If
FAILED
, the task ended unsuccessfully. Preconditions use
false.
taskStatus
- If FINISHED
, the task successfully completed. If
FAILED
, the task ended unsuccessfully. Preconditions
use false.TaskStatus
public void setTaskStatus(TaskStatus taskStatus)
If FINISHED
, the task successfully completed. If
FAILED
, the task ended unsuccessfully. Preconditions use
false.
taskStatus
- If FINISHED
, the task successfully completed. If
FAILED
, the task ended unsuccessfully. Preconditions
use false.TaskStatus
public SetTaskStatusRequest withTaskStatus(TaskStatus taskStatus)
If FINISHED
, the task successfully completed. If
FAILED
, the task ended unsuccessfully. Preconditions use
false.
taskStatus
- If FINISHED
, the task successfully completed. If
FAILED
, the task ended unsuccessfully. Preconditions
use false.TaskStatus
public void setErrorId(java.lang.String 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.
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.public java.lang.String 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.
public SetTaskStatusRequest withErrorId(java.lang.String 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.
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.public void setErrorMessage(java.lang.String 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.
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.public java.lang.String 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.
public SetTaskStatusRequest withErrorMessage(java.lang.String 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.
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.public void setErrorStackTrace(java.lang.String 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.
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.public java.lang.String 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.
public SetTaskStatusRequest withErrorStackTrace(java.lang.String 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.
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.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 SetTaskStatusRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()