Class RespondDecisionTaskCompletedRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.simpleworkflow.model.RespondDecisionTaskCompletedRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class RespondDecisionTaskCompletedRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description RespondDecisionTaskCompletedRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RespondDecisionTaskCompletedRequest
clone()
Creates a shallow clone of this request.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()
ThetaskToken
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)
ThetaskToken
from the DecisionTask.String
toString()
Returns a string representation of this object; useful for testing and debugging.RespondDecisionTaskCompletedRequest
withDecisions(Decision... decisions)
The list of decisions (possibly empty) made by the decider while processing this decision task.RespondDecisionTaskCompletedRequest
withDecisions(Collection<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)
ThetaskToken
from the DecisionTask.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setTaskToken
public void setTaskToken(String taskToken)
The
taskToken
from the DecisionTask.taskToken
is generated by the service and should be treated as an opaque value. If the task is passed to another process, itstaskToken
must also be passed. This enables it to provide its progress and respond with results.- Parameters:
taskToken
- ThetaskToken
from the DecisionTask.taskToken
is generated by the service and should be treated as an opaque value. If the task is passed to another process, itstaskToken
must also be passed. This enables it to provide its progress and respond with results.
-
getTaskToken
public String getTaskToken()
The
taskToken
from the DecisionTask.taskToken
is generated by the service and should be treated as an opaque value. If the task is passed to another process, itstaskToken
must also be passed. This enables it to provide its progress and respond with results.- Returns:
- The
taskToken
from the DecisionTask.taskToken
is generated by the service and should be treated as an opaque value. If the task is passed to another process, itstaskToken
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.taskToken
is generated by the service and should be treated as an opaque value. If the task is passed to another process, itstaskToken
must also be passed. This enables it to provide its progress and respond with results.- Parameters:
taskToken
- ThetaskToken
from the DecisionTask.taskToken
is generated by the service and should be treated as an opaque value. If the task is passed to another process, itstaskToken
must also be passed. This enables it to provide its progress and respond with results.- Returns:
- Returns a reference to this 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.
NOTE: This method appends the values to the existing list (if any). Use
setDecisions(java.util.Collection)
orwithDecisions(java.util.Collection)
if you want to override the existing values.- 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:
- Returns a reference to this 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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
setExecutionContext
public void setExecutionContext(String executionContext)
User defined context to add to workflow execution.
- Parameters:
executionContext
- User defined context to add to workflow execution.
-
getExecutionContext
public String getExecutionContext()
User defined context to add to workflow execution.
- Returns:
- User defined context to add to workflow execution.
-
withExecutionContext
public RespondDecisionTaskCompletedRequest withExecutionContext(String executionContext)
User defined context to add to workflow execution.
- Parameters:
executionContext
- User defined context to add to workflow execution.- Returns:
- Returns a reference to this 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public RespondDecisionTaskCompletedRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-