public class WorkflowExecutionCancelRequestedEventAttributes extends Object implements Serializable, Cloneable
Provides details of the WorkflowExecutionCancelRequested
event.
| Constructor and Description |
|---|
WorkflowExecutionCancelRequestedEventAttributes() |
| Modifier and Type | Method and Description |
|---|---|
WorkflowExecutionCancelRequestedEventAttributes |
clone() |
boolean |
equals(Object obj) |
String |
getCause()
If set, indicates that the request to cancel the workflow execution
was automatically generated, and specifies the cause.
|
Long |
getExternalInitiatedEventId()
The ID of the
RequestCancelExternalWorkflowExecutionInitiated event
corresponding to the
RequestCancelExternalWorkflowExecution decision to cancel
this workflow execution.The source event with this ID can be found in
the history of the source workflow execution. |
WorkflowExecution |
getExternalWorkflowExecution()
The external workflow execution for which the cancellation was
requested.
|
int |
hashCode() |
void |
setCause(String cause)
If set, indicates that the request to cancel the workflow execution
was automatically generated, and specifies the cause.
|
void |
setCause(WorkflowExecutionCancelRequestedCause cause)
If set, indicates that the request to cancel the workflow execution
was automatically generated, and specifies the cause.
|
void |
setExternalInitiatedEventId(Long externalInitiatedEventId)
The ID of the
RequestCancelExternalWorkflowExecutionInitiated event
corresponding to the
RequestCancelExternalWorkflowExecution decision to cancel
this workflow execution.The source event with this ID can be found in
the history of the source workflow execution. |
void |
setExternalWorkflowExecution(WorkflowExecution externalWorkflowExecution)
The external workflow execution for which the cancellation was
requested.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
WorkflowExecutionCancelRequestedEventAttributes |
withCause(String cause)
If set, indicates that the request to cancel the workflow execution
was automatically generated, and specifies the cause.
|
WorkflowExecutionCancelRequestedEventAttributes |
withCause(WorkflowExecutionCancelRequestedCause cause)
If set, indicates that the request to cancel the workflow execution
was automatically generated, and specifies the cause.
|
WorkflowExecutionCancelRequestedEventAttributes |
withExternalInitiatedEventId(Long externalInitiatedEventId)
The ID of the
RequestCancelExternalWorkflowExecutionInitiated event
corresponding to the
RequestCancelExternalWorkflowExecution decision to cancel
this workflow execution.The source event with this ID can be found in
the history of the source workflow execution. |
WorkflowExecutionCancelRequestedEventAttributes |
withExternalWorkflowExecution(WorkflowExecution externalWorkflowExecution)
The external workflow execution for which the cancellation was
requested.
|
public WorkflowExecutionCancelRequestedEventAttributes()
public WorkflowExecution getExternalWorkflowExecution()
public void setExternalWorkflowExecution(WorkflowExecution externalWorkflowExecution)
externalWorkflowExecution - The external workflow execution for which the cancellation was
requested.public WorkflowExecutionCancelRequestedEventAttributes withExternalWorkflowExecution(WorkflowExecution externalWorkflowExecution)
Returns a reference to this object so that method calls can be chained together.
externalWorkflowExecution - The external workflow execution for which the cancellation was
requested.public Long getExternalInitiatedEventId()
RequestCancelExternalWorkflowExecutionInitiated event
corresponding to the
RequestCancelExternalWorkflowExecution decision to cancel
this workflow execution.The source event with this ID can be found in
the history of the source workflow execution. This information can be
useful for diagnosing problems by tracing back the chain of events
leading up to this event.RequestCancelExternalWorkflowExecutionInitiated event
corresponding to the
RequestCancelExternalWorkflowExecution decision to cancel
this workflow execution.The source event with this ID can be found in
the history of the source workflow execution. This information can be
useful for diagnosing problems by tracing back the chain of events
leading up to this event.public void setExternalInitiatedEventId(Long externalInitiatedEventId)
RequestCancelExternalWorkflowExecutionInitiated event
corresponding to the
RequestCancelExternalWorkflowExecution decision to cancel
this workflow execution.The source event with this ID can be found in
the history of the source workflow execution. This information can be
useful for diagnosing problems by tracing back the chain of events
leading up to this event.externalInitiatedEventId - The ID of the
RequestCancelExternalWorkflowExecutionInitiated event
corresponding to the
RequestCancelExternalWorkflowExecution decision to cancel
this workflow execution.The source event with this ID can be found in
the history of the source workflow execution. This information can be
useful for diagnosing problems by tracing back the chain of events
leading up to this event.public WorkflowExecutionCancelRequestedEventAttributes withExternalInitiatedEventId(Long externalInitiatedEventId)
RequestCancelExternalWorkflowExecutionInitiated event
corresponding to the
RequestCancelExternalWorkflowExecution decision to cancel
this workflow execution.The source event with this ID can be found in
the history of the source workflow execution. This information can be
useful for diagnosing problems by tracing back the chain of events
leading up to this event.
Returns a reference to this object so that method calls can be chained together.
externalInitiatedEventId - The ID of the
RequestCancelExternalWorkflowExecutionInitiated event
corresponding to the
RequestCancelExternalWorkflowExecution decision to cancel
this workflow execution.The source event with this ID can be found in
the history of the source workflow execution. This information can be
useful for diagnosing problems by tracing back the chain of events
leading up to this event.public String getCause()
Constraints:
Allowed Values: CHILD_POLICY_APPLIED
WorkflowExecutionCancelRequestedCausepublic void setCause(String cause)
Constraints:
Allowed Values: CHILD_POLICY_APPLIED
cause - If set, indicates that the request to cancel the workflow execution
was automatically generated, and specifies the cause. This happens if
the parent workflow execution times out or is terminated, and the
child policy is set to cancel child executions.WorkflowExecutionCancelRequestedCausepublic WorkflowExecutionCancelRequestedEventAttributes withCause(String cause)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CHILD_POLICY_APPLIED
cause - If set, indicates that the request to cancel the workflow execution
was automatically generated, and specifies the cause. This happens if
the parent workflow execution times out or is terminated, and the
child policy is set to cancel child executions.WorkflowExecutionCancelRequestedCausepublic void setCause(WorkflowExecutionCancelRequestedCause cause)
Constraints:
Allowed Values: CHILD_POLICY_APPLIED
cause - If set, indicates that the request to cancel the workflow execution
was automatically generated, and specifies the cause. This happens if
the parent workflow execution times out or is terminated, and the
child policy is set to cancel child executions.WorkflowExecutionCancelRequestedCausepublic WorkflowExecutionCancelRequestedEventAttributes withCause(WorkflowExecutionCancelRequestedCause cause)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CHILD_POLICY_APPLIED
cause - If set, indicates that the request to cancel the workflow execution
was automatically generated, and specifies the cause. This happens if
the parent workflow execution times out or is terminated, and the
child policy is set to cancel child executions.WorkflowExecutionCancelRequestedCausepublic String toString()
toString in class ObjectObject.toString()public WorkflowExecutionCancelRequestedEventAttributes clone()
Copyright © 2015. All rights reserved.