Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.datapipeline.model
Class SetTaskStatusRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.datapipeline.model.SetTaskStatusRequest

public class SetTaskStatusRequest
extends AmazonWebServiceRequest

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.

See Also:
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

SetTaskStatusRequest

public SetTaskStatusRequest()
Method Detail

getTaskId

public java.lang.String getTaskId()
Identifies the task assigned to the task runner. This value is set in the TaskObject that is returned by the PollForTask action.

Constraints:
Length: 1 - 2048
Pattern: [ -??-??-?\r\n\t]*

Returns:
Identifies the task assigned to the task runner. This value is set in the TaskObject that is returned by the PollForTask action.

setTaskId

public void setTaskId(java.lang.String taskId)
Identifies the task assigned to the task runner. This value is set in the TaskObject that is returned by the PollForTask action.

Constraints:
Length: 1 - 2048
Pattern: [ -??-??-?\r\n\t]*

Parameters:
taskId - Identifies the task assigned to the task runner. This value is set in the TaskObject that is returned by the PollForTask action.

withTaskId

public SetTaskStatusRequest withTaskId(java.lang.String taskId)
Identifies the task assigned to the task runner. This value is set in the TaskObject that is returned by the PollForTask action.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 2048
Pattern: [ -??-??-?\r\n\t]*

Parameters:
taskId - Identifies the task assigned to the task runner. This value is set in the TaskObject that is returned by the PollForTask action.
Returns:
A reference to this updated object so that method calls can be chained together.

getTaskStatus

public java.lang.String getTaskStatus()
If FINISHED, the task successfully completed. If FAILED the task ended unsuccessfully. The FALSE value is used by preconditions.

Constraints:
Allowed Values: FINISHED, FAILED, FALSE

Returns:
If FINISHED, the task successfully completed. If FAILED the task ended unsuccessfully. The FALSE value is used by preconditions.
See Also:
TaskStatus

setTaskStatus

public void setTaskStatus(java.lang.String taskStatus)
If FINISHED, the task successfully completed. If FAILED the task ended unsuccessfully. The FALSE value is used by preconditions.

Constraints:
Allowed Values: FINISHED, FAILED, FALSE

Parameters:
taskStatus - If FINISHED, the task successfully completed. If FAILED the task ended unsuccessfully. The FALSE value is used by preconditions.
See Also:
TaskStatus

withTaskStatus

public SetTaskStatusRequest withTaskStatus(java.lang.String taskStatus)
If 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

Parameters:
taskStatus - If FINISHED, the task successfully completed. If FAILED the task ended unsuccessfully. The FALSE value is used by preconditions.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
TaskStatus

setTaskStatus

public void setTaskStatus(TaskStatus taskStatus)
If FINISHED, the task successfully completed. If FAILED the task ended unsuccessfully. The FALSE value is used by preconditions.

Constraints:
Allowed Values: FINISHED, FAILED, FALSE

Parameters:
taskStatus - If FINISHED, the task successfully completed. If FAILED the task ended unsuccessfully. The FALSE value is used by preconditions.
See Also:
TaskStatus

withTaskStatus

public SetTaskStatusRequest withTaskStatus(TaskStatus taskStatus)
If 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

Parameters:
taskStatus - If FINISHED, the task successfully completed. If FAILED the task ended unsuccessfully. The FALSE value is used by preconditions.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
TaskStatus

getErrorCode

public java.lang.Integer getErrorCode()
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.

Returns:
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.

setErrorCode

public void setErrorCode(java.lang.Integer 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.

Parameters:
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.

withErrorCode

public SetTaskStatusRequest withErrorCode(java.lang.Integer 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getErrorMessage

public java.lang.String getErrorMessage()
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.

Returns:
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.

setErrorMessage

public void setErrorMessage(java.lang.String 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.

Parameters:
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.

withErrorMessage

public SetTaskStatusRequest withErrorMessage(java.lang.String 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getErrorStackTrace

public java.lang.String getErrorStackTrace()
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.

Constraints:
Length: 0 - 1024
Pattern: [ -??-??-?\r\n\t]*

Returns:
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.

setErrorStackTrace

public void setErrorStackTrace(java.lang.String 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.

Constraints:
Length: 0 - 1024
Pattern: [ -??-??-?\r\n\t]*

Parameters:
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.

withErrorStackTrace

public SetTaskStatusRequest withErrorStackTrace(java.lang.String 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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 1024
Pattern: [ -??-??-?\r\n\t]*

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.