Class CfnBotPropsMixin.BedrockModelSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.BedrockModelSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.BedrockModelSpecificationProperty>
- Enclosing interface:
CfnBotPropsMixin.BedrockModelSpecificationProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.BedrockModelSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.BedrockModelSpecificationProperty>
A builder for
CfnBotPropsMixin.BedrockModelSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbedrockGuardrailConfiguration(CfnBotPropsMixin.BedrockGuardrailConfigurationProperty bedrockGuardrailConfiguration) bedrockGuardrailConfiguration(IResolvable bedrockGuardrailConfiguration) bedrockModelCustomPrompt(String bedrockModelCustomPrompt) bedrockTraceStatus(String bedrockTraceStatus) build()Builds the configured instance.Sets the value ofCfnBotPropsMixin.BedrockModelSpecificationProperty.getModelArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bedrockGuardrailConfiguration
@Stability(Stable) public CfnBotPropsMixin.BedrockModelSpecificationProperty.Builder bedrockGuardrailConfiguration(IResolvable bedrockGuardrailConfiguration) Sets the value ofCfnBotPropsMixin.BedrockModelSpecificationProperty.getBedrockGuardrailConfiguration()- Parameters:
bedrockGuardrailConfiguration- the value to be set.- Returns:
this
-
bedrockGuardrailConfiguration
@Stability(Stable) public CfnBotPropsMixin.BedrockModelSpecificationProperty.Builder bedrockGuardrailConfiguration(CfnBotPropsMixin.BedrockGuardrailConfigurationProperty bedrockGuardrailConfiguration) Sets the value ofCfnBotPropsMixin.BedrockModelSpecificationProperty.getBedrockGuardrailConfiguration()- Parameters:
bedrockGuardrailConfiguration- the value to be set.- Returns:
this
-
bedrockModelCustomPrompt
@Stability(Stable) public CfnBotPropsMixin.BedrockModelSpecificationProperty.Builder bedrockModelCustomPrompt(String bedrockModelCustomPrompt) - Parameters:
bedrockModelCustomPrompt- the value to be set.- Returns:
this
-
bedrockTraceStatus
@Stability(Stable) public CfnBotPropsMixin.BedrockModelSpecificationProperty.Builder bedrockTraceStatus(String bedrockTraceStatus) - Parameters:
bedrockTraceStatus- the value to be set.- Returns:
this
-
modelArn
@Stability(Stable) public CfnBotPropsMixin.BedrockModelSpecificationProperty.Builder modelArn(String modelArn) Sets the value ofCfnBotPropsMixin.BedrockModelSpecificationProperty.getModelArn()- Parameters:
modelArn- The ARN of the foundation model used in descriptive bot building.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.BedrockModelSpecificationProperty>- Returns:
- a new instance of
CfnBotPropsMixin.BedrockModelSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-