Class CfnKnowledgeBase.PineconeFieldMappingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.PineconeFieldMappingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKnowledgeBase.PineconeFieldMappingProperty>
- Enclosing interface:
CfnKnowledgeBase.PineconeFieldMappingProperty
@Stability(Stable)
public static final class CfnKnowledgeBase.PineconeFieldMappingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKnowledgeBase.PineconeFieldMappingProperty>
A builder for
CfnKnowledgeBase.PineconeFieldMappingProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.metadataField
(String metadataField) Sets the value ofCfnKnowledgeBase.PineconeFieldMappingProperty.getMetadataField()
Sets the value ofCfnKnowledgeBase.PineconeFieldMappingProperty.getTextField()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metadataField
@Stability(Stable) public CfnKnowledgeBase.PineconeFieldMappingProperty.Builder metadataField(String metadataField) Sets the value ofCfnKnowledgeBase.PineconeFieldMappingProperty.getMetadataField()
- 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.PineconeFieldMappingProperty.Builder textField(String textField) Sets the value ofCfnKnowledgeBase.PineconeFieldMappingProperty.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
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnKnowledgeBase.PineconeFieldMappingProperty>
- Returns:
- a new instance of
CfnKnowledgeBase.PineconeFieldMappingProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-