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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.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
-
vectorKnowledgeBaseConfiguration
@Stability(Stable) public CfnKnowledgeBase.KnowledgeBaseConfigurationProperty.Builder vectorKnowledgeBaseConfiguration(IResolvable vectorKnowledgeBaseConfiguration) Sets the value ofCfnKnowledgeBase.KnowledgeBaseConfigurationProperty.getVectorKnowledgeBaseConfiguration()
- Parameters:
vectorKnowledgeBaseConfiguration
- Contains details about the embeddings model that'sused to convert the data source. This parameter is required.- 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 embeddings model that'sused to convert the data source. This parameter is required.- 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
-