public class WorkflowExecutionCancelRequestedEventAttributes
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Provides details of the WorkflowExecutionCancelRequested
event.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
cause
If set, indicates that the request to cancel the workflow execution was
automatically generated, and specifies the cause.
|
private java.lang.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. |
private WorkflowExecution |
externalWorkflowExecution
The external workflow execution for which the cancellation was requested.
|
Constructor and Description |
---|
WorkflowExecutionCancelRequestedEventAttributes() |
Modifier and Type | Method and Description |
---|---|
WorkflowExecutionCancelRequestedEventAttributes |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCause()
If set, indicates that the request to cancel the workflow execution was
automatically generated, and specifies the cause.
|
java.lang.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(java.lang.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(java.lang.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.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
WorkflowExecutionCancelRequestedEventAttributes |
withCause(java.lang.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(java.lang.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.
|
private WorkflowExecution externalWorkflowExecution
The external workflow execution for which the cancellation was requested.
private java.lang.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. This
information can be useful for diagnosing problems by tracing back the
chain of events leading up to this event.
private java.lang.String 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.
public WorkflowExecutionCancelRequestedEventAttributes()
public void setExternalWorkflowExecution(WorkflowExecution externalWorkflowExecution)
The external workflow execution for which the cancellation was requested.
externalWorkflowExecution
- The external workflow execution for which the cancellation was
requested.public WorkflowExecution getExternalWorkflowExecution()
The external workflow execution for which the cancellation was requested.
public WorkflowExecutionCancelRequestedEventAttributes withExternalWorkflowExecution(WorkflowExecution externalWorkflowExecution)
The external workflow execution for which the cancellation was requested.
externalWorkflowExecution
- The external workflow execution for which the cancellation was
requested.public void setExternalInitiatedEventId(java.lang.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. 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 java.lang.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. 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 WorkflowExecutionCancelRequestedEventAttributes withExternalInitiatedEventId(java.lang.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. 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 void setCause(java.lang.String 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.
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.WorkflowExecutionCancelRequestedCause
public java.lang.String getCause()
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.
WorkflowExecutionCancelRequestedCause
public WorkflowExecutionCancelRequestedEventAttributes withCause(java.lang.String 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.
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.WorkflowExecutionCancelRequestedCause
public void setCause(WorkflowExecutionCancelRequestedCause 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.
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.WorkflowExecutionCancelRequestedCause
public WorkflowExecutionCancelRequestedEventAttributes withCause(WorkflowExecutionCancelRequestedCause 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.
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.WorkflowExecutionCancelRequestedCause
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public WorkflowExecutionCancelRequestedEventAttributes clone()
clone
in class java.lang.Object