Class CfnFlowVersion.VectorSearchBedrockRerankingModelConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnFlowVersion.VectorSearchBedrockRerankingModelConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlowVersion.VectorSearchBedrockRerankingModelConfigurationProperty>
- Enclosing interface:
CfnFlowVersion.VectorSearchBedrockRerankingModelConfigurationProperty
@Stability(Stable)
public static final class CfnFlowVersion.VectorSearchBedrockRerankingModelConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlowVersion.VectorSearchBedrockRerankingModelConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalModelRequestFields
(Object additionalModelRequestFields) build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
modelArn
@Stability(Stable) public CfnFlowVersion.VectorSearchBedrockRerankingModelConfigurationProperty.Builder modelArn(String modelArn) Sets the value ofCfnFlowVersion.VectorSearchBedrockRerankingModelConfigurationProperty.getModelArn()
- Parameters:
modelArn
- The Amazon Resource Name (ARN) of the foundation model to use for reranking. This parameter is required. This model processes the query and search results to determine a more relevant ordering.- Returns:
this
-
additionalModelRequestFields
@Stability(Stable) public CfnFlowVersion.VectorSearchBedrockRerankingModelConfigurationProperty.Builder additionalModelRequestFields(Object additionalModelRequestFields) Sets the value ofCfnFlowVersion.VectorSearchBedrockRerankingModelConfigurationProperty.getAdditionalModelRequestFields()
- Parameters:
additionalModelRequestFields
- A list of additional fields to include in the model request during reranking. These fields provide extra context or configuration options specific to the selected foundation model.- Returns:
this
-
build
@Stability(Stable) public CfnFlowVersion.VectorSearchBedrockRerankingModelConfigurationProperty build()Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFlowVersion.VectorSearchBedrockRerankingModelConfigurationProperty>
- Returns:
- a new instance of
CfnFlowVersion.VectorSearchBedrockRerankingModelConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-