Class FlowOutputEvent
java.lang.Object
software.amazon.awssdk.services.bedrockagentruntime.model.FlowOutputEvent
- All Implemented Interfaces:
Serializable,SdkPojo,FlowResponseStream,ToCopyableBuilder<FlowOutputEvent.Builder,FlowOutputEvent>
- Direct Known Subclasses:
DefaultFlowOutputEvent
@Generated("software.amazon.awssdk:codegen")
public class FlowOutputEvent
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<FlowOutputEvent.Builder,FlowOutputEvent>, FlowResponseStream
Contains information about an output from prompt flow invoction.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceprotected static classNested classes/interfaces inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.FlowResponseStream
FlowResponseStream.EventType -
Field Summary
Fields inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.FlowResponseStream
UNKNOWN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(InvokeFlowResponseHandler.Visitor visitor) Calls the appropriate visit method depending on the subtype ofFlowOutputEvent.static FlowOutputEvent.Builderbuilder()final FlowOutputContentcontent()The content in the output.final FlowOutputEventcopy(Consumer<? super FlowOutputEvent.Builder> modifier) final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringnodeName()The name of the flow output node that the output is from.final NodeTypenodeType()The type of the node that the output is from.final StringThe type of the node that the output is from.static Class<? extends FlowOutputEvent.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.FlowResponseStream
sdkEventType
-
Constructor Details
-
FlowOutputEvent
-
-
Method Details
-
content
The content in the output.
- Returns:
- The content in the output.
-
nodeName
The name of the flow output node that the output is from.
- Returns:
- The name of the flow output node that the output is from.
-
nodeType
The type of the node that the output is from.
If the service returns an enum value that is not available in the current SDK version,
nodeTypewill returnNodeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnodeTypeAsString().- Returns:
- The type of the node that the output is from.
- See Also:
-
nodeTypeAsString
The type of the node that the output is from.
If the service returns an enum value that is not available in the current SDK version,
nodeTypewill returnNodeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnodeTypeAsString().- Returns:
- The type of the node that the output is from.
- See Also:
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<FlowOutputEvent.Builder,FlowOutputEvent>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
copy
- Specified by:
copyin interfaceToCopyableBuilder<FlowOutputEvent.Builder,FlowOutputEvent>
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
accept
Calls the appropriate visit method depending on the subtype ofFlowOutputEvent.- Specified by:
acceptin interfaceFlowResponseStream- Parameters:
visitor- Visitor to invoke.
-