Class CfnDataSourcePropsMixin.SemanticChunkingConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnDataSourcePropsMixin.SemanticChunkingConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSourcePropsMixin.SemanticChunkingConfigurationProperty>
- Enclosing interface:
CfnDataSourcePropsMixin.SemanticChunkingConfigurationProperty
@Stability(Stable)
public static final class CfnDataSourcePropsMixin.SemanticChunkingConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSourcePropsMixin.SemanticChunkingConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbreakpointPercentileThreshold(Number breakpointPercentileThreshold) bufferSize(Number bufferSize) build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
breakpointPercentileThreshold
@Stability(Stable) public CfnDataSourcePropsMixin.SemanticChunkingConfigurationProperty.Builder breakpointPercentileThreshold(Number breakpointPercentileThreshold) Sets the value ofCfnDataSourcePropsMixin.SemanticChunkingConfigurationProperty.getBreakpointPercentileThreshold()- Parameters:
breakpointPercentileThreshold- The dissimilarity threshold for splitting chunks.- Returns:
this
-
bufferSize
@Stability(Stable) public CfnDataSourcePropsMixin.SemanticChunkingConfigurationProperty.Builder bufferSize(Number bufferSize) - Parameters:
bufferSize- The buffer size.- Returns:
this
-
maxTokens
@Stability(Stable) public CfnDataSourcePropsMixin.SemanticChunkingConfigurationProperty.Builder maxTokens(Number maxTokens) - Parameters:
maxTokens- The maximum number of tokens that a chunk can contain.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataSourcePropsMixin.SemanticChunkingConfigurationProperty>- Returns:
- a new instance of
CfnDataSourcePropsMixin.SemanticChunkingConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-