|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.datapipeline.model.SetTaskStatusRequest
public class SetTaskStatusRequest
Container for the parameters to the 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.
DataPipeline.setTaskStatus(SetTaskStatusRequest)
Constructor Summary | |
---|---|
SetTaskStatusRequest()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.Integer |
getErrorCode()
If an error occurred during the task, specifies a numerical value that represents the error. |
java.lang.String |
getErrorMessage()
If an error occurred during the task, specifies a text description of the error. |
java.lang.String |
getErrorStackTrace()
If an error occurred during the task, specifies the stack trace associated with the error. |
java.lang.String |
getTaskId()
Identifies the task assigned to the task runner. |
java.lang.String |
getTaskStatus()
If FINISHED, the task successfully completed. |
int |
hashCode()
|
void |
setErrorCode(java.lang.Integer errorCode)
If an error occurred during the task, specifies a numerical value that represents the error. |
void |
setErrorMessage(java.lang.String errorMessage)
If an error occurred during the task, specifies a text description of the error. |
void |
setErrorStackTrace(java.lang.String errorStackTrace)
If an error occurred during the task, specifies the stack trace associated with the error. |
void |
setTaskId(java.lang.String taskId)
Identifies the task assigned to the task runner. |
void |
setTaskStatus(java.lang.String taskStatus)
If FINISHED, the task successfully completed. |
void |
setTaskStatus(TaskStatus taskStatus)
If FINISHED, the task successfully completed. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
SetTaskStatusRequest |
withErrorCode(java.lang.Integer errorCode)
If an error occurred during the task, specifies a numerical value that represents the error. |
SetTaskStatusRequest |
withErrorMessage(java.lang.String errorMessage)
If an error occurred during the task, specifies a text description of the error. |
SetTaskStatusRequest |
withErrorStackTrace(java.lang.String errorStackTrace)
If an error occurred during the task, specifies the stack trace associated with the error. |
SetTaskStatusRequest |
withTaskId(java.lang.String taskId)
Identifies the task assigned to the task runner. |
SetTaskStatusRequest |
withTaskStatus(java.lang.String taskStatus)
If FINISHED, the task successfully completed. |
SetTaskStatusRequest |
withTaskStatus(TaskStatus taskStatus)
If FINISHED, the task successfully completed. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SetTaskStatusRequest()
Method Detail |
---|
public java.lang.String getTaskId()
Constraints:
Length: 1 - 2048
Pattern: [ -??-??-?\r\n\t]*
public void setTaskId(java.lang.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(java.lang.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 java.lang.String getTaskStatus()
Constraints:
Allowed Values: FINISHED, FAILED, FALSE
TaskStatus
public void setTaskStatus(java.lang.String taskStatus)
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(java.lang.String taskStatus)
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)
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)
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 java.lang.Integer getErrorCode()
public void setErrorCode(java.lang.Integer errorCode)
errorCode
- If an error occurred during the task, specifies a numerical value that
represents 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 withErrorCode(java.lang.Integer errorCode)
Returns a reference to this object so that method calls can be chained together.
errorCode
- If an error occurred during the task, specifies a numerical value that
represents 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 java.lang.String getErrorMessage()
public void setErrorMessage(java.lang.String errorMessage)
errorMessage
- If an error occurred during the task, 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(java.lang.String errorMessage)
Returns a reference to this object so that method calls can be chained together.
errorMessage
- If an error occurred during the task, 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 java.lang.String getErrorStackTrace()
Constraints:
Length: 0 - 1024
Pattern: [ -??-??-?\r\n\t]*
public void setErrorStackTrace(java.lang.String errorStackTrace)
Constraints:
Length: 0 - 1024
Pattern: [ -??-??-?\r\n\t]*
errorStackTrace
- If an error occurred during the task, 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(java.lang.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, 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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |