public class SetTaskStatusRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
SetTaskStatus operation
.
Task runners call SetTaskStatus
to notify AWS Data
Pipeline that a task is completed and provide information about the
final status. A task runner makes this call regardless of whether the
task was sucessful. A task runner does not need to call
SetTaskStatus
for tasks that are canceled by the web
service during a call to ReportTaskProgress.
NOOP
Constructor and Description |
---|
SetTaskStatusRequest() |
Modifier and Type | Method and 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()
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. |
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getTaskId()
Constraints:
Length: 1 - 2048
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setTaskId(String taskId)
Constraints:
Length: 1 - 2048
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
taskId
- The ID of the task assigned to the task runner. This value is provided
in the response for PollForTask.public SetTaskStatusRequest withTaskId(String taskId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2048
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
taskId
- The ID of the task assigned to the task runner. This value is provided
in the response for PollForTask.public String getTaskStatus()
FINISHED
, the task successfully completed. If
FAILED
, the task ended unsuccessfully. Preconditions use
false.
Constraints:
Allowed Values: FINISHED, FAILED, FALSE
FINISHED
, the task successfully completed. If
FAILED
, the task ended unsuccessfully. Preconditions use
false.TaskStatus
public void setTaskStatus(String taskStatus)
FINISHED
, the task successfully completed. If
FAILED
, the task ended unsuccessfully. Preconditions use
false.
Constraints:
Allowed Values: FINISHED, FAILED, FALSE
taskStatus
- If FINISHED
, the task successfully completed. If
FAILED
, the task ended unsuccessfully. Preconditions use
false.TaskStatus
public SetTaskStatusRequest withTaskStatus(String taskStatus)
FINISHED
, the task successfully completed. If
FAILED
, the task ended unsuccessfully. Preconditions use
false.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: FINISHED, FAILED, FALSE
taskStatus
- If FINISHED
, the task successfully completed. If
FAILED
, the task ended unsuccessfully. Preconditions use
false.TaskStatus
public void setTaskStatus(TaskStatus taskStatus)
FINISHED
, the task successfully completed. If
FAILED
, the task ended unsuccessfully. Preconditions use
false.
Constraints:
Allowed Values: FINISHED, FAILED, FALSE
taskStatus
- If FINISHED
, the task successfully completed. If
FAILED
, the task ended unsuccessfully. Preconditions use
false.TaskStatus
public SetTaskStatusRequest withTaskStatus(TaskStatus taskStatus)
FINISHED
, the task successfully completed. If
FAILED
, the task ended unsuccessfully. Preconditions use
false.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: FINISHED, FAILED, FALSE
taskStatus
- If FINISHED
, the task successfully completed. If
FAILED
, the task ended unsuccessfully. Preconditions use
false.TaskStatus
public String getErrorId()
Constraints:
Length: 0 - 1024
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setErrorId(String errorId)
Constraints:
Length: 0 - 1024
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
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 SetTaskStatusRequest withErrorId(String errorId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1024
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
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 getErrorMessage()
public void setErrorMessage(String errorMessage)
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 SetTaskStatusRequest withErrorMessage(String errorMessage)
Returns a reference to this object so that method calls can be chained together.
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 getErrorStackTrace()
Constraints:
Length: 0 - 1024
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setErrorStackTrace(String errorStackTrace)
Constraints:
Length: 0 - 1024
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
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 SetTaskStatusRequest withErrorStackTrace(String errorStackTrace)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1024
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
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 © 2015. All rights reserved.