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