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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MetadataConfigurationForReranking.BuilderselectionMode(String selectionMode)Specifies whether to consider all metadata when reranking, or only the metadata that you select.MetadataConfigurationForReranking.BuilderselectionMode(RerankingMetadataSelectionMode selectionMode)Specifies whether to consider all metadata when reranking, or only the metadata that you select.default MetadataConfigurationForReranking.BuilderselectiveModeConfiguration(Consumer<RerankingMetadataSelectiveModeConfiguration.Builder> selectiveModeConfiguration)Contains configurations for the metadata fields to include or exclude when considering reranking.MetadataConfigurationForReranking.BuilderselectiveModeConfiguration(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
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
selectionMode
MetadataConfigurationForReranking.Builder selectionMode(String 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:
RerankingMetadataSelectionMode,RerankingMetadataSelectionMode
-
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:
RerankingMetadataSelectionMode,RerankingMetadataSelectionMode
-
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:
selectiveModeConfiguration(RerankingMetadataSelectiveModeConfiguration)
-
-