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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFlowOutputEvent.Builderprotected static classFlowOutputEvent.BuilderImpl-
Nested 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 Modifier Constructor Description protectedFlowOutputEvent(FlowOutputEvent.BuilderImpl builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(InvokeFlowResponseHandler.Visitor visitor)Calls the appropriate visit method depending on the subtype ofFlowOutputEvent.static FlowOutputEvent.Builderbuilder()FlowOutputContentcontent()The content in the output.FlowOutputEventcopy(Consumer<? super FlowOutputEvent.Builder> modifier)booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringnodeName()The name of the flow output node that the output is from.NodeTypenodeType()The type of the node that the output is from.StringnodeTypeAsString()The type of the node that the output is from.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends FlowOutputEvent.Builder>serializableBuilderClass()FlowOutputEvent.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.FlowResponseStream
sdkEventType
-
-
-
-
Constructor Detail
-
FlowOutputEvent
protected FlowOutputEvent(FlowOutputEvent.BuilderImpl builder)
-
-
Method Detail
-
content
public final FlowOutputContent content()
The content in the output.
- Returns:
- The content in the output.
-
nodeName
public final String 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
public final NodeType 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:
NodeType
-
nodeTypeAsString
public final String 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:
NodeType
-
toBuilder
public FlowOutputEvent.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<FlowOutputEvent.Builder,FlowOutputEvent>
-
builder
public static FlowOutputEvent.Builder builder()
-
serializableBuilderClass
public static Class<? extends FlowOutputEvent.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
copy
public final FlowOutputEvent copy(Consumer<? super FlowOutputEvent.Builder> modifier)
- Specified by:
copyin interfaceToCopyableBuilder<FlowOutputEvent.Builder,FlowOutputEvent>
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
accept
public void accept(InvokeFlowResponseHandler.Visitor visitor)
Calls the appropriate visit method depending on the subtype ofFlowOutputEvent.- Specified by:
acceptin interfaceFlowResponseStream- Parameters:
visitor- Visitor to invoke.
-
-