Class CfnFlow.VectorSearchRerankingConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnFlow.VectorSearchRerankingConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlow.VectorSearchRerankingConfigurationProperty>
- Enclosing interface:
CfnFlow.VectorSearchRerankingConfigurationProperty
@Stability(Stable)
public static final class CfnFlow.VectorSearchRerankingConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlow.VectorSearchRerankingConfigurationProperty>
A builder for
CfnFlow.VectorSearchRerankingConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbedrockRerankingConfiguration(IResolvable bedrockRerankingConfiguration) bedrockRerankingConfiguration(CfnFlow.VectorSearchBedrockRerankingConfigurationProperty bedrockRerankingConfiguration) build()Builds the configured instance.Sets the value ofCfnFlow.VectorSearchRerankingConfigurationProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
@Stability(Stable) public CfnFlow.VectorSearchRerankingConfigurationProperty.Builder type(String type) Sets the value ofCfnFlow.VectorSearchRerankingConfigurationProperty.getType()- Parameters:
type- The type of reranking to apply to vector search results. This parameter is required. Currently, the only supported value is BEDROCK, which uses Amazon Bedrock foundation models for reranking.- Returns:
this
-
bedrockRerankingConfiguration
@Stability(Stable) public CfnFlow.VectorSearchRerankingConfigurationProperty.Builder bedrockRerankingConfiguration(IResolvable bedrockRerankingConfiguration) Sets the value ofCfnFlow.VectorSearchRerankingConfigurationProperty.getBedrockRerankingConfiguration()- Parameters:
bedrockRerankingConfiguration- Configuration for using Amazon Bedrock foundation models to rerank search results. This is required when the reranking type is set to BEDROCK.- Returns:
this
-
bedrockRerankingConfiguration
@Stability(Stable) public CfnFlow.VectorSearchRerankingConfigurationProperty.Builder bedrockRerankingConfiguration(CfnFlow.VectorSearchBedrockRerankingConfigurationProperty bedrockRerankingConfiguration) Sets the value ofCfnFlow.VectorSearchRerankingConfigurationProperty.getBedrockRerankingConfiguration()- Parameters:
bedrockRerankingConfiguration- Configuration for using Amazon Bedrock foundation models to rerank search results. This is required when the reranking type is set to BEDROCK.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFlow.VectorSearchRerankingConfigurationProperty>- Returns:
- a new instance of
CfnFlow.VectorSearchRerankingConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-