Interface MetadataConfigurationForReranking.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<MetadataConfigurationForReranking.Builder,
,MetadataConfigurationForReranking> SdkBuilder<MetadataConfigurationForReranking.Builder,
,MetadataConfigurationForReranking> SdkPojo
- Enclosing class:
MetadataConfigurationForReranking
-
Method Summary
Modifier and TypeMethodDescriptionselectionMode
(String selectionMode) The mode for selecting which metadata fields to include in the reranking process.selectionMode
(RerankingMetadataSelectionMode selectionMode) The mode for selecting which metadata fields to include in the reranking process.selectiveModeConfiguration
(Consumer<RerankingMetadataSelectiveModeConfiguration.Builder> selectiveModeConfiguration) Configuration for selective mode, which allows you to explicitly include or exclude specific metadata fields during reranking.selectiveModeConfiguration
(RerankingMetadataSelectiveModeConfiguration selectiveModeConfiguration) Configuration for selective mode, which allows you to explicitly include or exclude specific metadata fields during 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 Details
-
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).
- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
selectionMode
MetadataConfigurationForReranking.Builder selectionMode(RerankingMetadataSelectionMode 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).
- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
selectiveModeConfiguration
MetadataConfigurationForReranking.Builder selectiveModeConfiguration(RerankingMetadataSelectiveModeConfiguration 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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
selectiveModeConfiguration
default MetadataConfigurationForReranking.Builder selectiveModeConfiguration(Consumer<RerankingMetadataSelectiveModeConfiguration.Builder> 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.
This is a convenience method that creates an instance of theRerankingMetadataSelectiveModeConfiguration.Builder
avoiding the need to create one manually viaRerankingMetadataSelectiveModeConfiguration.builder()
.When the
Consumer
completes,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:
-