Class FlowNodeConfiguration
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<FlowNodeConfiguration.Builder,
FlowNodeConfiguration>
Contains configurations for a node in your flow. For more information, see Node types in a flow in the Amazon Bedrock User Guide.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static enum
-
Method Summary
Modifier and TypeMethodDescriptionagent()
Contains configurations for an agent node in your flow.builder()
Contains configurations for a collector node in your flow.Contains configurations for a condition node in your flow.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.static FlowNodeConfiguration
Create an instance of this class withagent()
initialized to the given value.static FlowNodeConfiguration
Create an instance of this class withagent()
initialized to the given value.static FlowNodeConfiguration
Create an instance of this class withcollector()
initialized to the given value.static FlowNodeConfiguration
fromCollector
(CollectorFlowNodeConfiguration collector) Create an instance of this class withcollector()
initialized to the given value.static FlowNodeConfiguration
Create an instance of this class withcondition()
initialized to the given value.static FlowNodeConfiguration
fromCondition
(ConditionFlowNodeConfiguration condition) Create an instance of this class withcondition()
initialized to the given value.static FlowNodeConfiguration
Create an instance of this class withinlineCode()
initialized to the given value.static FlowNodeConfiguration
fromInlineCode
(InlineCodeFlowNodeConfiguration inlineCode) Create an instance of this class withinlineCode()
initialized to the given value.static FlowNodeConfiguration
Create an instance of this class withinput()
initialized to the given value.static FlowNodeConfiguration
Create an instance of this class withinput()
initialized to the given value.static FlowNodeConfiguration
Create an instance of this class withiterator()
initialized to the given value.static FlowNodeConfiguration
fromIterator
(IteratorFlowNodeConfiguration iterator) Create an instance of this class withiterator()
initialized to the given value.static FlowNodeConfiguration
fromKnowledgeBase
(Consumer<KnowledgeBaseFlowNodeConfiguration.Builder> knowledgeBase) Create an instance of this class withknowledgeBase()
initialized to the given value.static FlowNodeConfiguration
fromKnowledgeBase
(KnowledgeBaseFlowNodeConfiguration knowledgeBase) Create an instance of this class withknowledgeBase()
initialized to the given value.static FlowNodeConfiguration
fromLambdaFunction
(Consumer<LambdaFunctionFlowNodeConfiguration.Builder> lambdaFunction) Create an instance of this class withlambdaFunction()
initialized to the given value.static FlowNodeConfiguration
fromLambdaFunction
(LambdaFunctionFlowNodeConfiguration lambdaFunction) Create an instance of this class withlambdaFunction()
initialized to the given value.static FlowNodeConfiguration
Create an instance of this class withlex()
initialized to the given value.static FlowNodeConfiguration
Create an instance of this class withlex()
initialized to the given value.static FlowNodeConfiguration
Create an instance of this class withloop()
initialized to the given value.static FlowNodeConfiguration
Create an instance of this class withloop()
initialized to the given value.static FlowNodeConfiguration
fromLoopController
(Consumer<LoopControllerFlowNodeConfiguration.Builder> loopController) Create an instance of this class withloopController()
initialized to the given value.static FlowNodeConfiguration
fromLoopController
(LoopControllerFlowNodeConfiguration loopController) Create an instance of this class withloopController()
initialized to the given value.static FlowNodeConfiguration
Create an instance of this class withloopInput()
initialized to the given value.static FlowNodeConfiguration
fromLoopInput
(LoopInputFlowNodeConfiguration loopInput) Create an instance of this class withloopInput()
initialized to the given value.static FlowNodeConfiguration
Create an instance of this class withoutput()
initialized to the given value.static FlowNodeConfiguration
Create an instance of this class withoutput()
initialized to the given value.static FlowNodeConfiguration
Create an instance of this class withprompt()
initialized to the given value.static FlowNodeConfiguration
Create an instance of this class withprompt()
initialized to the given value.static FlowNodeConfiguration
Create an instance of this class withretrieval()
initialized to the given value.static FlowNodeConfiguration
fromRetrieval
(RetrievalFlowNodeConfiguration retrieval) Create an instance of this class withretrieval()
initialized to the given value.static FlowNodeConfiguration
Create an instance of this class withstorage()
initialized to the given value.static FlowNodeConfiguration
fromStorage
(StorageFlowNodeConfiguration storage) Create an instance of this class withstorage()
initialized to the given value.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
Contains configurations for an inline code node in your flow.input()
Contains configurations for an input flow node in your flow.iterator()
Contains configurations for an iterator node in your flow.Contains configurations for a knowledge base node in your flow.Contains configurations for a Lambda function node in your flow.final LexFlowNodeConfiguration
lex()
Contains configurations for a Lex node in your flow.loop()
Contains configurations for a DoWhile loop in your flow.Contains controller node configurations for a DoWhile loop in your flow.Contains input node configurations for a DoWhile loop in your flow.output()
Contains configurations for an output flow node in your flow.prompt()
Contains configurations for a prompt node in your flow.Contains configurations for a retrieval node in your flow.static Class
<? extends FlowNodeConfiguration.Builder> storage()
Contains configurations for a storage node in your flow.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
-
agent
Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.
- Returns:
- Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.
-
collector
Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs.
- Returns:
- Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs.
-
condition
Contains configurations for a condition node in your flow. Defines conditions that lead to different branches of the flow.
- Returns:
- Contains configurations for a condition node in your flow. Defines conditions that lead to different branches of the flow.
-
inlineCode
Contains configurations for an inline code node in your flow. Inline code nodes let you write and execute code directly within your flow, enabling data transformations, custom logic, and integrations without needing an external Lambda function.
- Returns:
- Contains configurations for an inline code node in your flow. Inline code nodes let you write and execute code directly within your flow, enabling data transformations, custom logic, and integrations without needing an external Lambda function.
-
input
Contains configurations for an input flow node in your flow. The first node in the flow.
inputs
can't be specified for this node.- Returns:
- Contains configurations for an input flow node in your flow. The first node in the flow.
inputs
can't be specified for this node.
-
iterator
Contains configurations for an iterator node in your flow. Takes an input that is an array and iteratively sends each item of the array as an output to the following node. The size of the array is also returned in the output.
The output flow node at the end of the flow iteration will return a response for each member of the array. To return only one response, you can include a collector node downstream from the iterator node.
- Returns:
- Contains configurations for an iterator node in your flow. Takes an input that is an array and
iteratively sends each item of the array as an output to the following node. The size of the array is
also returned in the output.
The output flow node at the end of the flow iteration will return a response for each member of the array. To return only one response, you can include a collector node downstream from the iterator node.
-
knowledgeBase
Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response.
- Returns:
- Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response.
-
lambdaFunction
Contains configurations for a Lambda function node in your flow. Invokes an Lambda function.
- Returns:
- Contains configurations for a Lambda function node in your flow. Invokes an Lambda function.
-
lex
Contains configurations for a Lex node in your flow. Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the output.
- Returns:
- Contains configurations for a Lex node in your flow. Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the output.
-
loop
Contains configurations for a DoWhile loop in your flow.
- Returns:
- Contains configurations for a DoWhile loop in your flow.
-
loopController
Contains controller node configurations for a DoWhile loop in your flow.
- Returns:
- Contains controller node configurations for a DoWhile loop in your flow.
-
loopInput
Contains input node configurations for a DoWhile loop in your flow.
- Returns:
- Contains input node configurations for a DoWhile loop in your flow.
-
output
Contains configurations for an output flow node in your flow. The last node in the flow.
outputs
can't be specified for this node.- Returns:
- Contains configurations for an output flow node in your flow. The last node in the flow.
outputs
can't be specified for this node.
-
prompt
Contains configurations for a prompt node in your flow. Runs a prompt and generates the model response as the output. You can use a prompt from Prompt management or you can configure one in this node.
- Returns:
- Contains configurations for a prompt node in your flow. Runs a prompt and generates the model response as the output. You can use a prompt from Prompt management or you can configure one in this node.
-
retrieval
Contains configurations for a retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output.
- Returns:
- Contains configurations for a retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output.
-
storage
Contains configurations for a storage node in your flow. Stores an input in an Amazon S3 location.
- Returns:
- Contains configurations for a storage node in your flow. Stores an input in an Amazon S3 location.
-
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<FlowNodeConfiguration.Builder,
FlowNodeConfiguration> - 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
-
fromAgent
Create an instance of this class withagent()
initialized to the given value.Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.
- Parameters:
agent
- Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.
-
fromAgent
Create an instance of this class withagent()
initialized to the given value.Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.
- Parameters:
agent
- Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.
-
fromCollector
Create an instance of this class withcollector()
initialized to the given value.Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs.
- Parameters:
collector
- Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs.
-
fromCollector
public static FlowNodeConfiguration fromCollector(Consumer<CollectorFlowNodeConfiguration.Builder> collector) Create an instance of this class withcollector()
initialized to the given value.Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs.
- Parameters:
collector
- Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs.
-
fromCondition
Create an instance of this class withcondition()
initialized to the given value.Contains configurations for a condition node in your flow. Defines conditions that lead to different branches of the flow.
- Parameters:
condition
- Contains configurations for a condition node in your flow. Defines conditions that lead to different branches of the flow.
-
fromCondition
public static FlowNodeConfiguration fromCondition(Consumer<ConditionFlowNodeConfiguration.Builder> condition) Create an instance of this class withcondition()
initialized to the given value.Contains configurations for a condition node in your flow. Defines conditions that lead to different branches of the flow.
- Parameters:
condition
- Contains configurations for a condition node in your flow. Defines conditions that lead to different branches of the flow.
-
fromInlineCode
Create an instance of this class withinlineCode()
initialized to the given value.Contains configurations for an inline code node in your flow. Inline code nodes let you write and execute code directly within your flow, enabling data transformations, custom logic, and integrations without needing an external Lambda function.
- Parameters:
inlineCode
- Contains configurations for an inline code node in your flow. Inline code nodes let you write and execute code directly within your flow, enabling data transformations, custom logic, and integrations without needing an external Lambda function.
-
fromInlineCode
public static FlowNodeConfiguration fromInlineCode(Consumer<InlineCodeFlowNodeConfiguration.Builder> inlineCode) Create an instance of this class withinlineCode()
initialized to the given value.Contains configurations for an inline code node in your flow. Inline code nodes let you write and execute code directly within your flow, enabling data transformations, custom logic, and integrations without needing an external Lambda function.
- Parameters:
inlineCode
- Contains configurations for an inline code node in your flow. Inline code nodes let you write and execute code directly within your flow, enabling data transformations, custom logic, and integrations without needing an external Lambda function.
-
fromInput
Create an instance of this class withinput()
initialized to the given value.Contains configurations for an input flow node in your flow. The first node in the flow.
inputs
can't be specified for this node.- Parameters:
input
- Contains configurations for an input flow node in your flow. The first node in the flow.inputs
can't be specified for this node.
-
fromInput
Create an instance of this class withinput()
initialized to the given value.Contains configurations for an input flow node in your flow. The first node in the flow.
inputs
can't be specified for this node.- Parameters:
input
- Contains configurations for an input flow node in your flow. The first node in the flow.inputs
can't be specified for this node.
-
fromIterator
Create an instance of this class withiterator()
initialized to the given value.Contains configurations for an iterator node in your flow. Takes an input that is an array and iteratively sends each item of the array as an output to the following node. The size of the array is also returned in the output.
The output flow node at the end of the flow iteration will return a response for each member of the array. To return only one response, you can include a collector node downstream from the iterator node.
- Parameters:
iterator
- Contains configurations for an iterator node in your flow. Takes an input that is an array and iteratively sends each item of the array as an output to the following node. The size of the array is also returned in the output.The output flow node at the end of the flow iteration will return a response for each member of the array. To return only one response, you can include a collector node downstream from the iterator node.
-
fromIterator
public static FlowNodeConfiguration fromIterator(Consumer<IteratorFlowNodeConfiguration.Builder> iterator) Create an instance of this class withiterator()
initialized to the given value.Contains configurations for an iterator node in your flow. Takes an input that is an array and iteratively sends each item of the array as an output to the following node. The size of the array is also returned in the output.
The output flow node at the end of the flow iteration will return a response for each member of the array. To return only one response, you can include a collector node downstream from the iterator node.
- Parameters:
iterator
- Contains configurations for an iterator node in your flow. Takes an input that is an array and iteratively sends each item of the array as an output to the following node. The size of the array is also returned in the output.The output flow node at the end of the flow iteration will return a response for each member of the array. To return only one response, you can include a collector node downstream from the iterator node.
-
fromKnowledgeBase
public static FlowNodeConfiguration fromKnowledgeBase(KnowledgeBaseFlowNodeConfiguration knowledgeBase) Create an instance of this class withknowledgeBase()
initialized to the given value.Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response.
- Parameters:
knowledgeBase
- Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response.
-
fromKnowledgeBase
public static FlowNodeConfiguration fromKnowledgeBase(Consumer<KnowledgeBaseFlowNodeConfiguration.Builder> knowledgeBase) Create an instance of this class withknowledgeBase()
initialized to the given value.Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response.
- Parameters:
knowledgeBase
- Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response.
-
fromLambdaFunction
public static FlowNodeConfiguration fromLambdaFunction(LambdaFunctionFlowNodeConfiguration lambdaFunction) Create an instance of this class withlambdaFunction()
initialized to the given value.Contains configurations for a Lambda function node in your flow. Invokes an Lambda function.
- Parameters:
lambdaFunction
- Contains configurations for a Lambda function node in your flow. Invokes an Lambda function.
-
fromLambdaFunction
public static FlowNodeConfiguration fromLambdaFunction(Consumer<LambdaFunctionFlowNodeConfiguration.Builder> lambdaFunction) Create an instance of this class withlambdaFunction()
initialized to the given value.Contains configurations for a Lambda function node in your flow. Invokes an Lambda function.
- Parameters:
lambdaFunction
- Contains configurations for a Lambda function node in your flow. Invokes an Lambda function.
-
fromLex
Create an instance of this class withlex()
initialized to the given value.Contains configurations for a Lex node in your flow. Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the output.
- Parameters:
lex
- Contains configurations for a Lex node in your flow. Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the output.
-
fromLex
Create an instance of this class withlex()
initialized to the given value.Contains configurations for a Lex node in your flow. Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the output.
- Parameters:
lex
- Contains configurations for a Lex node in your flow. Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the output.
-
fromLoop
Create an instance of this class withloop()
initialized to the given value.Contains configurations for a DoWhile loop in your flow.
- Parameters:
loop
- Contains configurations for a DoWhile loop in your flow.
-
fromLoop
Create an instance of this class withloop()
initialized to the given value.Contains configurations for a DoWhile loop in your flow.
- Parameters:
loop
- Contains configurations for a DoWhile loop in your flow.
-
fromLoopController
public static FlowNodeConfiguration fromLoopController(LoopControllerFlowNodeConfiguration loopController) Create an instance of this class withloopController()
initialized to the given value.Contains controller node configurations for a DoWhile loop in your flow.
- Parameters:
loopController
- Contains controller node configurations for a DoWhile loop in your flow.
-
fromLoopController
public static FlowNodeConfiguration fromLoopController(Consumer<LoopControllerFlowNodeConfiguration.Builder> loopController) Create an instance of this class withloopController()
initialized to the given value.Contains controller node configurations for a DoWhile loop in your flow.
- Parameters:
loopController
- Contains controller node configurations for a DoWhile loop in your flow.
-
fromLoopInput
Create an instance of this class withloopInput()
initialized to the given value.Contains input node configurations for a DoWhile loop in your flow.
- Parameters:
loopInput
- Contains input node configurations for a DoWhile loop in your flow.
-
fromLoopInput
public static FlowNodeConfiguration fromLoopInput(Consumer<LoopInputFlowNodeConfiguration.Builder> loopInput) Create an instance of this class withloopInput()
initialized to the given value.Contains input node configurations for a DoWhile loop in your flow.
- Parameters:
loopInput
- Contains input node configurations for a DoWhile loop in your flow.
-
fromOutput
Create an instance of this class withoutput()
initialized to the given value.Contains configurations for an output flow node in your flow. The last node in the flow.
outputs
can't be specified for this node.- Parameters:
output
- Contains configurations for an output flow node in your flow. The last node in the flow.outputs
can't be specified for this node.
-
fromOutput
public static FlowNodeConfiguration fromOutput(Consumer<OutputFlowNodeConfiguration.Builder> output) Create an instance of this class withoutput()
initialized to the given value.Contains configurations for an output flow node in your flow. The last node in the flow.
outputs
can't be specified for this node.- Parameters:
output
- Contains configurations for an output flow node in your flow. The last node in the flow.outputs
can't be specified for this node.
-
fromPrompt
Create an instance of this class withprompt()
initialized to the given value.Contains configurations for a prompt node in your flow. Runs a prompt and generates the model response as the output. You can use a prompt from Prompt management or you can configure one in this node.
- Parameters:
prompt
- Contains configurations for a prompt node in your flow. Runs a prompt and generates the model response as the output. You can use a prompt from Prompt management or you can configure one in this node.
-
fromPrompt
public static FlowNodeConfiguration fromPrompt(Consumer<PromptFlowNodeConfiguration.Builder> prompt) Create an instance of this class withprompt()
initialized to the given value.Contains configurations for a prompt node in your flow. Runs a prompt and generates the model response as the output. You can use a prompt from Prompt management or you can configure one in this node.
- Parameters:
prompt
- Contains configurations for a prompt node in your flow. Runs a prompt and generates the model response as the output. You can use a prompt from Prompt management or you can configure one in this node.
-
fromRetrieval
Create an instance of this class withretrieval()
initialized to the given value.Contains configurations for a retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output.
- Parameters:
retrieval
- Contains configurations for a retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output.
-
fromRetrieval
public static FlowNodeConfiguration fromRetrieval(Consumer<RetrievalFlowNodeConfiguration.Builder> retrieval) Create an instance of this class withretrieval()
initialized to the given value.Contains configurations for a retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output.
- Parameters:
retrieval
- Contains configurations for a retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output.
-
fromStorage
Create an instance of this class withstorage()
initialized to the given value.Contains configurations for a storage node in your flow. Stores an input in an Amazon S3 location.
- Parameters:
storage
- Contains configurations for a storage node in your flow. Stores an input in an Amazon S3 location.
-
fromStorage
public static FlowNodeConfiguration fromStorage(Consumer<StorageFlowNodeConfiguration.Builder> storage) Create an instance of this class withstorage()
initialized to the given value.Contains configurations for a storage node in your flow. Stores an input in an Amazon S3 location.
- Parameters:
storage
- Contains configurations for a storage node in your flow. Stores an input in an Amazon S3 location.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beFlowNodeConfiguration.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 beFlowNodeConfiguration.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.
-