public class RequestCancelWorkflowExecutionRequest extends AmazonWebServiceRequest implements java.io.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 .
| コンストラクタと説明 |
|---|
RequestCancelWorkflowExecutionRequest() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDomain()
The name of the domain containing the workflow execution to cancel.
|
java.lang.String |
getRunId()
The runId of the workflow execution to cancel.
|
java.lang.String |
getWorkflowId()
The workflowId of the workflow execution to cancel.
|
int |
hashCode() |
void |
setDomain(java.lang.String domain)
The name of the domain containing the workflow execution to cancel.
|
void |
setRunId(java.lang.String runId)
The runId of the workflow execution to cancel.
|
void |
setWorkflowId(java.lang.String workflowId)
The workflowId of the workflow execution to cancel.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RequestCancelWorkflowExecutionRequest |
withDomain(java.lang.String domain)
The name of the domain containing the workflow execution to cancel.
|
RequestCancelWorkflowExecutionRequest |
withRunId(java.lang.String runId)
The runId of the workflow execution to cancel.
|
RequestCancelWorkflowExecutionRequest |
withWorkflowId(java.lang.String workflowId)
The workflowId of the workflow execution to cancel.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic java.lang.String getDomain()
Constraints:
Length: 1 - 256
public void setDomain(java.lang.String domain)
Constraints:
Length: 1 - 256
domain - The name of the domain containing the workflow execution to cancel.public RequestCancelWorkflowExecutionRequest withDomain(java.lang.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 java.lang.String getWorkflowId()
Constraints:
Length: 1 - 256
public void setWorkflowId(java.lang.String workflowId)
Constraints:
Length: 1 - 256
workflowId - The workflowId of the workflow execution to cancel.public RequestCancelWorkflowExecutionRequest withWorkflowId(java.lang.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 java.lang.String getRunId()
Constraints:
Length: 0 - 64
public void setRunId(java.lang.String runId)
Constraints:
Length: 0 - 64
runId - The runId of the workflow execution to cancel.public RequestCancelWorkflowExecutionRequest withRunId(java.lang.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 java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object