Class CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty>
- Enclosing interface:
CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty
@Stability(Stable)
public static final class CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.embeddingModelArn
(String embeddingModelArn) embeddingModelConfiguration
(IResolvable embeddingModelConfiguration) embeddingModelConfiguration
(CfnKnowledgeBase.EmbeddingModelConfigurationProperty embeddingModelConfiguration)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
embeddingModelArn
@Stability(Stable) public CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty.Builder embeddingModelArn(String embeddingModelArn) - Parameters:
embeddingModelArn
- The Amazon Resource Name (ARN) of the model used to create vector embeddings for the knowledge base. This parameter is required.- Returns:
this
-
embeddingModelConfiguration
@Stability(Stable) public CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty.Builder embeddingModelConfiguration(IResolvable embeddingModelConfiguration) Sets the value ofCfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty.getEmbeddingModelConfiguration()
- Parameters:
embeddingModelConfiguration
- The embeddings model configuration details for the vector model used in Knowledge Base.- Returns:
this
-
embeddingModelConfiguration
@Stability(Stable) public CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty.Builder embeddingModelConfiguration(CfnKnowledgeBase.EmbeddingModelConfigurationProperty embeddingModelConfiguration) Sets the value ofCfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty.getEmbeddingModelConfiguration()
- Parameters:
embeddingModelConfiguration
- The embeddings model configuration details for the vector model used in Knowledge Base.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty>
- Returns:
- a new instance of
CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-