Class CfnEnforcedGuardrailConfigurationMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnEnforcedGuardrailConfigurationMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEnforcedGuardrailConfigurationMixinProps>
- Enclosing interface:
CfnEnforcedGuardrailConfigurationMixinProps
@Stability(Stable)
public static final class CfnEnforcedGuardrailConfigurationMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEnforcedGuardrailConfigurationMixinProps>
A builder for
CfnEnforcedGuardrailConfigurationMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.guardrailIdentifier(String guardrailIdentifier) Sets the value ofCfnEnforcedGuardrailConfigurationMixinProps.getGuardrailIdentifier()guardrailVersion(String guardrailVersion) Sets the value ofCfnEnforcedGuardrailConfigurationMixinProps.getGuardrailVersion()modelEnforcement(CfnEnforcedGuardrailConfigurationPropsMixin.ModelEnforcementProperty modelEnforcement) Sets the value ofCfnEnforcedGuardrailConfigurationMixinProps.getModelEnforcement()modelEnforcement(IResolvable modelEnforcement) Sets the value ofCfnEnforcedGuardrailConfigurationMixinProps.getModelEnforcement()selectiveContentGuarding(CfnEnforcedGuardrailConfigurationPropsMixin.SelectiveContentGuardingProperty selectiveContentGuarding) selectiveContentGuarding(IResolvable selectiveContentGuarding)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
guardrailIdentifier
@Stability(Stable) public CfnEnforcedGuardrailConfigurationMixinProps.Builder guardrailIdentifier(String guardrailIdentifier) Sets the value ofCfnEnforcedGuardrailConfigurationMixinProps.getGuardrailIdentifier()- Parameters:
guardrailIdentifier- Identifier for the guardrail, could be the ID or the ARN.- Returns:
this
-
guardrailVersion
@Stability(Stable) public CfnEnforcedGuardrailConfigurationMixinProps.Builder guardrailVersion(String guardrailVersion) Sets the value ofCfnEnforcedGuardrailConfigurationMixinProps.getGuardrailVersion()- Parameters:
guardrailVersion- Numerical guardrail version (not DRAFT).- Returns:
this
-
modelEnforcement
@Stability(Stable) public CfnEnforcedGuardrailConfigurationMixinProps.Builder modelEnforcement(IResolvable modelEnforcement) Sets the value ofCfnEnforcedGuardrailConfigurationMixinProps.getModelEnforcement()- Parameters:
modelEnforcement- Model-specific information for the enforced guardrail configuration. If not present, the configuration is enforced on all models- Returns:
this
-
modelEnforcement
@Stability(Stable) public CfnEnforcedGuardrailConfigurationMixinProps.Builder modelEnforcement(CfnEnforcedGuardrailConfigurationPropsMixin.ModelEnforcementProperty modelEnforcement) Sets the value ofCfnEnforcedGuardrailConfigurationMixinProps.getModelEnforcement()- Parameters:
modelEnforcement- Model-specific information for the enforced guardrail configuration. If not present, the configuration is enforced on all models- Returns:
this
-
selectiveContentGuarding
@Stability(Stable) public CfnEnforcedGuardrailConfigurationMixinProps.Builder selectiveContentGuarding(IResolvable selectiveContentGuarding) - Parameters:
selectiveContentGuarding- Selective content guarding controls for enforced guardrails.- Returns:
this
-
selectiveContentGuarding
@Stability(Stable) public CfnEnforcedGuardrailConfigurationMixinProps.Builder selectiveContentGuarding(CfnEnforcedGuardrailConfigurationPropsMixin.SelectiveContentGuardingProperty selectiveContentGuarding) - Parameters:
selectiveContentGuarding- Selective content guarding controls for enforced guardrails.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEnforcedGuardrailConfigurationMixinProps>- Returns:
- a new instance of
CfnEnforcedGuardrailConfigurationMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-