Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.simpleworkflow.model
Class RespondActivityTaskFailedRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.simpleworkflow.model.RespondActivityTaskFailedRequest

public class RespondActivityTaskFailedRequest
extends AmazonWebServiceRequest

Container for the parameters to the RespondActivityTaskFailed operation.

Used by workers to tell the service that the ActivityTask identified by the taskToken has failed with reason (if specified).

The reason and details appear in the ActivityTaskFailed event added to the workflow history.

See Also:
AmazonSimpleWorkflow.respondActivityTaskFailed(RespondActivityTaskFailedRequest)

Constructor Summary
RespondActivityTaskFailedRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDetails()
          Optional detailed information about the failure.
 String getReason()
          Description of the error that may assist in diagnostics.
 String getTaskToken()
          The taskToken of the ActivityTask.
 int hashCode()
           
 void setDetails(String details)
          Optional detailed information about the failure.
 void setReason(String reason)
          Description of the error that may assist in diagnostics.
 void setTaskToken(String taskToken)
          The taskToken of the ActivityTask.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 RespondActivityTaskFailedRequest withDetails(String details)
          Optional detailed information about the failure.
 RespondActivityTaskFailedRequest withReason(String reason)
          Description of the error that may assist in diagnostics.
 RespondActivityTaskFailedRequest withTaskToken(String taskToken)
          The taskToken of the ActivityTask.
 
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

RespondActivityTaskFailedRequest

public RespondActivityTaskFailedRequest()
Method Detail

getTaskToken

public String getTaskToken()
The taskToken of the ActivityTask. The taskToken is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken must also be passed. This enables it to provide its progress and respond with results.

Constraints:
Length: 1 - 1024

Returns:
The taskToken of the ActivityTask. The taskToken is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken must also be passed. This enables it to provide its progress and respond with results.

setTaskToken

public void setTaskToken(String taskToken)
The taskToken of the ActivityTask. The taskToken is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken must also be passed. This enables it to provide its progress and respond with results.

Constraints:
Length: 1 - 1024

Parameters:
taskToken - The taskToken of the ActivityTask. The taskToken is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken must also be passed. This enables it to provide its progress and respond with results.

withTaskToken

public RespondActivityTaskFailedRequest withTaskToken(String taskToken)
The taskToken of the ActivityTask. The taskToken is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken must also be passed. This enables it to provide its progress and respond with results.

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

Constraints:
Length: 1 - 1024

Parameters:
taskToken - The taskToken of the ActivityTask. The taskToken is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken must also be passed. This enables it to provide its progress and respond with results.
Returns:
A reference to this updated object so that method calls can be chained together.

getReason

public String getReason()
Description of the error that may assist in diagnostics.

Constraints:
Length: 0 - 256

Returns:
Description of the error that may assist in diagnostics.

setReason

public void setReason(String reason)
Description of the error that may assist in diagnostics.

Constraints:
Length: 0 - 256

Parameters:
reason - Description of the error that may assist in diagnostics.

withReason

public RespondActivityTaskFailedRequest withReason(String reason)
Description of the error that may assist in diagnostics.

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

Constraints:
Length: 0 - 256

Parameters:
reason - Description of the error that may assist in diagnostics.
Returns:
A reference to this updated object so that method calls can be chained together.

getDetails

public String getDetails()
Optional detailed information about the failure.

Constraints:
Length: 0 - 32768

Returns:
Optional detailed information about the failure.

setDetails

public void setDetails(String details)
Optional detailed information about the failure.

Constraints:
Length: 0 - 32768

Parameters:
details - Optional detailed information about the failure.

withDetails

public RespondActivityTaskFailedRequest withDetails(String details)
Optional detailed information about the failure.

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

Constraints:
Length: 0 - 32768

Parameters:
details - Optional detailed information about the failure.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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