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