Class CfnAgent.PromptOverrideConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnAgent.PromptOverrideConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAgent.PromptOverrideConfigurationProperty>
- Enclosing interface:
CfnAgent.PromptOverrideConfigurationProperty
@Stability(Stable)
public static final class CfnAgent.PromptOverrideConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAgent.PromptOverrideConfigurationProperty>
A builder for
CfnAgent.PromptOverrideConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.overrideLambda
(String overrideLambda) Sets the value ofCfnAgent.PromptOverrideConfigurationProperty.getOverrideLambda()
promptConfigurations
(List<? extends Object> promptConfigurations) Sets the value ofCfnAgent.PromptOverrideConfigurationProperty.getPromptConfigurations()
promptConfigurations
(IResolvable promptConfigurations) Sets the value ofCfnAgent.PromptOverrideConfigurationProperty.getPromptConfigurations()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
promptConfigurations
@Stability(Stable) public CfnAgent.PromptOverrideConfigurationProperty.Builder promptConfigurations(IResolvable promptConfigurations) Sets the value ofCfnAgent.PromptOverrideConfigurationProperty.getPromptConfigurations()
- Parameters:
promptConfigurations
- Contains configurations to override a prompt template in one part of an agent sequence. This parameter is required. For more information, see Advanced prompts .- Returns:
this
-
promptConfigurations
@Stability(Stable) public CfnAgent.PromptOverrideConfigurationProperty.Builder promptConfigurations(List<? extends Object> promptConfigurations) Sets the value ofCfnAgent.PromptOverrideConfigurationProperty.getPromptConfigurations()
- Parameters:
promptConfigurations
- Contains configurations to override a prompt template in one part of an agent sequence. This parameter is required. For more information, see Advanced prompts .- Returns:
this
-
overrideLambda
@Stability(Stable) public CfnAgent.PromptOverrideConfigurationProperty.Builder overrideLambda(String overrideLambda) Sets the value ofCfnAgent.PromptOverrideConfigurationProperty.getOverrideLambda()
- Parameters:
overrideLambda
- The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent sequence. If you specify this field, at least one of thepromptConfigurations
must contain aparserMode
value that is set toOVERRIDDEN
. For more information, see Parser Lambda function in Amazon Bedrock Agents .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAgent.PromptOverrideConfigurationProperty>
- Returns:
- a new instance of
CfnAgent.PromptOverrideConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-