Class FlowExecutionEvent
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<FlowExecutionEvent.Builder,
FlowExecutionEvent>
Represents an event that occurred during an flow execution. This is a union type that can contain one of several event types, such as node input and output events; flow input and output events; condition node result events, or failure events.
Flow executions is in preview release for Amazon Bedrock and is subject to change.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static enum
-
Method Summary
Modifier and TypeMethodDescriptionstatic FlowExecutionEvent.Builder
builder()
final ConditionResultEvent
Contains information about a condition evaluation result during the flow execution.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final FlowFailureEvent
Contains information about a failure that occurred at the flow level during execution.final FlowExecutionInputEvent
Contains information about the inputs provided to the flow at the start of execution.final FlowExecutionOutputEvent
Contains information about the outputs produced by the flow at the end of execution.static FlowExecutionEvent
fromConditionResultEvent
(Consumer<ConditionResultEvent.Builder> conditionResultEvent) Create an instance of this class withconditionResultEvent()
initialized to the given value.static FlowExecutionEvent
fromConditionResultEvent
(ConditionResultEvent conditionResultEvent) Create an instance of this class withconditionResultEvent()
initialized to the given value.static FlowExecutionEvent
fromFlowFailureEvent
(Consumer<FlowFailureEvent.Builder> flowFailureEvent) Create an instance of this class withflowFailureEvent()
initialized to the given value.static FlowExecutionEvent
fromFlowFailureEvent
(FlowFailureEvent flowFailureEvent) Create an instance of this class withflowFailureEvent()
initialized to the given value.static FlowExecutionEvent
fromFlowInputEvent
(Consumer<FlowExecutionInputEvent.Builder> flowInputEvent) Create an instance of this class withflowInputEvent()
initialized to the given value.static FlowExecutionEvent
fromFlowInputEvent
(FlowExecutionInputEvent flowInputEvent) Create an instance of this class withflowInputEvent()
initialized to the given value.static FlowExecutionEvent
fromFlowOutputEvent
(Consumer<FlowExecutionOutputEvent.Builder> flowOutputEvent) Create an instance of this class withflowOutputEvent()
initialized to the given value.static FlowExecutionEvent
fromFlowOutputEvent
(FlowExecutionOutputEvent flowOutputEvent) Create an instance of this class withflowOutputEvent()
initialized to the given value.static FlowExecutionEvent
fromNodeFailureEvent
(Consumer<NodeFailureEvent.Builder> nodeFailureEvent) Create an instance of this class withnodeFailureEvent()
initialized to the given value.static FlowExecutionEvent
fromNodeFailureEvent
(NodeFailureEvent nodeFailureEvent) Create an instance of this class withnodeFailureEvent()
initialized to the given value.static FlowExecutionEvent
fromNodeInputEvent
(Consumer<NodeInputEvent.Builder> nodeInputEvent) Create an instance of this class withnodeInputEvent()
initialized to the given value.static FlowExecutionEvent
fromNodeInputEvent
(NodeInputEvent nodeInputEvent) Create an instance of this class withnodeInputEvent()
initialized to the given value.static FlowExecutionEvent
fromNodeOutputEvent
(Consumer<NodeOutputEvent.Builder> nodeOutputEvent) Create an instance of this class withnodeOutputEvent()
initialized to the given value.static FlowExecutionEvent
fromNodeOutputEvent
(NodeOutputEvent nodeOutputEvent) Create an instance of this class withnodeOutputEvent()
initialized to the given value.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final NodeFailureEvent
Contains information about a failure that occurred at a specific node during execution.final NodeInputEvent
Contains information about the inputs provided to a specific node during execution.final NodeOutputEvent
Contains information about the outputs produced by a specific node during execution.static Class
<? extends FlowExecutionEvent.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.type()
Retrieve an enum value representing which member of this object is populated.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
conditionResultEvent
Contains information about a condition evaluation result during the flow execution. This event is generated when a condition node in the flow evaluates its conditions.
- Returns:
- Contains information about a condition evaluation result during the flow execution. This event is generated when a condition node in the flow evaluates its conditions.
-
flowFailureEvent
Contains information about a failure that occurred at the flow level during execution.
- Returns:
- Contains information about a failure that occurred at the flow level during execution.
-
flowInputEvent
Contains information about the inputs provided to the flow at the start of execution.
- Returns:
- Contains information about the inputs provided to the flow at the start of execution.
-
flowOutputEvent
Contains information about the outputs produced by the flow at the end of execution.
- Returns:
- Contains information about the outputs produced by the flow at the end of execution.
-
nodeFailureEvent
Contains information about a failure that occurred at a specific node during execution.
- Returns:
- Contains information about a failure that occurred at a specific node during execution.
-
nodeInputEvent
Contains information about the inputs provided to a specific node during execution.
- Returns:
- Contains information about the inputs provided to a specific node during execution.
-
nodeOutputEvent
Contains information about the outputs produced by a specific node during execution.
- Returns:
- Contains information about the outputs produced by a specific node during execution.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<FlowExecutionEvent.Builder,
FlowExecutionEvent> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
fromConditionResultEvent
public static FlowExecutionEvent fromConditionResultEvent(ConditionResultEvent conditionResultEvent) Create an instance of this class withconditionResultEvent()
initialized to the given value.Contains information about a condition evaluation result during the flow execution. This event is generated when a condition node in the flow evaluates its conditions.
- Parameters:
conditionResultEvent
- Contains information about a condition evaluation result during the flow execution. This event is generated when a condition node in the flow evaluates its conditions.
-
fromConditionResultEvent
public static FlowExecutionEvent fromConditionResultEvent(Consumer<ConditionResultEvent.Builder> conditionResultEvent) Create an instance of this class withconditionResultEvent()
initialized to the given value.Contains information about a condition evaluation result during the flow execution. This event is generated when a condition node in the flow evaluates its conditions.
- Parameters:
conditionResultEvent
- Contains information about a condition evaluation result during the flow execution. This event is generated when a condition node in the flow evaluates its conditions.
-
fromFlowFailureEvent
Create an instance of this class withflowFailureEvent()
initialized to the given value.Contains information about a failure that occurred at the flow level during execution.
- Parameters:
flowFailureEvent
- Contains information about a failure that occurred at the flow level during execution.
-
fromFlowFailureEvent
public static FlowExecutionEvent fromFlowFailureEvent(Consumer<FlowFailureEvent.Builder> flowFailureEvent) Create an instance of this class withflowFailureEvent()
initialized to the given value.Contains information about a failure that occurred at the flow level during execution.
- Parameters:
flowFailureEvent
- Contains information about a failure that occurred at the flow level during execution.
-
fromFlowInputEvent
Create an instance of this class withflowInputEvent()
initialized to the given value.Contains information about the inputs provided to the flow at the start of execution.
- Parameters:
flowInputEvent
- Contains information about the inputs provided to the flow at the start of execution.
-
fromFlowInputEvent
public static FlowExecutionEvent fromFlowInputEvent(Consumer<FlowExecutionInputEvent.Builder> flowInputEvent) Create an instance of this class withflowInputEvent()
initialized to the given value.Contains information about the inputs provided to the flow at the start of execution.
- Parameters:
flowInputEvent
- Contains information about the inputs provided to the flow at the start of execution.
-
fromFlowOutputEvent
Create an instance of this class withflowOutputEvent()
initialized to the given value.Contains information about the outputs produced by the flow at the end of execution.
- Parameters:
flowOutputEvent
- Contains information about the outputs produced by the flow at the end of execution.
-
fromFlowOutputEvent
public static FlowExecutionEvent fromFlowOutputEvent(Consumer<FlowExecutionOutputEvent.Builder> flowOutputEvent) Create an instance of this class withflowOutputEvent()
initialized to the given value.Contains information about the outputs produced by the flow at the end of execution.
- Parameters:
flowOutputEvent
- Contains information about the outputs produced by the flow at the end of execution.
-
fromNodeFailureEvent
Create an instance of this class withnodeFailureEvent()
initialized to the given value.Contains information about a failure that occurred at a specific node during execution.
- Parameters:
nodeFailureEvent
- Contains information about a failure that occurred at a specific node during execution.
-
fromNodeFailureEvent
public static FlowExecutionEvent fromNodeFailureEvent(Consumer<NodeFailureEvent.Builder> nodeFailureEvent) Create an instance of this class withnodeFailureEvent()
initialized to the given value.Contains information about a failure that occurred at a specific node during execution.
- Parameters:
nodeFailureEvent
- Contains information about a failure that occurred at a specific node during execution.
-
fromNodeInputEvent
Create an instance of this class withnodeInputEvent()
initialized to the given value.Contains information about the inputs provided to a specific node during execution.
- Parameters:
nodeInputEvent
- Contains information about the inputs provided to a specific node during execution.
-
fromNodeInputEvent
public static FlowExecutionEvent fromNodeInputEvent(Consumer<NodeInputEvent.Builder> nodeInputEvent) Create an instance of this class withnodeInputEvent()
initialized to the given value.Contains information about the inputs provided to a specific node during execution.
- Parameters:
nodeInputEvent
- Contains information about the inputs provided to a specific node during execution.
-
fromNodeOutputEvent
Create an instance of this class withnodeOutputEvent()
initialized to the given value.Contains information about the outputs produced by a specific node during execution.
- Parameters:
nodeOutputEvent
- Contains information about the outputs produced by a specific node during execution.
-
fromNodeOutputEvent
public static FlowExecutionEvent fromNodeOutputEvent(Consumer<NodeOutputEvent.Builder> nodeOutputEvent) Create an instance of this class withnodeOutputEvent()
initialized to the given value.Contains information about the outputs produced by a specific node during execution.
- Parameters:
nodeOutputEvent
- Contains information about the outputs produced by a specific node during execution.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beFlowExecutionEvent.Type.UNKNOWN_TO_SDK_VERSION
if the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beFlowExecutionEvent.Type.UNKNOWN_TO_SDK_VERSION
if zero members are set, andnull
if more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-