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