Class CfnFlowVersion.FlowNodeConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlowVersion.FlowNodeConfigurationProperty>
- Enclosing interface:
CfnFlowVersion.FlowNodeConfigurationProperty
@Stability(Stable)
public static final class CfnFlowVersion.FlowNodeConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlowVersion.FlowNodeConfigurationProperty>
A builder for
CfnFlowVersion.FlowNodeConfigurationProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagent
(IResolvable agent) Sets the value ofCfnFlowVersion.FlowNodeConfigurationProperty.getAgent()
Sets the value ofCfnFlowVersion.FlowNodeConfigurationProperty.getAgent()
build()
Builds the configured instance.Sets the value ofCfnFlowVersion.FlowNodeConfigurationProperty.getCollector()
condition
(IResolvable condition) Sets the value ofCfnFlowVersion.FlowNodeConfigurationProperty.getCondition()
Sets the value ofCfnFlowVersion.FlowNodeConfigurationProperty.getCondition()
Sets the value ofCfnFlowVersion.FlowNodeConfigurationProperty.getInput()
Sets the value ofCfnFlowVersion.FlowNodeConfigurationProperty.getIterator()
knowledgeBase
(IResolvable knowledgeBase) Sets the value ofCfnFlowVersion.FlowNodeConfigurationProperty.getKnowledgeBase()
Sets the value ofCfnFlowVersion.FlowNodeConfigurationProperty.getKnowledgeBase()
lambdaFunction
(IResolvable lambdaFunction) Sets the value ofCfnFlowVersion.FlowNodeConfigurationProperty.getLambdaFunction()
Sets the value ofCfnFlowVersion.FlowNodeConfigurationProperty.getLambdaFunction()
lex
(IResolvable lex) Sets the value ofCfnFlowVersion.FlowNodeConfigurationProperty.getLex()
Sets the value ofCfnFlowVersion.FlowNodeConfigurationProperty.getLex()
Sets the value ofCfnFlowVersion.FlowNodeConfigurationProperty.getOutput()
prompt
(IResolvable prompt) Sets the value ofCfnFlowVersion.FlowNodeConfigurationProperty.getPrompt()
Sets the value ofCfnFlowVersion.FlowNodeConfigurationProperty.getPrompt()
retrieval
(IResolvable retrieval) Sets the value ofCfnFlowVersion.FlowNodeConfigurationProperty.getRetrieval()
Sets the value ofCfnFlowVersion.FlowNodeConfigurationProperty.getRetrieval()
storage
(IResolvable storage) Sets the value ofCfnFlowVersion.FlowNodeConfigurationProperty.getStorage()
Sets the value ofCfnFlowVersion.FlowNodeConfigurationProperty.getStorage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
agent
@Stability(Stable) public CfnFlowVersion.FlowNodeConfigurationProperty.Builder agent(IResolvable agent) Sets the value ofCfnFlowVersion.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 CfnFlowVersion.FlowNodeConfigurationProperty.Builder agent(CfnFlowVersion.AgentFlowNodeConfigurationProperty agent) Sets the value ofCfnFlowVersion.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
@Stability(Stable) public CfnFlowVersion.FlowNodeConfigurationProperty.Builder collector(Object collector) Sets the value ofCfnFlowVersion.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 CfnFlowVersion.FlowNodeConfigurationProperty.Builder condition(IResolvable condition) Sets the value ofCfnFlowVersion.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 CfnFlowVersion.FlowNodeConfigurationProperty.Builder condition(CfnFlowVersion.ConditionFlowNodeConfigurationProperty condition) Sets the value ofCfnFlowVersion.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 ofCfnFlowVersion.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
@Stability(Stable) public CfnFlowVersion.FlowNodeConfigurationProperty.Builder iterator(Object iterator) Sets the value ofCfnFlowVersion.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 CfnFlowVersion.FlowNodeConfigurationProperty.Builder knowledgeBase(IResolvable knowledgeBase) Sets the value ofCfnFlowVersion.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 CfnFlowVersion.FlowNodeConfigurationProperty.Builder knowledgeBase(CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty knowledgeBase) Sets the value ofCfnFlowVersion.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 CfnFlowVersion.FlowNodeConfigurationProperty.Builder lambdaFunction(IResolvable lambdaFunction) Sets the value ofCfnFlowVersion.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 CfnFlowVersion.FlowNodeConfigurationProperty.Builder lambdaFunction(CfnFlowVersion.LambdaFunctionFlowNodeConfigurationProperty lambdaFunction) Sets the value ofCfnFlowVersion.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 ofCfnFlowVersion.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 CfnFlowVersion.FlowNodeConfigurationProperty.Builder lex(CfnFlowVersion.LexFlowNodeConfigurationProperty lex) Sets the value ofCfnFlowVersion.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
@Stability(Stable) public CfnFlowVersion.FlowNodeConfigurationProperty.Builder output(Object output) Sets the value ofCfnFlowVersion.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
@Stability(Stable) public CfnFlowVersion.FlowNodeConfigurationProperty.Builder prompt(IResolvable prompt) Sets the value ofCfnFlowVersion.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 CfnFlowVersion.FlowNodeConfigurationProperty.Builder prompt(CfnFlowVersion.PromptFlowNodeConfigurationProperty prompt) Sets the value ofCfnFlowVersion.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 CfnFlowVersion.FlowNodeConfigurationProperty.Builder retrieval(IResolvable retrieval) Sets the value ofCfnFlowVersion.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 CfnFlowVersion.FlowNodeConfigurationProperty.Builder retrieval(CfnFlowVersion.RetrievalFlowNodeConfigurationProperty retrieval) Sets the value ofCfnFlowVersion.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 CfnFlowVersion.FlowNodeConfigurationProperty.Builder storage(IResolvable storage) Sets the value ofCfnFlowVersion.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 CfnFlowVersion.FlowNodeConfigurationProperty.Builder storage(CfnFlowVersion.StorageFlowNodeConfigurationProperty storage) Sets the value ofCfnFlowVersion.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<CfnFlowVersion.FlowNodeConfigurationProperty>
- Returns:
- a new instance of
CfnFlowVersion.FlowNodeConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-