Class CfnFlowVersion.MetadataConfigurationForRerankingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnFlowVersion.MetadataConfigurationForRerankingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlowVersion.MetadataConfigurationForRerankingProperty>
- Enclosing interface:
CfnFlowVersion.MetadataConfigurationForRerankingProperty
@Stability(Stable)
public static final class CfnFlowVersion.MetadataConfigurationForRerankingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlowVersion.MetadataConfigurationForRerankingProperty>
A builder for
CfnFlowVersion.MetadataConfigurationForRerankingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.selectionMode(String selectionMode) selectiveModeConfiguration(IResolvable selectiveModeConfiguration) selectiveModeConfiguration(CfnFlowVersion.RerankingMetadataSelectiveModeConfigurationProperty selectiveModeConfiguration)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
selectionMode
@Stability(Stable) public CfnFlowVersion.MetadataConfigurationForRerankingProperty.Builder selectionMode(String selectionMode) - Parameters:
selectionMode- Specifies whether to consider all metadata when reranking, or only the metadata that you select. This parameter is required. If you specifySELECTIVE, include theselectiveModeConfigurationfield.- Returns:
this
-
selectiveModeConfiguration
@Stability(Stable) public CfnFlowVersion.MetadataConfigurationForRerankingProperty.Builder selectiveModeConfiguration(IResolvable selectiveModeConfiguration) Sets the value ofCfnFlowVersion.MetadataConfigurationForRerankingProperty.getSelectiveModeConfiguration()- Parameters:
selectiveModeConfiguration- Contains configurations for the metadata fields to include or exclude when considering reranking.- Returns:
this
-
selectiveModeConfiguration
@Stability(Stable) public CfnFlowVersion.MetadataConfigurationForRerankingProperty.Builder selectiveModeConfiguration(CfnFlowVersion.RerankingMetadataSelectiveModeConfigurationProperty selectiveModeConfiguration) Sets the value ofCfnFlowVersion.MetadataConfigurationForRerankingProperty.getSelectiveModeConfiguration()- Parameters:
selectiveModeConfiguration- Contains configurations for the metadata fields to include or exclude when considering reranking.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFlowVersion.MetadataConfigurationForRerankingProperty>- Returns:
- a new instance of
CfnFlowVersion.MetadataConfigurationForRerankingProperty - Throws:
NullPointerException- if any required attribute was not provided
-