Class CfnFlowVersion.KnowledgeBaseOrchestrationConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnFlowVersion.KnowledgeBaseOrchestrationConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlowVersion.KnowledgeBaseOrchestrationConfigurationProperty>
- Enclosing interface:
CfnFlowVersion.KnowledgeBaseOrchestrationConfigurationProperty
@Stability(Stable)
public static final class CfnFlowVersion.KnowledgeBaseOrchestrationConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlowVersion.KnowledgeBaseOrchestrationConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalModelRequestFields(Object additionalModelRequestFields) build()Builds the configured instance.inferenceConfig(IResolvable inferenceConfig) inferenceConfig(CfnFlowVersion.PromptInferenceConfigurationProperty inferenceConfig) performanceConfig(IResolvable performanceConfig) performanceConfig(CfnFlowVersion.PerformanceConfigurationProperty performanceConfig) promptTemplate(IResolvable promptTemplate) promptTemplate(CfnFlowVersion.KnowledgeBasePromptTemplateProperty promptTemplate)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
additionalModelRequestFields
@Stability(Stable) public CfnFlowVersion.KnowledgeBaseOrchestrationConfigurationProperty.Builder additionalModelRequestFields(Object additionalModelRequestFields) Sets the value ofCfnFlowVersion.KnowledgeBaseOrchestrationConfigurationProperty.getAdditionalModelRequestFields()- Parameters:
additionalModelRequestFields- The additional model-specific request parameters as key-value pairs to be included in the request to the foundation model.- Returns:
this
-
inferenceConfig
@Stability(Stable) public CfnFlowVersion.KnowledgeBaseOrchestrationConfigurationProperty.Builder inferenceConfig(IResolvable inferenceConfig) Sets the value ofCfnFlowVersion.KnowledgeBaseOrchestrationConfigurationProperty.getInferenceConfig()- Parameters:
inferenceConfig- Contains inference configurations for the prompt.- Returns:
this
-
inferenceConfig
@Stability(Stable) public CfnFlowVersion.KnowledgeBaseOrchestrationConfigurationProperty.Builder inferenceConfig(CfnFlowVersion.PromptInferenceConfigurationProperty inferenceConfig) Sets the value ofCfnFlowVersion.KnowledgeBaseOrchestrationConfigurationProperty.getInferenceConfig()- Parameters:
inferenceConfig- Contains inference configurations for the prompt.- Returns:
this
-
performanceConfig
@Stability(Stable) public CfnFlowVersion.KnowledgeBaseOrchestrationConfigurationProperty.Builder performanceConfig(IResolvable performanceConfig) Sets the value ofCfnFlowVersion.KnowledgeBaseOrchestrationConfigurationProperty.getPerformanceConfig()- Parameters:
performanceConfig- The performance configuration options for the knowledge base retrieval and generation process.- Returns:
this
-
performanceConfig
@Stability(Stable) public CfnFlowVersion.KnowledgeBaseOrchestrationConfigurationProperty.Builder performanceConfig(CfnFlowVersion.PerformanceConfigurationProperty performanceConfig) Sets the value ofCfnFlowVersion.KnowledgeBaseOrchestrationConfigurationProperty.getPerformanceConfig()- Parameters:
performanceConfig- The performance configuration options for the knowledge base retrieval and generation process.- Returns:
this
-
promptTemplate
@Stability(Stable) public CfnFlowVersion.KnowledgeBaseOrchestrationConfigurationProperty.Builder promptTemplate(IResolvable promptTemplate) Sets the value ofCfnFlowVersion.KnowledgeBaseOrchestrationConfigurationProperty.getPromptTemplate()- Parameters:
promptTemplate- A custom prompt template for orchestrating the retrieval and generation process.- Returns:
this
-
promptTemplate
@Stability(Stable) public CfnFlowVersion.KnowledgeBaseOrchestrationConfigurationProperty.Builder promptTemplate(CfnFlowVersion.KnowledgeBasePromptTemplateProperty promptTemplate) Sets the value ofCfnFlowVersion.KnowledgeBaseOrchestrationConfigurationProperty.getPromptTemplate()- Parameters:
promptTemplate- A custom prompt template for orchestrating the retrieval and generation process.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFlowVersion.KnowledgeBaseOrchestrationConfigurationProperty>- Returns:
- a new instance of
CfnFlowVersion.KnowledgeBaseOrchestrationConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-