Interface RerankingConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RerankingConfiguration.Builder,,RerankingConfiguration> SdkBuilder<RerankingConfiguration.Builder,,RerankingConfiguration> SdkPojo
- Enclosing class:
RerankingConfiguration
@Mutable
@NotThreadSafe
public static interface RerankingConfiguration.Builder
extends SdkPojo, CopyableBuilder<RerankingConfiguration.Builder,RerankingConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptiondefault RerankingConfiguration.BuilderbedrockRerankingConfiguration(Consumer<BedrockRerankingConfiguration.Builder> bedrockRerankingConfiguration) Contains configurations for an Amazon Bedrock reranker.bedrockRerankingConfiguration(BedrockRerankingConfiguration bedrockRerankingConfiguration) Contains configurations for an Amazon Bedrock reranker.The type of reranker that the configurations apply to.The type of reranker that the configurations apply to.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
-
type
The type of reranker that the configurations apply to.
- Parameters:
type- The type of reranker that the configurations apply to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of reranker that the configurations apply to.
- Parameters:
type- The type of reranker that the configurations apply to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bedrockRerankingConfiguration
RerankingConfiguration.Builder bedrockRerankingConfiguration(BedrockRerankingConfiguration bedrockRerankingConfiguration) Contains configurations for an Amazon Bedrock reranker.
- Parameters:
bedrockRerankingConfiguration- Contains configurations for an Amazon Bedrock reranker.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bedrockRerankingConfiguration
default RerankingConfiguration.Builder bedrockRerankingConfiguration(Consumer<BedrockRerankingConfiguration.Builder> bedrockRerankingConfiguration) Contains configurations for an Amazon Bedrock reranker.
This is a convenience method that creates an instance of theBedrockRerankingConfiguration.Builderavoiding the need to create one manually viaBedrockRerankingConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobedrockRerankingConfiguration(BedrockRerankingConfiguration).- Parameters:
bedrockRerankingConfiguration- a consumer that will call methods onBedrockRerankingConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-