Class CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty>
- Enclosing interface:
CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty
@Stability(Stable)
public static final class CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.guardrailConfiguration
(IResolvable guardrailConfiguration) guardrailConfiguration
(CfnFlowVersion.GuardrailConfigurationProperty guardrailConfiguration) knowledgeBaseId
(String knowledgeBaseId) Sets the value ofCfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty.getModelId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
knowledgeBaseId
@Stability(Stable) public CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty.Builder knowledgeBaseId(String knowledgeBaseId) - Parameters:
knowledgeBaseId
- The unique identifier of the knowledge base to query. This parameter is required.- Returns:
this
-
guardrailConfiguration
@Stability(Stable) public CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty.Builder guardrailConfiguration(IResolvable guardrailConfiguration) Sets the value ofCfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty.getGuardrailConfiguration()
- Parameters:
guardrailConfiguration
- Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration.- Returns:
this
-
guardrailConfiguration
@Stability(Stable) public CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty.Builder guardrailConfiguration(CfnFlowVersion.GuardrailConfigurationProperty guardrailConfiguration) Sets the value ofCfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty.getGuardrailConfiguration()
- Parameters:
guardrailConfiguration
- Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration.- Returns:
this
-
modelId
@Stability(Stable) public CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty.Builder modelId(String modelId) Sets the value ofCfnFlowVersion.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<CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty>
- Returns:
- a new instance of
CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-