Interface BedrockRerankingConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<BedrockRerankingConfiguration.Builder,
,BedrockRerankingConfiguration> SdkBuilder<BedrockRerankingConfiguration.Builder,
,BedrockRerankingConfiguration> SdkPojo
- Enclosing class:
BedrockRerankingConfiguration
@Mutable
@NotThreadSafe
public static interface BedrockRerankingConfiguration.Builder
extends SdkPojo, CopyableBuilder<BedrockRerankingConfiguration.Builder,BedrockRerankingConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionmodelConfiguration
(Consumer<BedrockRerankingModelConfiguration.Builder> modelConfiguration) Contains configurations for a reranker model.modelConfiguration
(BedrockRerankingModelConfiguration modelConfiguration) Contains configurations for a reranker model.numberOfResults
(Integer numberOfResults) The number of results to return after 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
-
modelConfiguration
BedrockRerankingConfiguration.Builder modelConfiguration(BedrockRerankingModelConfiguration modelConfiguration) Contains configurations for a reranker model.
- Parameters:
modelConfiguration
- Contains configurations for a reranker model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelConfiguration
default BedrockRerankingConfiguration.Builder modelConfiguration(Consumer<BedrockRerankingModelConfiguration.Builder> modelConfiguration) Contains configurations for a reranker model.
This is a convenience method that creates an instance of theBedrockRerankingModelConfiguration.Builder
avoiding the need to create one manually viaBedrockRerankingModelConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomodelConfiguration(BedrockRerankingModelConfiguration)
.- Parameters:
modelConfiguration
- a consumer that will call methods onBedrockRerankingModelConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
numberOfResults
The number of results to return after reranking.
- Parameters:
numberOfResults
- The number of results to return after reranking.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-