Class CfnKnowledgeBase.KnowledgeBaseConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.KnowledgeBaseConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKnowledgeBase.KnowledgeBaseConfigurationProperty>
- Enclosing interface:
CfnKnowledgeBase.KnowledgeBaseConfigurationProperty
@Stability(Stable)
public static final class CfnKnowledgeBase.KnowledgeBaseConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKnowledgeBase.KnowledgeBaseConfigurationProperty>
A builder for
CfnKnowledgeBase.KnowledgeBaseConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.kendraKnowledgeBaseConfiguration
(IResolvable kendraKnowledgeBaseConfiguration) kendraKnowledgeBaseConfiguration
(CfnKnowledgeBase.KendraKnowledgeBaseConfigurationProperty kendraKnowledgeBaseConfiguration) Sets the value ofCfnKnowledgeBase.KnowledgeBaseConfigurationProperty.getType()
vectorKnowledgeBaseConfiguration
(IResolvable vectorKnowledgeBaseConfiguration) vectorKnowledgeBaseConfiguration
(CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty vectorKnowledgeBaseConfiguration)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
@Stability(Stable) public CfnKnowledgeBase.KnowledgeBaseConfigurationProperty.Builder type(String type) Sets the value ofCfnKnowledgeBase.KnowledgeBaseConfigurationProperty.getType()
- Parameters:
type
- The type of data that the data source is converted into for the knowledge base. This parameter is required.- Returns:
this
-
kendraKnowledgeBaseConfiguration
@Stability(Stable) public CfnKnowledgeBase.KnowledgeBaseConfigurationProperty.Builder kendraKnowledgeBaseConfiguration(IResolvable kendraKnowledgeBaseConfiguration) Sets the value ofCfnKnowledgeBase.KnowledgeBaseConfigurationProperty.getKendraKnowledgeBaseConfiguration()
- Parameters:
kendraKnowledgeBaseConfiguration
- Settings for an Amazon Kendra knowledge base.- Returns:
this
-
kendraKnowledgeBaseConfiguration
@Stability(Stable) public CfnKnowledgeBase.KnowledgeBaseConfigurationProperty.Builder kendraKnowledgeBaseConfiguration(CfnKnowledgeBase.KendraKnowledgeBaseConfigurationProperty kendraKnowledgeBaseConfiguration) Sets the value ofCfnKnowledgeBase.KnowledgeBaseConfigurationProperty.getKendraKnowledgeBaseConfiguration()
- Parameters:
kendraKnowledgeBaseConfiguration
- Settings for an Amazon Kendra knowledge base.- Returns:
this
-
vectorKnowledgeBaseConfiguration
@Stability(Stable) public CfnKnowledgeBase.KnowledgeBaseConfigurationProperty.Builder vectorKnowledgeBaseConfiguration(IResolvable vectorKnowledgeBaseConfiguration) Sets the value ofCfnKnowledgeBase.KnowledgeBaseConfigurationProperty.getVectorKnowledgeBaseConfiguration()
- Parameters:
vectorKnowledgeBaseConfiguration
- Contains details about the model that's used to convert the data source into vector embeddings.- Returns:
this
-
vectorKnowledgeBaseConfiguration
@Stability(Stable) public CfnKnowledgeBase.KnowledgeBaseConfigurationProperty.Builder vectorKnowledgeBaseConfiguration(CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty vectorKnowledgeBaseConfiguration) Sets the value ofCfnKnowledgeBase.KnowledgeBaseConfigurationProperty.getVectorKnowledgeBaseConfiguration()
- Parameters:
vectorKnowledgeBaseConfiguration
- Contains details about the model that's used to convert the data source into vector embeddings.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnKnowledgeBase.KnowledgeBaseConfigurationProperty>
- Returns:
- a new instance of
CfnKnowledgeBase.KnowledgeBaseConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-