Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.simpleworkflow.model
Class RequestCancelWorkflowExecutionRequest

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

public class RequestCancelWorkflowExecutionRequest
extends AmazonWebServiceRequest

Container for the parameters to the 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.

See Also:
AmazonSimpleWorkflow.requestCancelWorkflowExecution(RequestCancelWorkflowExecutionRequest)

Constructor Summary
RequestCancelWorkflowExecutionRequest()
           
 
Method Summary
 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.
 
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

RequestCancelWorkflowExecutionRequest

public RequestCancelWorkflowExecutionRequest()
Method Detail

getDomain

public java.lang.String getDomain()
The name of the domain containing the workflow execution to cancel.

Constraints:
Length: 1 - 256

Returns:
The name of the domain containing the workflow execution to cancel.

setDomain

public void setDomain(java.lang.String domain)
The name of the domain containing the workflow execution to cancel.

Constraints:
Length: 1 - 256

Parameters:
domain - The name of the domain containing the workflow execution to cancel.

withDomain

public RequestCancelWorkflowExecutionRequest withDomain(java.lang.String domain)
The name of the domain containing the workflow execution to cancel.

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

Constraints:
Length: 1 - 256

Parameters:
domain - The name of the domain containing the workflow execution to cancel.
Returns:
A reference to this updated object so that method calls can be chained together.

getWorkflowId

public java.lang.String getWorkflowId()
The workflowId of the workflow execution to cancel.

Constraints:
Length: 1 - 256

Returns:
The workflowId of the workflow execution to cancel.

setWorkflowId

public void setWorkflowId(java.lang.String workflowId)
The workflowId of the workflow execution to cancel.

Constraints:
Length: 1 - 256

Parameters:
workflowId - The workflowId of the workflow execution to cancel.

withWorkflowId

public RequestCancelWorkflowExecutionRequest withWorkflowId(java.lang.String workflowId)
The workflowId of the workflow execution to cancel.

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

Constraints:
Length: 1 - 256

Parameters:
workflowId - The workflowId of the workflow execution to cancel.
Returns:
A reference to this updated object so that method calls can be chained together.

getRunId

public java.lang.String getRunId()
The runId of the workflow execution to cancel.

Constraints:
Length: 0 - 64

Returns:
The runId of the workflow execution to cancel.

setRunId

public void setRunId(java.lang.String runId)
The runId of the workflow execution to cancel.

Constraints:
Length: 0 - 64

Parameters:
runId - The runId of the workflow execution to cancel.

withRunId

public RequestCancelWorkflowExecutionRequest withRunId(java.lang.String runId)
The runId of the workflow execution to cancel.

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

Constraints:
Length: 0 - 64

Parameters:
runId - The runId of the workflow execution to cancel.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.