Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.simpleworkflow.model
Class RespondDecisionTaskCompletedRequest

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

public class RespondDecisionTaskCompletedRequest
extends AmazonWebServiceRequest

Container for the parameters to the RespondDecisionTaskCompleted operation.

Used by deciders to tell the service that the DecisionTask identified by the taskToken has successfully completed. The decisions argument specifies the list of decisions made while processing the task.

A DecisionTaskCompleted event is added to the workflow history. The executionContext specified is attached to the event in the workflow execution history.

See Also:
AmazonSimpleWorkflow.respondDecisionTaskCompleted(RespondDecisionTaskCompletedRequest)

Constructor Summary
RespondDecisionTaskCompletedRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 List<Decision> getDecisions()
          The list of decisions (possibly empty) made by the decider while processing this decision task.
 String getExecutionContext()
          User defined context to add to workflow execution.
 String getTaskToken()
          The taskToken from the DecisionTask.
 int hashCode()
           
 void setDecisions(Collection<Decision> decisions)
          The list of decisions (possibly empty) made by the decider while processing this decision task.
 void setExecutionContext(String executionContext)
          User defined context to add to workflow execution.
 void setTaskToken(String taskToken)
          The taskToken from the DecisionTask.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 RespondDecisionTaskCompletedRequest withDecisions(Collection<Decision> decisions)
          The list of decisions (possibly empty) made by the decider while processing this decision task.
 RespondDecisionTaskCompletedRequest withDecisions(Decision... decisions)
          The list of decisions (possibly empty) made by the decider while processing this decision task.
 RespondDecisionTaskCompletedRequest withExecutionContext(String executionContext)
          User defined context to add to workflow execution.
 RespondDecisionTaskCompletedRequest withTaskToken(String taskToken)
          The taskToken from the DecisionTask.
 
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

RespondDecisionTaskCompletedRequest

public RespondDecisionTaskCompletedRequest()
Method Detail

getTaskToken

public String getTaskToken()
The taskToken from the DecisionTask. 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 from the DecisionTask. 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 from the DecisionTask. 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 from the DecisionTask. 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 RespondDecisionTaskCompletedRequest withTaskToken(String taskToken)
The taskToken from the DecisionTask. 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 from the DecisionTask. 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.

getDecisions

public List<Decision> getDecisions()
The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the Decision structure for details.

Returns:
The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the Decision structure for details.

setDecisions

public void setDecisions(Collection<Decision> decisions)
The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the Decision structure for details.

Parameters:
decisions - The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the Decision structure for details.

withDecisions

public RespondDecisionTaskCompletedRequest withDecisions(Decision... decisions)
The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the Decision structure for details.

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

Parameters:
decisions - The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the Decision structure for details.
Returns:
A reference to this updated object so that method calls can be chained together.

withDecisions

public RespondDecisionTaskCompletedRequest withDecisions(Collection<Decision> decisions)
The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the Decision structure for details.

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

Parameters:
decisions - The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the Decision structure for details.
Returns:
A reference to this updated object so that method calls can be chained together.

getExecutionContext

public String getExecutionContext()
User defined context to add to workflow execution.

Constraints:
Length: 0 - 32768

Returns:
User defined context to add to workflow execution.

setExecutionContext

public void setExecutionContext(String executionContext)
User defined context to add to workflow execution.

Constraints:
Length: 0 - 32768

Parameters:
executionContext - User defined context to add to workflow execution.

withExecutionContext

public RespondDecisionTaskCompletedRequest withExecutionContext(String executionContext)
User defined context to add to workflow execution.

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

Constraints:
Length: 0 - 32768

Parameters:
executionContext - User defined context to add to workflow execution.
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.