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 TypeMethodDescriptionbuild()Builds the configured instance.condition(IResolvable condition) Sets the value ofCfnFlowVersion.FlowNodeConfigurationProperty.getCondition()Sets the value ofCfnFlowVersion.FlowNodeConfigurationProperty.getCondition()Sets the value ofCfnFlowVersion.FlowNodeConfigurationProperty.getInput()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()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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.inputscan't be specified for this 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.outputscan'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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFlowVersion.FlowNodeConfigurationProperty>- Returns:
- a new instance of
CfnFlowVersion.FlowNodeConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-