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 SetTaskStatusRequest
clone()
Creates a shallow clone of this request.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()
IfFINISHED
, 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(TaskStatus taskStatus)
IfFINISHED
, the task successfully completed.void
setTaskStatus(String taskStatus)
IfFINISHED
, 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(TaskStatus taskStatus)
IfFINISHED
, the task successfully completed.SetTaskStatusRequest
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
-
-
-
-
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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SetTaskStatusRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-