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 interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionstatic FlowExecutionEvent.Builderbuilder()final ConditionResultEventContains information about a condition evaluation result during the flow execution.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final FlowFailureEventContains information about a failure that occurred at the flow level during execution.final FlowExecutionInputEventContains information about the inputs provided to the flow at the start of execution.final FlowExecutionOutputEventContains information about the outputs produced by the flow at the end of execution.static FlowExecutionEventfromConditionResultEvent(Consumer<ConditionResultEvent.Builder> conditionResultEvent) Create an instance of this class withconditionResultEvent()initialized to the given value.static FlowExecutionEventfromConditionResultEvent(ConditionResultEvent conditionResultEvent) Create an instance of this class withconditionResultEvent()initialized to the given value.static FlowExecutionEventfromFlowFailureEvent(Consumer<FlowFailureEvent.Builder> flowFailureEvent) Create an instance of this class withflowFailureEvent()initialized to the given value.static FlowExecutionEventfromFlowFailureEvent(FlowFailureEvent flowFailureEvent) Create an instance of this class withflowFailureEvent()initialized to the given value.static FlowExecutionEventfromFlowInputEvent(Consumer<FlowExecutionInputEvent.Builder> flowInputEvent) Create an instance of this class withflowInputEvent()initialized to the given value.static FlowExecutionEventfromFlowInputEvent(FlowExecutionInputEvent flowInputEvent) Create an instance of this class withflowInputEvent()initialized to the given value.static FlowExecutionEventfromFlowOutputEvent(Consumer<FlowExecutionOutputEvent.Builder> flowOutputEvent) Create an instance of this class withflowOutputEvent()initialized to the given value.static FlowExecutionEventfromFlowOutputEvent(FlowExecutionOutputEvent flowOutputEvent) Create an instance of this class withflowOutputEvent()initialized to the given value.static FlowExecutionEventfromNodeActionEvent(Consumer<NodeActionEvent.Builder> nodeActionEvent) Create an instance of this class withnodeActionEvent()initialized to the given value.static FlowExecutionEventfromNodeActionEvent(NodeActionEvent nodeActionEvent) Create an instance of this class withnodeActionEvent()initialized to the given value.static FlowExecutionEventfromNodeDependencyEvent(Consumer<NodeDependencyEvent.Builder> nodeDependencyEvent) Create an instance of this class withnodeDependencyEvent()initialized to the given value.static FlowExecutionEventfromNodeDependencyEvent(NodeDependencyEvent nodeDependencyEvent) Create an instance of this class withnodeDependencyEvent()initialized to the given value.static FlowExecutionEventfromNodeFailureEvent(Consumer<NodeFailureEvent.Builder> nodeFailureEvent) Create an instance of this class withnodeFailureEvent()initialized to the given value.static FlowExecutionEventfromNodeFailureEvent(NodeFailureEvent nodeFailureEvent) Create an instance of this class withnodeFailureEvent()initialized to the given value.static FlowExecutionEventfromNodeInputEvent(Consumer<NodeInputEvent.Builder> nodeInputEvent) Create an instance of this class withnodeInputEvent()initialized to the given value.static FlowExecutionEventfromNodeInputEvent(NodeInputEvent nodeInputEvent) Create an instance of this class withnodeInputEvent()initialized to the given value.static FlowExecutionEventfromNodeOutputEvent(Consumer<NodeOutputEvent.Builder> nodeOutputEvent) Create an instance of this class withnodeOutputEvent()initialized to the given value.static FlowExecutionEventfromNodeOutputEvent(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 inthashCode()final NodeActionEventContains information about an action (operation) called by a node during execution.final NodeDependencyEventContains information about an internal trace of a specific node during execution.final NodeFailureEventContains information about a failure that occurred at a specific node during execution.final NodeInputEventContains information about the inputs provided to a specific node during execution.final NodeOutputEventContains 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 StringtoString()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
-
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.
-
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.
-
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.
-
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.
-
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.
-
nodeActionEvent
Contains information about an action (operation) called by a node during execution.
- Returns:
- Contains information about an action (operation) called by a node during execution.
-
nodeDependencyEvent
Contains information about an internal trace of a specific node during execution.
- Returns:
- Contains information about an internal trace of a specific node during execution.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<FlowExecutionEvent.Builder,FlowExecutionEvent> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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
-
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.
-
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.
-
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.
-
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.
-
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.
-
fromNodeActionEvent
Create an instance of this class withnodeActionEvent()initialized to the given value.Contains information about an action (operation) called by a node during execution.
- Parameters:
nodeActionEvent- Contains information about an action (operation) called by a node during execution.
-
fromNodeActionEvent
public static FlowExecutionEvent fromNodeActionEvent(Consumer<NodeActionEvent.Builder> nodeActionEvent) Create an instance of this class withnodeActionEvent()initialized to the given value.Contains information about an action (operation) called by a node during execution.
- Parameters:
nodeActionEvent- Contains information about an action (operation) called by a node during execution.
-
fromNodeDependencyEvent
Create an instance of this class withnodeDependencyEvent()initialized to the given value.Contains information about an internal trace of a specific node during execution.
- Parameters:
nodeDependencyEvent- Contains information about an internal trace of a specific node during execution.
-
fromNodeDependencyEvent
public static FlowExecutionEvent fromNodeDependencyEvent(Consumer<NodeDependencyEvent.Builder> nodeDependencyEvent) Create an instance of this class withnodeDependencyEvent()initialized to the given value.Contains information about an internal trace of a specific node during execution.
- Parameters:
nodeDependencyEvent- Contains information about an internal trace of 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_VERSIONif 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_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-