Class CfnEnforcedGuardrailConfiguration.ModelEnforcementProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnEnforcedGuardrailConfiguration.ModelEnforcementProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEnforcedGuardrailConfiguration.ModelEnforcementProperty>
- Enclosing interface:
CfnEnforcedGuardrailConfiguration.ModelEnforcementProperty
@Stability(Stable)
public static final class CfnEnforcedGuardrailConfiguration.ModelEnforcementProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEnforcedGuardrailConfiguration.ModelEnforcementProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.excludedModels(List<String> excludedModels) includedModels(List<String> includedModels)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
excludedModels
@Stability(Stable) public CfnEnforcedGuardrailConfiguration.ModelEnforcementProperty.Builder excludedModels(List<String> excludedModels) - Parameters:
excludedModels- Models to exclude from enforcement. This parameter is required. If a model is in both lists, it is excluded- Returns:
this
-
includedModels
@Stability(Stable) public CfnEnforcedGuardrailConfiguration.ModelEnforcementProperty.Builder includedModels(List<String> includedModels) - Parameters:
includedModels- Models to enforce the guardrail on. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEnforcedGuardrailConfiguration.ModelEnforcementProperty>- Returns:
- a new instance of
CfnEnforcedGuardrailConfiguration.ModelEnforcementProperty - Throws:
NullPointerException- if any required attribute was not provided
-