Class CfnFlowPropsMixin.MetadataConfigurationForRerankingProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnFlowPropsMixin.MetadataConfigurationForRerankingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlowPropsMixin.MetadataConfigurationForRerankingProperty>
- Enclosing interface:
CfnFlowPropsMixin.MetadataConfigurationForRerankingProperty
@Stability(Stable)
public static final class CfnFlowPropsMixin.MetadataConfigurationForRerankingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlowPropsMixin.MetadataConfigurationForRerankingProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.selectionMode(String selectionMode) selectiveModeConfiguration(CfnFlowPropsMixin.RerankingMetadataSelectiveModeConfigurationProperty selectiveModeConfiguration) selectiveModeConfiguration(IResolvable selectiveModeConfiguration)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
selectionMode
@Stability(Stable) public CfnFlowPropsMixin.MetadataConfigurationForRerankingProperty.Builder selectionMode(String selectionMode) - Parameters:
selectionMode- The mode for selecting which metadata fields to include in the reranking process. Valid values are ALL (use all available metadata fields) or SELECTIVE (use only specified fields).- Returns:
this
-
selectiveModeConfiguration
@Stability(Stable) public CfnFlowPropsMixin.MetadataConfigurationForRerankingProperty.Builder selectiveModeConfiguration(IResolvable selectiveModeConfiguration) Sets the value ofCfnFlowPropsMixin.MetadataConfigurationForRerankingProperty.getSelectiveModeConfiguration()- Parameters:
selectiveModeConfiguration- Configuration for selective mode, which allows you to explicitly include or exclude specific metadata fields during reranking. This is only used when selectionMode is set to SELECTIVE.- Returns:
this
-
selectiveModeConfiguration
@Stability(Stable) public CfnFlowPropsMixin.MetadataConfigurationForRerankingProperty.Builder selectiveModeConfiguration(CfnFlowPropsMixin.RerankingMetadataSelectiveModeConfigurationProperty selectiveModeConfiguration) Sets the value ofCfnFlowPropsMixin.MetadataConfigurationForRerankingProperty.getSelectiveModeConfiguration()- Parameters:
selectiveModeConfiguration- Configuration for selective mode, which allows you to explicitly include or exclude specific metadata fields during reranking. This is only used when selectionMode is set to SELECTIVE.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFlowPropsMixin.MetadataConfigurationForRerankingProperty>- Returns:
- a new instance of
CfnFlowPropsMixin.MetadataConfigurationForRerankingProperty - Throws:
NullPointerException- if any required attribute was not provided
-