public class WorkflowExecutionTerminatedEventAttributes extends Object implements Serializable, Cloneable
Provides details of the WorkflowExecutionTerminated
event.
| Constructor and Description |
|---|
WorkflowExecutionTerminatedEventAttributes() |
| Modifier and Type | Method and Description |
|---|---|
WorkflowExecutionTerminatedEventAttributes |
clone() |
boolean |
equals(Object obj) |
String |
getCause()
If set, indicates that the workflow execution was automatically
terminated, and specifies the cause.
|
String |
getChildPolicy()
The policy used for the child workflow executions of this workflow
execution.
|
String |
getDetails()
The details provided for the termination (if any).
|
String |
getReason()
The reason provided for the termination (if any).
|
int |
hashCode() |
void |
setCause(String cause)
If set, indicates that the workflow execution was automatically
terminated, and specifies the cause.
|
void |
setCause(WorkflowExecutionTerminatedCause cause)
If set, indicates that the workflow execution was automatically
terminated, and specifies the cause.
|
void |
setChildPolicy(ChildPolicy childPolicy)
The policy used for the child workflow executions of this workflow
execution.
|
void |
setChildPolicy(String childPolicy)
The policy used for the child workflow executions of this workflow
execution.
|
void |
setDetails(String details)
The details provided for the termination (if any).
|
void |
setReason(String reason)
The reason provided for the termination (if any).
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
WorkflowExecutionTerminatedEventAttributes |
withCause(String cause)
If set, indicates that the workflow execution was automatically
terminated, and specifies the cause.
|
WorkflowExecutionTerminatedEventAttributes |
withCause(WorkflowExecutionTerminatedCause cause)
If set, indicates that the workflow execution was automatically
terminated, and specifies the cause.
|
WorkflowExecutionTerminatedEventAttributes |
withChildPolicy(ChildPolicy childPolicy)
The policy used for the child workflow executions of this workflow
execution.
|
WorkflowExecutionTerminatedEventAttributes |
withChildPolicy(String childPolicy)
The policy used for the child workflow executions of this workflow
execution.
|
WorkflowExecutionTerminatedEventAttributes |
withDetails(String details)
The details provided for the termination (if any).
|
WorkflowExecutionTerminatedEventAttributes |
withReason(String reason)
The reason provided for the termination (if any).
|
public WorkflowExecutionTerminatedEventAttributes()
public String getReason()
Constraints:
Length: 0 - 256
public void setReason(String reason)
Constraints:
Length: 0 - 256
reason - The reason provided for the termination (if any).public WorkflowExecutionTerminatedEventAttributes withReason(String reason)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 256
reason - The reason provided for the termination (if any).public String getDetails()
Constraints:
Length: 0 - 32768
public void setDetails(String details)
Constraints:
Length: 0 - 32768
details - The details provided for the termination (if any).public WorkflowExecutionTerminatedEventAttributes withDetails(String details)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 32768
details - The details provided for the termination (if any).public String getChildPolicy()
The supported child policies are:
WorkflowExecutionCancelRequested event in its history. It
is up to the decider to take appropriate actions when it receives an
execution history with this event.
Constraints:
Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON
The supported child policies are:
WorkflowExecutionCancelRequested event in its history. It
is up to the decider to take appropriate actions when it receives an
execution history with this event.ChildPolicypublic void setChildPolicy(String childPolicy)
The supported child policies are:
WorkflowExecutionCancelRequested event in its history. It
is up to the decider to take appropriate actions when it receives an
execution history with this event.
Constraints:
Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON
childPolicy - The policy used for the child workflow executions of this workflow
execution. The supported child policies are:
WorkflowExecutionCancelRequested event in its history. It
is up to the decider to take appropriate actions when it receives an
execution history with this event.ChildPolicypublic WorkflowExecutionTerminatedEventAttributes withChildPolicy(String childPolicy)
The supported child policies are:
WorkflowExecutionCancelRequested event in its history. It
is up to the decider to take appropriate actions when it receives an
execution history with this event.Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON
childPolicy - The policy used for the child workflow executions of this workflow
execution. The supported child policies are:
WorkflowExecutionCancelRequested event in its history. It
is up to the decider to take appropriate actions when it receives an
execution history with this event.ChildPolicypublic void setChildPolicy(ChildPolicy childPolicy)
The supported child policies are:
WorkflowExecutionCancelRequested event in its history. It
is up to the decider to take appropriate actions when it receives an
execution history with this event.
Constraints:
Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON
childPolicy - The policy used for the child workflow executions of this workflow
execution. The supported child policies are:
WorkflowExecutionCancelRequested event in its history. It
is up to the decider to take appropriate actions when it receives an
execution history with this event.ChildPolicypublic WorkflowExecutionTerminatedEventAttributes withChildPolicy(ChildPolicy childPolicy)
The supported child policies are:
WorkflowExecutionCancelRequested event in its history. It
is up to the decider to take appropriate actions when it receives an
execution history with this event.Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON
childPolicy - The policy used for the child workflow executions of this workflow
execution. The supported child policies are:
WorkflowExecutionCancelRequested event in its history. It
is up to the decider to take appropriate actions when it receives an
execution history with this event.ChildPolicypublic String getCause()
Constraints:
Allowed Values: CHILD_POLICY_APPLIED, EVENT_LIMIT_EXCEEDED, OPERATOR_INITIATED
WorkflowExecutionTerminatedCausepublic void setCause(String cause)
Constraints:
Allowed Values: CHILD_POLICY_APPLIED, EVENT_LIMIT_EXCEEDED, OPERATOR_INITIATED
cause - If set, indicates that the workflow execution was automatically
terminated, and specifies the cause. This happens if the parent
workflow execution times out or is terminated and the child policy is
set to terminate child executions.WorkflowExecutionTerminatedCausepublic WorkflowExecutionTerminatedEventAttributes withCause(String cause)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CHILD_POLICY_APPLIED, EVENT_LIMIT_EXCEEDED, OPERATOR_INITIATED
cause - If set, indicates that the workflow execution was automatically
terminated, and specifies the cause. This happens if the parent
workflow execution times out or is terminated and the child policy is
set to terminate child executions.WorkflowExecutionTerminatedCausepublic void setCause(WorkflowExecutionTerminatedCause cause)
Constraints:
Allowed Values: CHILD_POLICY_APPLIED, EVENT_LIMIT_EXCEEDED, OPERATOR_INITIATED
cause - If set, indicates that the workflow execution was automatically
terminated, and specifies the cause. This happens if the parent
workflow execution times out or is terminated and the child policy is
set to terminate child executions.WorkflowExecutionTerminatedCausepublic WorkflowExecutionTerminatedEventAttributes withCause(WorkflowExecutionTerminatedCause cause)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CHILD_POLICY_APPLIED, EVENT_LIMIT_EXCEEDED, OPERATOR_INITIATED
cause - If set, indicates that the workflow execution was automatically
terminated, and specifies the cause. This happens if the parent
workflow execution times out or is terminated and the child policy is
set to terminate child executions.WorkflowExecutionTerminatedCausepublic String toString()
toString in class ObjectObject.toString()public WorkflowExecutionTerminatedEventAttributes clone()
Copyright © 2015. All rights reserved.