Class CfnKnowledgeBasePropsMixin.OpenSearchManagedClusterFieldMappingProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnKnowledgeBasePropsMixin.OpenSearchManagedClusterFieldMappingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKnowledgeBasePropsMixin.OpenSearchManagedClusterFieldMappingProperty>
- Enclosing interface:
CfnKnowledgeBasePropsMixin.OpenSearchManagedClusterFieldMappingProperty
@Stability(Stable)
public static final class CfnKnowledgeBasePropsMixin.OpenSearchManagedClusterFieldMappingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKnowledgeBasePropsMixin.OpenSearchManagedClusterFieldMappingProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.metadataField(String metadataField) vectorField(String vectorField)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metadataField
@Stability(Stable) public CfnKnowledgeBasePropsMixin.OpenSearchManagedClusterFieldMappingProperty.Builder metadataField(String metadataField) Sets the value ofCfnKnowledgeBasePropsMixin.OpenSearchManagedClusterFieldMappingProperty.getMetadataField()- Parameters:
metadataField- The name of the field in which Amazon Bedrock stores metadata about the vector store.- Returns:
this
-
textField
@Stability(Stable) public CfnKnowledgeBasePropsMixin.OpenSearchManagedClusterFieldMappingProperty.Builder textField(String textField) Sets the value ofCfnKnowledgeBasePropsMixin.OpenSearchManagedClusterFieldMappingProperty.getTextField()- Parameters:
textField- The name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.- Returns:
this
-
vectorField
@Stability(Stable) public CfnKnowledgeBasePropsMixin.OpenSearchManagedClusterFieldMappingProperty.Builder vectorField(String vectorField) Sets the value ofCfnKnowledgeBasePropsMixin.OpenSearchManagedClusterFieldMappingProperty.getVectorField()- Parameters:
vectorField- The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.- Returns:
this
-
build
@Stability(Stable) public CfnKnowledgeBasePropsMixin.OpenSearchManagedClusterFieldMappingProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnKnowledgeBasePropsMixin.OpenSearchManagedClusterFieldMappingProperty>- Returns:
- a new instance of
CfnKnowledgeBasePropsMixin.OpenSearchManagedClusterFieldMappingProperty - Throws:
NullPointerException- if any required attribute was not provided
-