@Generated(value="software.amazon.awssdk:codegen") public final class WorkflowExecutionTerminatedEventAttributes extends Object implements SdkPojo, Serializable, ToCopyableBuilder<WorkflowExecutionTerminatedEventAttributes.Builder,WorkflowExecutionTerminatedEventAttributes>
Provides the details of the WorkflowExecutionTerminated
event.
Modifier and Type | Class and Description |
---|---|
static interface |
WorkflowExecutionTerminatedEventAttributes.Builder |
Modifier and Type | Method and Description |
---|---|
static WorkflowExecutionTerminatedEventAttributes.Builder |
builder() |
WorkflowExecutionTerminatedCause |
cause()
If set, indicates that the workflow execution was automatically terminated, and specifies the cause.
|
String |
causeAsString()
If set, indicates that the workflow execution was automatically terminated, and specifies the cause.
|
ChildPolicy |
childPolicy()
The policy used for the child workflow executions of this workflow execution.
|
String |
childPolicyAsString()
The policy used for the child workflow executions of this workflow execution.
|
String |
details()
The details provided for the termination.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
reason()
The reason provided for the termination.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends WorkflowExecutionTerminatedEventAttributes.Builder> |
serializableBuilderClass() |
WorkflowExecutionTerminatedEventAttributes.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String reason()
The reason provided for the termination.
public String details()
The details provided for the termination.
public ChildPolicy childPolicy()
The policy used for the child workflow executions of this workflow execution.
The supported child policies are:
TERMINATE
– The child executions are terminated.
REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording a
WorkflowExecutionCancelRequested
event in its history. It is up to the decider to take appropriate
actions when it receives an execution history with this event.
ABANDON
– No action is taken. The child executions continue to run.
If the service returns an enum value that is not available in the current SDK version, childPolicy
will
return ChildPolicy.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
childPolicyAsString()
.
The supported child policies are:
TERMINATE
– The child executions are terminated.
REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording a
WorkflowExecutionCancelRequested
event in its history. It is up to the decider to take
appropriate actions when it receives an execution history with this event.
ABANDON
– No action is taken. The child executions continue to run.
ChildPolicy
public String childPolicyAsString()
The policy used for the child workflow executions of this workflow execution.
The supported child policies are:
TERMINATE
– The child executions are terminated.
REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording a
WorkflowExecutionCancelRequested
event in its history. It is up to the decider to take appropriate
actions when it receives an execution history with this event.
ABANDON
– No action is taken. The child executions continue to run.
If the service returns an enum value that is not available in the current SDK version, childPolicy
will
return ChildPolicy.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
childPolicyAsString()
.
The supported child policies are:
TERMINATE
– The child executions are terminated.
REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording a
WorkflowExecutionCancelRequested
event in its history. It is up to the decider to take
appropriate actions when it receives an execution history with this event.
ABANDON
– No action is taken. The child executions continue to run.
ChildPolicy
public WorkflowExecutionTerminatedCause 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.
If the service returns an enum value that is not available in the current SDK version, cause
will return
WorkflowExecutionTerminatedCause.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from causeAsString()
.
WorkflowExecutionTerminatedCause
public String causeAsString()
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.
If the service returns an enum value that is not available in the current SDK version, cause
will return
WorkflowExecutionTerminatedCause.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from causeAsString()
.
WorkflowExecutionTerminatedCause
public WorkflowExecutionTerminatedEventAttributes.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<WorkflowExecutionTerminatedEventAttributes.Builder,WorkflowExecutionTerminatedEventAttributes>
public static WorkflowExecutionTerminatedEventAttributes.Builder builder()
public static Class<? extends WorkflowExecutionTerminatedEventAttributes.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.