public class WorkflowExecutionTerminatedEventAttributes extends Object implements Serializable
Provides details of the WorkflowExecutionTerminated
event.
Constructor and Description |
---|
WorkflowExecutionTerminatedEventAttributes() |
Modifier and Type | Method and Description |
---|---|
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()
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
WorkflowExecutionCancelRequested
event in its history. It
is up to the decider to take appropriate actions when it receives an
execution history with this event. ChildPolicy
public void setChildPolicy(String childPolicy)
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. ChildPolicy
public WorkflowExecutionTerminatedEventAttributes withChildPolicy(String childPolicy)
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. ChildPolicy
public void setChildPolicy(ChildPolicy childPolicy)
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. ChildPolicy
public WorkflowExecutionTerminatedEventAttributes withChildPolicy(ChildPolicy childPolicy)
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. ChildPolicy
public String getCause()
Constraints:
Allowed Values: CHILD_POLICY_APPLIED, EVENT_LIMIT_EXCEEDED, OPERATOR_INITIATED
WorkflowExecutionTerminatedCause
public 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.WorkflowExecutionTerminatedCause
public 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.WorkflowExecutionTerminatedCause
public 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.WorkflowExecutionTerminatedCause
public 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.WorkflowExecutionTerminatedCause
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.