Class CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlowPropsMixin.FlowNodeConfigurationProperty>
- Enclosing interface:
CfnFlowPropsMixin.FlowNodeConfigurationProperty
@Stability(Stable)
public static final class CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlowPropsMixin.FlowNodeConfigurationProperty>
A builder for
CfnFlowPropsMixin.FlowNodeConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getAgent()agent(IResolvable agent) Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getAgent()build()Builds the configured instance.Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getCollector()Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getCondition()condition(IResolvable condition) Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getCondition()Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getInlineCode()inlineCode(IResolvable inlineCode) Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getInlineCode()Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getInput()Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getIterator()Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getKnowledgeBase()knowledgeBase(IResolvable knowledgeBase) Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getKnowledgeBase()Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getLambdaFunction()lambdaFunction(IResolvable lambdaFunction) Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getLambdaFunction()Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getLex()lex(IResolvable lex) Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getLex()Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getLoop()loop(IResolvable loop) Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getLoop()Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getLoopController()loopController(IResolvable loopController) Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getLoopController()Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getLoopInput()Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getOutput()Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getPrompt()prompt(IResolvable prompt) Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getPrompt()Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getRetrieval()retrieval(IResolvable retrieval) Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getRetrieval()Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getStorage()storage(IResolvable storage) Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getStorage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
agent
@Stability(Stable) public CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder agent(IResolvable agent) Sets the value ofCfnFlowPropsMixin.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 CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder agent(CfnFlowPropsMixin.AgentFlowNodeConfigurationProperty agent) Sets the value ofCfnFlowPropsMixin.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 CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder collector(Object collector) Sets the value ofCfnFlowPropsMixin.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 CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder condition(IResolvable condition) Sets the value ofCfnFlowPropsMixin.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 CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder condition(CfnFlowPropsMixin.ConditionFlowNodeConfigurationProperty condition) Sets the value ofCfnFlowPropsMixin.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
-
inlineCode
@Stability(Stable) public CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder inlineCode(IResolvable inlineCode) Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getInlineCode()- 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.- Returns:
this
-
inlineCode
@Stability(Stable) public CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder inlineCode(CfnFlowPropsMixin.InlineCodeFlowNodeConfigurationProperty inlineCode) Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getInlineCode()- 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.- Returns:
this
-
input
@Stability(Stable) public CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder input(Object input) Sets the value ofCfnFlowPropsMixin.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
-
iterator
@Stability(Stable) public CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder iterator(Object iterator) Sets the value ofCfnFlowPropsMixin.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 CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder knowledgeBase(IResolvable knowledgeBase) Sets the value ofCfnFlowPropsMixin.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 CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder knowledgeBase(CfnFlowPropsMixin.KnowledgeBaseFlowNodeConfigurationProperty knowledgeBase) Sets the value ofCfnFlowPropsMixin.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 CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder lambdaFunction(IResolvable lambdaFunction) Sets the value ofCfnFlowPropsMixin.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 CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder lambdaFunction(CfnFlowPropsMixin.LambdaFunctionFlowNodeConfigurationProperty lambdaFunction) Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getLambdaFunction()- Parameters:
lambdaFunction- Contains configurations for a Lambda function node in your flow. Invokes an AWS Lambda function.- Returns:
this
-
lex
@Stability(Stable) public CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder lex(IResolvable lex) Sets the value ofCfnFlowPropsMixin.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 CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder lex(CfnFlowPropsMixin.LexFlowNodeConfigurationProperty lex) Sets the value ofCfnFlowPropsMixin.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
-
loop
@Stability(Stable) public CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder loop(IResolvable loop) Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getLoop()- Parameters:
loop- Contains configurations for a DoWhile loop in your flow.- Returns:
this
-
loop
@Stability(Stable) public CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder loop(CfnFlowPropsMixin.LoopFlowNodeConfigurationProperty loop) Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getLoop()- Parameters:
loop- Contains configurations for a DoWhile loop in your flow.- Returns:
this
-
loopController
@Stability(Stable) public CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder loopController(IResolvable loopController) Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getLoopController()- Parameters:
loopController- Contains controller node configurations for a DoWhile loop in your flow.- Returns:
this
-
loopController
@Stability(Stable) public CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder loopController(CfnFlowPropsMixin.LoopControllerFlowNodeConfigurationProperty loopController) Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getLoopController()- Parameters:
loopController- Contains controller node configurations for a DoWhile loop in your flow.- Returns:
this
-
loopInput
@Stability(Stable) public CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder loopInput(Object loopInput) Sets the value ofCfnFlowPropsMixin.FlowNodeConfigurationProperty.getLoopInput()- Parameters:
loopInput- Contains input node configurations for a DoWhile loop in your flow.- Returns:
this
-
output
@Stability(Stable) public CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder output(Object output) Sets the value ofCfnFlowPropsMixin.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 CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder prompt(IResolvable prompt) Sets the value ofCfnFlowPropsMixin.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 CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder prompt(CfnFlowPropsMixin.PromptFlowNodeConfigurationProperty prompt) Sets the value ofCfnFlowPropsMixin.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 CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder retrieval(IResolvable retrieval) Sets the value ofCfnFlowPropsMixin.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 CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder retrieval(CfnFlowPropsMixin.RetrievalFlowNodeConfigurationProperty retrieval) Sets the value ofCfnFlowPropsMixin.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 CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder storage(IResolvable storage) Sets the value ofCfnFlowPropsMixin.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 CfnFlowPropsMixin.FlowNodeConfigurationProperty.Builder storage(CfnFlowPropsMixin.StorageFlowNodeConfigurationProperty storage) Sets the value ofCfnFlowPropsMixin.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnFlowPropsMixin.FlowNodeConfigurationProperty>- Returns:
- a new instance of
CfnFlowPropsMixin.FlowNodeConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-