Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.simpleworkflow.model
Class RespondActivityTaskCanceledRequest

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

public class RespondActivityTaskCanceledRequest
extends AmazonWebServiceRequest

Container for the parameters to the RespondActivityTaskCanceled operation.

Used by workers to tell the service that the ActivityTask identified by the taskToken was successfully canceled. Additional details can be optionally provided using the details argument.

These details (if provided) appear in the ActivityTaskCanceled event added to the workflow history.

IMPORTANT: Only use this operation if the canceled flag of a RecordActivityTaskHeartbeat request returns true and if the activity can be safely undone or abandoned.

See Also:
AmazonSimpleWorkflow.respondActivityTaskCanceled(RespondActivityTaskCanceledRequest)

Constructor Summary
RespondActivityTaskCanceledRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDetails()
          Optional information about the cancellation.
 String getTaskToken()
          The taskToken of the ActivityTask.
 int hashCode()
           
 void setDetails(String details)
          Optional information about the cancellation.
 void setTaskToken(String taskToken)
          The taskToken of the ActivityTask.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 RespondActivityTaskCanceledRequest withDetails(String details)
          Optional information about the cancellation.
 RespondActivityTaskCanceledRequest 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

RespondActivityTaskCanceledRequest

public RespondActivityTaskCanceledRequest()
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 RespondActivityTaskCanceledRequest 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.

getDetails

public String getDetails()
Optional information about the cancellation.

Constraints:
Length: 0 - 32768

Returns:
Optional information about the cancellation.

setDetails

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

Constraints:
Length: 0 - 32768

Parameters:
details - Optional information about the cancellation.

withDetails

public RespondActivityTaskCanceledRequest withDetails(String details)
Optional information about the cancellation.

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

Constraints:
Length: 0 - 32768

Parameters:
details - Optional information about the cancellation.
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.