Class CfnDataSource.FixedSizeChunkingConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnDataSource.FixedSizeChunkingConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.FixedSizeChunkingConfigurationProperty>
- Enclosing interface:
CfnDataSource.FixedSizeChunkingConfigurationProperty
@Stability(Stable)
public static final class CfnDataSource.FixedSizeChunkingConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.FixedSizeChunkingConfigurationProperty>
A builder for
CfnDataSource.FixedSizeChunkingConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnDataSource.FixedSizeChunkingConfigurationProperty.getMaxTokens()
overlapPercentage
(Number overlapPercentage)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxTokens
@Stability(Stable) public CfnDataSource.FixedSizeChunkingConfigurationProperty.Builder maxTokens(Number maxTokens) Sets the value ofCfnDataSource.FixedSizeChunkingConfigurationProperty.getMaxTokens()
- Parameters:
maxTokens
- The maximum number of tokens to include in a chunk. This parameter is required.- Returns:
this
-
overlapPercentage
@Stability(Stable) public CfnDataSource.FixedSizeChunkingConfigurationProperty.Builder overlapPercentage(Number overlapPercentage) - Parameters:
overlapPercentage
- The percentage of overlap between adjacent chunks of a data source. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataSource.FixedSizeChunkingConfigurationProperty>
- Returns:
- a new instance of
CfnDataSource.FixedSizeChunkingConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-