@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SetTaskStatusRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Contains the parameters for SetTaskStatus.
NOOP
Constructor and Description |
---|
SetTaskStatusRequest() |
Modifier and Type | Method and Description |
---|---|
SetTaskStatusRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getErrorId()
If an error occurred during the task, this value specifies the error code.
|
String |
getErrorMessage()
If an error occurred during the task, this value specifies a text description of the error.
|
String |
getErrorStackTrace()
If an error occurred during the task, this value specifies the stack trace associated with the error.
|
String |
getTaskId()
The ID of the task assigned to the task runner.
|
String |
getTaskStatus()
If
FINISHED , the task successfully completed. |
int |
hashCode() |
void |
setErrorId(String errorId)
If an error occurred during the task, this value specifies the error code.
|
void |
setErrorMessage(String errorMessage)
If an error occurred during the task, this value specifies a text description of the error.
|
void |
setErrorStackTrace(String errorStackTrace)
If an error occurred during the task, this value specifies the stack trace associated with the error.
|
void |
setTaskId(String taskId)
The ID of the task assigned to the task runner.
|
void |
setTaskStatus(String taskStatus)
If
FINISHED , the task successfully completed. |
void |
setTaskStatus(TaskStatus taskStatus)
If
FINISHED , the task successfully completed. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
SetTaskStatusRequest |
withErrorId(String errorId)
If an error occurred during the task, this value specifies the error code.
|
SetTaskStatusRequest |
withErrorMessage(String errorMessage)
If an error occurred during the task, this value specifies a text description of the error.
|
SetTaskStatusRequest |
withErrorStackTrace(String errorStackTrace)
If an error occurred during the task, this value specifies the stack trace associated with the error.
|
SetTaskStatusRequest |
withTaskId(String taskId)
The ID of the task assigned to the task runner.
|
SetTaskStatusRequest |
withTaskStatus(String taskStatus)
If
FINISHED , the task successfully completed. |
SetTaskStatusRequest |
withTaskStatus(TaskStatus taskStatus)
If
FINISHED , the task successfully completed. |
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setTaskId(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 String getTaskId()
The ID of the task assigned to the task runner. This value is provided in the response for PollForTask.
public SetTaskStatusRequest withTaskId(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(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 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(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(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 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(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(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 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(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(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 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(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 String toString()
toString
in class Object
Object.toString()
public SetTaskStatusRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.