public class RespondDecisionTaskCompletedRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
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.
Access Control
If an IAM policy grants permission to use
RespondDecisionTaskCompleted
, it can express permissions
for the list of decisions in the decisions
parameter.
Each of the decisions has one or more parameters, much like a regular
API call. To allow for policies to be as readable as possible, you can
express permissions on decisions as if they were actual API calls,
including applying conditions to some parameters. For more
information, see
Using IAM to Manage Access to Amazon SWF Workflows
.
NOOP
Constructor and Description |
---|
RespondDecisionTaskCompletedRequest() |
Modifier and Type | Method and 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()
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. |
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getTaskToken()
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, its taskToken
must also be passed. This enables
it to provide its progress and respond with results.
Constraints:
Length: 1 - 1024
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, its taskToken
must also be passed. This enables
it to provide its progress and respond with results.public void setTaskToken(String taskToken)
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, its taskToken
must also be passed. This enables
it to provide its progress and respond with results.
Constraints:
Length: 1 - 1024
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, its taskToken
must also be passed. This enables
it to provide its progress and respond with results.public RespondDecisionTaskCompletedRequest withTaskToken(String taskToken)
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, 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
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, its taskToken
must also be passed. This enables
it to provide its progress and respond with results.public List<Decision> getDecisions()
public void setDecisions(Collection<Decision> decisions)
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.public RespondDecisionTaskCompletedRequest withDecisions(Decision... decisions)
NOTE: This method appends the values to the existing list (if
any). Use setDecisions(java.util.Collection)
or withDecisions(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
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.public RespondDecisionTaskCompletedRequest withDecisions(Collection<Decision> decisions)
Returns a reference to this object so that method calls can be chained together.
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.public String getExecutionContext()
Constraints:
Length: 0 - 32768
public void setExecutionContext(String executionContext)
Constraints:
Length: 0 - 32768
executionContext
- User defined context to add to workflow execution.public RespondDecisionTaskCompletedRequest withExecutionContext(String executionContext)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 32768
executionContext
- User defined context to add to workflow execution.public String toString()
toString
in class Object
Object.toString()
public RespondDecisionTaskCompletedRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.