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