Class CfnFlow.FlowNodeConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlow.FlowNodeConfigurationProperty>
- Enclosing interface:
CfnFlow.FlowNodeConfigurationProperty
@Stability(Stable)
public static final class CfnFlow.FlowNodeConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlow.FlowNodeConfigurationProperty>
A builder for
CfnFlow.FlowNodeConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionagent
(IResolvable agent) Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getAgent()
Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getAgent()
build()
Builds the configured instance.Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getCollector()
condition
(IResolvable condition) Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getCondition()
Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getCondition()
Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getInput()
Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getIterator()
knowledgeBase
(IResolvable knowledgeBase) Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getKnowledgeBase()
knowledgeBase
(CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty knowledgeBase) Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getKnowledgeBase()
lambdaFunction
(IResolvable lambdaFunction) Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getLambdaFunction()
lambdaFunction
(CfnFlow.LambdaFunctionFlowNodeConfigurationProperty lambdaFunction) Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getLambdaFunction()
lex
(IResolvable lex) Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getLex()
Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getLex()
Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getOutput()
prompt
(IResolvable prompt) Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getPrompt()
Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getPrompt()
retrieval
(IResolvable retrieval) Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getRetrieval()
Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getRetrieval()
storage
(IResolvable storage) Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getStorage()
Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getStorage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
agent
Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getAgent()
- Parameters:
agent
- Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.- Returns:
this
-
agent
@Stability(Stable) public CfnFlow.FlowNodeConfigurationProperty.Builder agent(CfnFlow.AgentFlowNodeConfigurationProperty agent) Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getAgent()
- Parameters:
agent
- Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.- Returns:
this
-
collector
Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getCollector()
- 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:
this
-
condition
@Stability(Stable) public CfnFlow.FlowNodeConfigurationProperty.Builder condition(IResolvable condition) Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getCondition()
- Parameters:
condition
- Contains configurations for a Condition node in your flow. Defines conditions that lead to different branches of the flow.- Returns:
this
-
condition
@Stability(Stable) public CfnFlow.FlowNodeConfigurationProperty.Builder condition(CfnFlow.ConditionFlowNodeConfigurationProperty condition) Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getCondition()
- Parameters:
condition
- Contains configurations for a Condition node in your flow. Defines conditions that lead to different branches of the flow.- Returns:
this
-
input
Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getInput()
- 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:
this
-
iterator
Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getIterator()
- 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:
this
-
knowledgeBase
@Stability(Stable) public CfnFlow.FlowNodeConfigurationProperty.Builder knowledgeBase(IResolvable knowledgeBase) Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getKnowledgeBase()
- 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:
this
-
knowledgeBase
@Stability(Stable) public CfnFlow.FlowNodeConfigurationProperty.Builder knowledgeBase(CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty knowledgeBase) Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getKnowledgeBase()
- 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:
this
-
lambdaFunction
@Stability(Stable) public CfnFlow.FlowNodeConfigurationProperty.Builder lambdaFunction(IResolvable lambdaFunction) Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getLambdaFunction()
- Parameters:
lambdaFunction
- Contains configurations for a Lambda function node in your flow. Invokes an AWS Lambda function.- Returns:
this
-
lambdaFunction
@Stability(Stable) public CfnFlow.FlowNodeConfigurationProperty.Builder lambdaFunction(CfnFlow.LambdaFunctionFlowNodeConfigurationProperty lambdaFunction) Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getLambdaFunction()
- Parameters:
lambdaFunction
- Contains configurations for a Lambda function node in your flow. Invokes an AWS Lambda function.- Returns:
this
-
lex
Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getLex()
- 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:
this
-
lex
@Stability(Stable) public CfnFlow.FlowNodeConfigurationProperty.Builder lex(CfnFlow.LexFlowNodeConfigurationProperty lex) Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getLex()
- 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:
this
-
output
Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getOutput()
- 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:
this
-
prompt
Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getPrompt()
- 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:
this
-
prompt
@Stability(Stable) public CfnFlow.FlowNodeConfigurationProperty.Builder prompt(CfnFlow.PromptFlowNodeConfigurationProperty prompt) Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getPrompt()
- 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:
this
-
retrieval
@Stability(Stable) public CfnFlow.FlowNodeConfigurationProperty.Builder retrieval(IResolvable retrieval) Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getRetrieval()
- 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:
this
-
retrieval
@Stability(Stable) public CfnFlow.FlowNodeConfigurationProperty.Builder retrieval(CfnFlow.RetrievalFlowNodeConfigurationProperty retrieval) Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getRetrieval()
- 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:
this
-
storage
@Stability(Stable) public CfnFlow.FlowNodeConfigurationProperty.Builder storage(IResolvable storage) Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getStorage()
- Parameters:
storage
- Contains configurations for a Storage node in your flow. Stores an input in an Amazon S3 location.- Returns:
this
-
storage
@Stability(Stable) public CfnFlow.FlowNodeConfigurationProperty.Builder storage(CfnFlow.StorageFlowNodeConfigurationProperty storage) Sets the value ofCfnFlow.FlowNodeConfigurationProperty.getStorage()
- Parameters:
storage
- Contains configurations for a Storage node in your flow. Stores an input in an Amazon S3 location.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFlow.FlowNodeConfigurationProperty>
- Returns:
- a new instance of
CfnFlow.FlowNodeConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-