Interface MetadataConfigurationForReranking.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<MetadataConfigurationForReranking.Builder,,MetadataConfigurationForReranking> SdkBuilder<MetadataConfigurationForReranking.Builder,,MetadataConfigurationForReranking> SdkPojo
- Enclosing class:
MetadataConfigurationForReranking
@Mutable
@NotThreadSafe
public static interface MetadataConfigurationForReranking.Builder
extends SdkPojo, CopyableBuilder<MetadataConfigurationForReranking.Builder,MetadataConfigurationForReranking>
-
Method Summary
Modifier and TypeMethodDescriptionselectionMode(String selectionMode) Specifies whether to consider all metadata when reranking, or only the metadata that you select.selectionMode(RerankingMetadataSelectionMode selectionMode) Specifies whether to consider all metadata when reranking, or only the metadata that you select.selectiveModeConfiguration(Consumer<RerankingMetadataSelectiveModeConfiguration.Builder> selectiveModeConfiguration) Contains configurations for the metadata fields to include or exclude when considering reranking.selectiveModeConfiguration(RerankingMetadataSelectiveModeConfiguration selectiveModeConfiguration) Contains configurations for the metadata fields to include or exclude when considering reranking.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
selectionMode
Specifies whether to consider all metadata when reranking, or only the metadata that you select. If you specify
SELECTIVE, include theselectiveModeConfigurationfield.- Parameters:
selectionMode- Specifies whether to consider all metadata when reranking, or only the metadata that you select. If you specifySELECTIVE, include theselectiveModeConfigurationfield.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
selectionMode
MetadataConfigurationForReranking.Builder selectionMode(RerankingMetadataSelectionMode selectionMode) Specifies whether to consider all metadata when reranking, or only the metadata that you select. If you specify
SELECTIVE, include theselectiveModeConfigurationfield.- Parameters:
selectionMode- Specifies whether to consider all metadata when reranking, or only the metadata that you select. If you specifySELECTIVE, include theselectiveModeConfigurationfield.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
selectiveModeConfiguration
MetadataConfigurationForReranking.Builder selectiveModeConfiguration(RerankingMetadataSelectiveModeConfiguration selectiveModeConfiguration) Contains configurations for the metadata fields to include or exclude when considering reranking.
- Parameters:
selectiveModeConfiguration- Contains configurations for the metadata fields to include or exclude when considering reranking.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
selectiveModeConfiguration
default MetadataConfigurationForReranking.Builder selectiveModeConfiguration(Consumer<RerankingMetadataSelectiveModeConfiguration.Builder> selectiveModeConfiguration) Contains configurations for the metadata fields to include or exclude when considering reranking.
This is a convenience method that creates an instance of theRerankingMetadataSelectiveModeConfiguration.Builderavoiding the need to create one manually viaRerankingMetadataSelectiveModeConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toselectiveModeConfiguration(RerankingMetadataSelectiveModeConfiguration).- Parameters:
selectiveModeConfiguration- a consumer that will call methods onRerankingMetadataSelectiveModeConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-