Class SetTaskStatusRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.datapipeline.model.SetTaskStatusRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class SetTaskStatusRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Contains the parameters for SetTaskStatus.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description SetTaskStatusRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetTaskStatusRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetErrorId()If an error occurred during the task, this value specifies the error code.StringgetErrorMessage()If an error occurred during the task, this value specifies a text description of the error.StringgetErrorStackTrace()If an error occurred during the task, this value specifies the stack trace associated with the error.StringgetTaskId()The ID of the task assigned to the task runner.StringgetTaskStatus()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.voidsetTaskId(String taskId)The 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.StringtoString()Returns a string representation of this object; useful for testing and debugging.SetTaskStatusRequestwithErrorId(String errorId)If an error occurred during the task, this value specifies the error code.SetTaskStatusRequestwithErrorMessage(String errorMessage)If an error occurred during the task, this value specifies a text description of the error.SetTaskStatusRequestwithErrorStackTrace(String errorStackTrace)If an error occurred during the task, this value specifies the stack trace associated with the error.SetTaskStatusRequestwithTaskId(String taskId)The ID of the task assigned to the task runner.SetTaskStatusRequestwithTaskStatus(TaskStatus taskStatus)IfFINISHED, the task successfully completed.SetTaskStatusRequestwithTaskStatus(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
-
-
-
-
Method Detail
-
setTaskId
public void setTaskId(String taskId)
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
public String 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
public SetTaskStatusRequest withTaskId(String taskId)
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
public void setTaskStatus(String taskStatus)
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:
TaskStatus
-
getTaskStatus
public String 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:
TaskStatus
-
withTaskStatus
public SetTaskStatusRequest withTaskStatus(String taskStatus)
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:
TaskStatus
-
setTaskStatus
public void setTaskStatus(TaskStatus taskStatus)
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:
TaskStatus
-
withTaskStatus
public SetTaskStatusRequest withTaskStatus(TaskStatus taskStatus)
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:
TaskStatus
-
setErrorId
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.
- 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
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.
- 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
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.
- 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
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.
- 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
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.
- 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
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.
- 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
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.
- 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
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.
- 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
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.
- 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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SetTaskStatusRequest 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:
Object.clone()
-
-