Class CfnAgent.GuardrailConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnAgent.GuardrailConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAgent.GuardrailConfigurationProperty>
- Enclosing interface:
CfnAgent.GuardrailConfigurationProperty
@Stability(Stable)
public static final class CfnAgent.GuardrailConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAgent.GuardrailConfigurationProperty>
A builder for
CfnAgent.GuardrailConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.guardrailIdentifier
(String guardrailIdentifier) Sets the value ofCfnAgent.GuardrailConfigurationProperty.getGuardrailIdentifier()
guardrailVersion
(String guardrailVersion) Sets the value ofCfnAgent.GuardrailConfigurationProperty.getGuardrailVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
guardrailIdentifier
@Stability(Stable) public CfnAgent.GuardrailConfigurationProperty.Builder guardrailIdentifier(String guardrailIdentifier) Sets the value ofCfnAgent.GuardrailConfigurationProperty.getGuardrailIdentifier()
- Parameters:
guardrailIdentifier
- The identifier for the guardrail.- Returns:
this
-
guardrailVersion
@Stability(Stable) public CfnAgent.GuardrailConfigurationProperty.Builder guardrailVersion(String guardrailVersion) Sets the value ofCfnAgent.GuardrailConfigurationProperty.getGuardrailVersion()
- Parameters:
guardrailVersion
- The version of the guardrail.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAgent.GuardrailConfigurationProperty>
- Returns:
- a new instance of
CfnAgent.GuardrailConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-