Class CfnDataSource.VectorIngestionConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnDataSource.VectorIngestionConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.VectorIngestionConfigurationProperty>
- Enclosing interface:
CfnDataSource.VectorIngestionConfigurationProperty
@Stability(Stable)
public static final class CfnDataSource.VectorIngestionConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.VectorIngestionConfigurationProperty>
A builder for
CfnDataSource.VectorIngestionConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.chunkingConfiguration(IResolvable chunkingConfiguration) chunkingConfiguration(CfnDataSource.ChunkingConfigurationProperty chunkingConfiguration) contextEnrichmentConfiguration(IResolvable contextEnrichmentConfiguration) contextEnrichmentConfiguration(CfnDataSource.ContextEnrichmentConfigurationProperty contextEnrichmentConfiguration) customTransformationConfiguration(IResolvable customTransformationConfiguration) customTransformationConfiguration(CfnDataSource.CustomTransformationConfigurationProperty customTransformationConfiguration) parsingConfiguration(IResolvable parsingConfiguration) parsingConfiguration(CfnDataSource.ParsingConfigurationProperty parsingConfiguration)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
chunkingConfiguration
@Stability(Stable) public CfnDataSource.VectorIngestionConfigurationProperty.Builder chunkingConfiguration(IResolvable chunkingConfiguration) - Parameters:
chunkingConfiguration- Details about how to chunk the documents in the data source. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried.- Returns:
this
-
chunkingConfiguration
@Stability(Stable) public CfnDataSource.VectorIngestionConfigurationProperty.Builder chunkingConfiguration(CfnDataSource.ChunkingConfigurationProperty chunkingConfiguration) - Parameters:
chunkingConfiguration- Details about how to chunk the documents in the data source. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried.- Returns:
this
-
contextEnrichmentConfiguration
@Stability(Stable) public CfnDataSource.VectorIngestionConfigurationProperty.Builder contextEnrichmentConfiguration(IResolvable contextEnrichmentConfiguration) Sets the value ofCfnDataSource.VectorIngestionConfigurationProperty.getContextEnrichmentConfiguration()- Parameters:
contextEnrichmentConfiguration- The context enrichment configuration used for ingestion of the data into the vector store.- Returns:
this
-
contextEnrichmentConfiguration
@Stability(Stable) public CfnDataSource.VectorIngestionConfigurationProperty.Builder contextEnrichmentConfiguration(CfnDataSource.ContextEnrichmentConfigurationProperty contextEnrichmentConfiguration) Sets the value ofCfnDataSource.VectorIngestionConfigurationProperty.getContextEnrichmentConfiguration()- Parameters:
contextEnrichmentConfiguration- The context enrichment configuration used for ingestion of the data into the vector store.- Returns:
this
-
customTransformationConfiguration
@Stability(Stable) public CfnDataSource.VectorIngestionConfigurationProperty.Builder customTransformationConfiguration(IResolvable customTransformationConfiguration) Sets the value ofCfnDataSource.VectorIngestionConfigurationProperty.getCustomTransformationConfiguration()- Parameters:
customTransformationConfiguration- A custom document transformer for parsed data source documents.- Returns:
this
-
customTransformationConfiguration
@Stability(Stable) public CfnDataSource.VectorIngestionConfigurationProperty.Builder customTransformationConfiguration(CfnDataSource.CustomTransformationConfigurationProperty customTransformationConfiguration) Sets the value ofCfnDataSource.VectorIngestionConfigurationProperty.getCustomTransformationConfiguration()- Parameters:
customTransformationConfiguration- A custom document transformer for parsed data source documents.- Returns:
this
-
parsingConfiguration
@Stability(Stable) public CfnDataSource.VectorIngestionConfigurationProperty.Builder parsingConfiguration(IResolvable parsingConfiguration) - Parameters:
parsingConfiguration- Configurations for a parser to use for parsing documents in your data source. If you exclude this field, the default parser will be used.- Returns:
this
-
parsingConfiguration
@Stability(Stable) public CfnDataSource.VectorIngestionConfigurationProperty.Builder parsingConfiguration(CfnDataSource.ParsingConfigurationProperty parsingConfiguration) - Parameters:
parsingConfiguration- Configurations for a parser to use for parsing documents in your data source. If you exclude this field, the default parser will be used.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataSource.VectorIngestionConfigurationProperty>- Returns:
- a new instance of
CfnDataSource.VectorIngestionConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-