Class CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty>
- Enclosing interface:
CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty
@Stability(Stable)
public static final class CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty>
A builder for
CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.knowledgeBaseId
(String knowledgeBaseId) Sets the value ofCfnFlow.KnowledgeBaseFlowNodeConfigurationProperty.getKnowledgeBaseId()
Sets the value ofCfnFlow.KnowledgeBaseFlowNodeConfigurationProperty.getModelId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
knowledgeBaseId
@Stability(Stable) public CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty.Builder knowledgeBaseId(String knowledgeBaseId) Sets the value ofCfnFlow.KnowledgeBaseFlowNodeConfigurationProperty.getKnowledgeBaseId()
- Parameters:
knowledgeBaseId
- The unique identifier of the knowledge base to query. This parameter is required.- Returns:
this
-
modelId
@Stability(Stable) public CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty.Builder modelId(String modelId) Sets the value ofCfnFlow.KnowledgeBaseFlowNodeConfigurationProperty.getModelId()
- Parameters:
modelId
- The unique identifier of the model or inference profile to use to generate a response from the query results. Omit this field if you want to return the retrieved results as an array.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty>
- Returns:
- a new instance of
CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-