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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default RerankingConfiguration.BuilderbedrockRerankingConfiguration(Consumer<BedrockRerankingConfiguration.Builder> bedrockRerankingConfiguration)Contains configurations for an Amazon Bedrock reranker.RerankingConfiguration.BuilderbedrockRerankingConfiguration(BedrockRerankingConfiguration bedrockRerankingConfiguration)Contains configurations for an Amazon Bedrock reranker.RerankingConfiguration.Buildertype(String type)The type of reranker that the configurations apply to.RerankingConfiguration.Buildertype(RerankingConfigurationType type)The type of reranker that the configurations apply to.-
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
-
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:
bedrockRerankingConfiguration(BedrockRerankingConfiguration)
-
type
RerankingConfiguration.Builder type(String 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:
RerankingConfigurationType,RerankingConfigurationType
-
type
RerankingConfiguration.Builder type(RerankingConfigurationType 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:
RerankingConfigurationType,RerankingConfigurationType
-
-