public class RequestCancelWorkflowExecutionRequest extends AmazonWebServiceRequest implements Serializable
RequestCancelWorkflowExecution operation
.
Records a WorkflowExecutionCancelRequested
event in the currently running workflow execution identified by the given domain, workflowId,
and runId. This logically requests the cancellation of the workflow execution as a whole. It is up to the decider to take appropriate actions when it
receives an execution history with this event.
NOTE: If the runId is not specified, the WorkflowExecutionCancelRequested event is recorded in the history of the current open workflow execution with the specified workflowId in the domain.
NOTE: Because this action allows the workflow to properly clean up and gracefully close, it should be used instead of TerminateWorkflowExecution when possible.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.
If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action
fails by throwing OperationNotPermitted
. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Constructor and Description |
---|
RequestCancelWorkflowExecutionRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDomain()
The name of the domain containing the workflow execution to cancel.
|
String |
getRunId()
The runId of the workflow execution to cancel.
|
String |
getWorkflowId()
The workflowId of the workflow execution to cancel.
|
int |
hashCode() |
void |
setDomain(String domain)
The name of the domain containing the workflow execution to cancel.
|
void |
setRunId(String runId)
The runId of the workflow execution to cancel.
|
void |
setWorkflowId(String workflowId)
The workflowId of the workflow execution to cancel.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RequestCancelWorkflowExecutionRequest |
withDomain(String domain)
The name of the domain containing the workflow execution to cancel.
|
RequestCancelWorkflowExecutionRequest |
withRunId(String runId)
The runId of the workflow execution to cancel.
|
RequestCancelWorkflowExecutionRequest |
withWorkflowId(String workflowId)
The workflowId of the workflow execution to cancel.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public RequestCancelWorkflowExecutionRequest()
public String getDomain()
Constraints:
Length: 1 - 256
public void setDomain(String domain)
Constraints:
Length: 1 - 256
domain
- The name of the domain containing the workflow execution to cancel.public RequestCancelWorkflowExecutionRequest withDomain(String domain)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
domain
- The name of the domain containing the workflow execution to cancel.public String getWorkflowId()
Constraints:
Length: 1 - 256
public void setWorkflowId(String workflowId)
Constraints:
Length: 1 - 256
workflowId
- The workflowId of the workflow execution to cancel.public RequestCancelWorkflowExecutionRequest withWorkflowId(String workflowId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
workflowId
- The workflowId of the workflow execution to cancel.public String getRunId()
Constraints:
Length: 0 - 64
public void setRunId(String runId)
Constraints:
Length: 0 - 64
runId
- The runId of the workflow execution to cancel.public RequestCancelWorkflowExecutionRequest withRunId(String runId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 64
runId
- The runId of the workflow execution to cancel.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.