Interface FlowNodeConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<FlowNodeConfiguration.Builder,
,FlowNodeConfiguration> SdkBuilder<FlowNodeConfiguration.Builder,
,FlowNodeConfiguration> SdkPojo
- Enclosing class:
FlowNodeConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondefault FlowNodeConfiguration.Builder
Contains configurations for an agent node in your flow.agent
(AgentFlowNodeConfiguration agent) Contains configurations for an agent node in your flow.default FlowNodeConfiguration.Builder
collector
(Consumer<CollectorFlowNodeConfiguration.Builder> collector) Contains configurations for a collector node in your flow.collector
(CollectorFlowNodeConfiguration collector) Contains configurations for a collector node in your flow.default FlowNodeConfiguration.Builder
condition
(Consumer<ConditionFlowNodeConfiguration.Builder> condition) Contains configurations for a Condition node in your flow.condition
(ConditionFlowNodeConfiguration condition) Contains configurations for a Condition node in your flow.default FlowNodeConfiguration.Builder
Contains configurations for an input flow node in your flow.input
(InputFlowNodeConfiguration input) Contains configurations for an input flow node in your flow.default FlowNodeConfiguration.Builder
Contains configurations for an iterator node in your flow.iterator
(IteratorFlowNodeConfiguration iterator) Contains configurations for an iterator node in your flow.default FlowNodeConfiguration.Builder
knowledgeBase
(Consumer<KnowledgeBaseFlowNodeConfiguration.Builder> knowledgeBase) Contains configurations for a knowledge base node in your flow.knowledgeBase
(KnowledgeBaseFlowNodeConfiguration knowledgeBase) Contains configurations for a knowledge base node in your flow.default FlowNodeConfiguration.Builder
lambdaFunction
(Consumer<LambdaFunctionFlowNodeConfiguration.Builder> lambdaFunction) Contains configurations for a Lambda function node in your flow.lambdaFunction
(LambdaFunctionFlowNodeConfiguration lambdaFunction) Contains configurations for a Lambda function node in your flow.default FlowNodeConfiguration.Builder
Contains configurations for a Lex node in your flow.Contains configurations for a Lex node in your flow.default FlowNodeConfiguration.Builder
Contains configurations for an output flow node in your flow.output
(OutputFlowNodeConfiguration output) Contains configurations for an output flow node in your flow.default FlowNodeConfiguration.Builder
Contains configurations for a prompt node in your flow.prompt
(PromptFlowNodeConfiguration prompt) Contains configurations for a prompt node in your flow.default FlowNodeConfiguration.Builder
retrieval
(Consumer<RetrievalFlowNodeConfiguration.Builder> retrieval) Contains configurations for a Retrieval node in your flow.retrieval
(RetrievalFlowNodeConfiguration retrieval) Contains configurations for a Retrieval node in your flow.default FlowNodeConfiguration.Builder
Contains configurations for a Storage node in your flow.storage
(StorageFlowNodeConfiguration storage) Contains configurations for a Storage node in your flow.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
agent
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agent
Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.
This is a convenience method that creates an instance of theAgentFlowNodeConfiguration.Builder
avoiding the need to create one manually viaAgentFlowNodeConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toagent(AgentFlowNodeConfiguration)
.- Parameters:
agent
- a consumer that will call methods onAgentFlowNodeConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
collector
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
collector
default FlowNodeConfiguration.Builder collector(Consumer<CollectorFlowNodeConfiguration.Builder> collector) Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs.
This is a convenience method that creates an instance of theCollectorFlowNodeConfiguration.Builder
avoiding the need to create one manually viaCollectorFlowNodeConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocollector(CollectorFlowNodeConfiguration)
.- Parameters:
collector
- a consumer that will call methods onCollectorFlowNodeConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
condition
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
condition
default FlowNodeConfiguration.Builder condition(Consumer<ConditionFlowNodeConfiguration.Builder> condition) Contains configurations for a Condition node in your flow. Defines conditions that lead to different branches of the flow.
This is a convenience method that creates an instance of theConditionFlowNodeConfiguration.Builder
avoiding the need to create one manually viaConditionFlowNodeConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocondition(ConditionFlowNodeConfiguration)
.- Parameters:
condition
- a consumer that will call methods onConditionFlowNodeConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
input
Contains configurations for an input flow node in your flow. The first node in the flow.
This is a convenience method that creates an instance of theinputs
can't be specified for this node.InputFlowNodeConfiguration.Builder
avoiding the need to create one manually viaInputFlowNodeConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinput(InputFlowNodeConfiguration)
.- Parameters:
input
- a consumer that will call methods onInputFlowNodeConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iterator
default FlowNodeConfiguration.Builder iterator(Consumer<IteratorFlowNodeConfiguration.Builder> 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.
This is a convenience method that creates an instance of theIteratorFlowNodeConfiguration.Builder
avoiding the need to create one manually viaIteratorFlowNodeConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toiterator(IteratorFlowNodeConfiguration)
.- Parameters:
iterator
- a consumer that will call methods onIteratorFlowNodeConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
knowledgeBase
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBase
default FlowNodeConfiguration.Builder knowledgeBase(Consumer<KnowledgeBaseFlowNodeConfiguration.Builder> knowledgeBase) Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response.
This is a convenience method that creates an instance of theKnowledgeBaseFlowNodeConfiguration.Builder
avoiding the need to create one manually viaKnowledgeBaseFlowNodeConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toknowledgeBase(KnowledgeBaseFlowNodeConfiguration)
.- Parameters:
knowledgeBase
- a consumer that will call methods onKnowledgeBaseFlowNodeConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lambdaFunction
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lambdaFunction
default FlowNodeConfiguration.Builder lambdaFunction(Consumer<LambdaFunctionFlowNodeConfiguration.Builder> lambdaFunction) Contains configurations for a Lambda function node in your flow. Invokes an Lambda function.
This is a convenience method that creates an instance of theLambdaFunctionFlowNodeConfiguration.Builder
avoiding the need to create one manually viaLambdaFunctionFlowNodeConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolambdaFunction(LambdaFunctionFlowNodeConfiguration)
.- Parameters:
lambdaFunction
- a consumer that will call methods onLambdaFunctionFlowNodeConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
This is a convenience method that creates an instance of theLexFlowNodeConfiguration.Builder
avoiding the need to create one manually viaLexFlowNodeConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolex(LexFlowNodeConfiguration)
.- Parameters:
lex
- a consumer that will call methods onLexFlowNodeConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
output
Contains configurations for an output flow node in your flow. The last node in the flow.
This is a convenience method that creates an instance of theoutputs
can't be specified for this node.OutputFlowNodeConfiguration.Builder
avoiding the need to create one manually viaOutputFlowNodeConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooutput(OutputFlowNodeConfiguration)
.- Parameters:
output
- a consumer that will call methods onOutputFlowNodeConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
This is a convenience method that creates an instance of thePromptFlowNodeConfiguration.Builder
avoiding the need to create one manually viaPromptFlowNodeConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprompt(PromptFlowNodeConfiguration)
.- Parameters:
prompt
- a consumer that will call methods onPromptFlowNodeConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
retrieval
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retrieval
default FlowNodeConfiguration.Builder retrieval(Consumer<RetrievalFlowNodeConfiguration.Builder> retrieval) Contains configurations for a Retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output.
This is a convenience method that creates an instance of theRetrievalFlowNodeConfiguration.Builder
avoiding the need to create one manually viaRetrievalFlowNodeConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toretrieval(RetrievalFlowNodeConfiguration)
.- Parameters:
retrieval
- a consumer that will call methods onRetrievalFlowNodeConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
storage
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storage
default FlowNodeConfiguration.Builder storage(Consumer<StorageFlowNodeConfiguration.Builder> storage) Contains configurations for a Storage node in your flow. Stores an input in an Amazon S3 location.
This is a convenience method that creates an instance of theStorageFlowNodeConfiguration.Builder
avoiding the need to create one manually viaStorageFlowNodeConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostorage(StorageFlowNodeConfiguration)
.- Parameters:
storage
- a consumer that will call methods onStorageFlowNodeConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-