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