public class SetTaskStatusRequest extends AmazonWebServiceRequest implements Serializable
SetTaskStatus operation
.
Notifies AWS Data Pipeline that a task is completed and provides information about the final status. The task runner calls this action regardless of whether the task was sucessful. The task runner does not need to call SetTaskStatus for tasks that are canceled by the web service during a call to ReportTaskProgress.
Constructor and Description |
---|
SetTaskStatusRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getErrorId()
If an error occurred during the task, this value specifies an id value
that represents the error.
|
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()
Identifies 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 an id value
that represents the error.
|
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)
Identifies 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 an id value
that represents the error.
|
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)
Identifies 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. |
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public String getTaskId()
Constraints:
Length: 1 - 2048
Pattern: [ --�𐀀-\r\n\t]*
public void setTaskId(String taskId)
Constraints:
Length: 1 - 2048
Pattern: [ --�𐀀-\r\n\t]*
taskId
- Identifies the task assigned to the task runner. This value is set in
the TaskObject that is returned by the PollForTask
action.public SetTaskStatusRequest withTaskId(String taskId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2048
Pattern: [ --�𐀀-\r\n\t]*
taskId
- Identifies the task assigned to the task runner. This value is set in
the TaskObject that is returned by the PollForTask
action.public String getTaskStatus()
FINISHED
, the task successfully completed. If
FAILED
the task ended unsuccessfully. The
FALSE
value is used by preconditions.
Constraints:
Allowed Values: FINISHED, FAILED, FALSE
FINISHED
, the task successfully completed. If
FAILED
the task ended unsuccessfully. The
FALSE
value is used by preconditions.TaskStatus
public void setTaskStatus(String taskStatus)
FINISHED
, the task successfully completed. If
FAILED
the task ended unsuccessfully. The
FALSE
value is used by preconditions.
Constraints:
Allowed Values: FINISHED, FAILED, FALSE
taskStatus
- If FINISHED
, the task successfully completed. If
FAILED
the task ended unsuccessfully. The
FALSE
value is used by preconditions.TaskStatus
public SetTaskStatusRequest withTaskStatus(String taskStatus)
FINISHED
, the task successfully completed. If
FAILED
the task ended unsuccessfully. The
FALSE
value is used by preconditions.
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. The
FALSE
value is used by preconditions.TaskStatus
public void setTaskStatus(TaskStatus taskStatus)
FINISHED
, the task successfully completed. If
FAILED
the task ended unsuccessfully. The
FALSE
value is used by preconditions.
Constraints:
Allowed Values: FINISHED, FAILED, FALSE
taskStatus
- If FINISHED
, the task successfully completed. If
FAILED
the task ended unsuccessfully. The
FALSE
value is used by preconditions.TaskStatus
public SetTaskStatusRequest withTaskStatus(TaskStatus taskStatus)
FINISHED
, the task successfully completed. If
FAILED
the task ended unsuccessfully. The
FALSE
value is used by preconditions.
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. The
FALSE
value is used by preconditions.TaskStatus
public String getErrorId()
Constraints:
Length: 0 - 1024
Pattern: [ --�𐀀-\r\n\t]*
public void setErrorId(String errorId)
Constraints:
Length: 0 - 1024
Pattern: [ --�𐀀-\r\n\t]*
errorId
- If an error occurred during the task, this value specifies an id value
that represents the error. 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: [ --�𐀀-\r\n\t]*
errorId
- If an error occurred during the task, this value specifies an id value
that represents the error. 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: [ --�𐀀-\r\n\t]*
public void setErrorStackTrace(String errorStackTrace)
Constraints:
Length: 0 - 1024
Pattern: [ --�𐀀-\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: [ --�𐀀-\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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.