Class CfnEnforcedGuardrailConfigurationPropsMixin.SelectiveContentGuardingProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnEnforcedGuardrailConfigurationPropsMixin.SelectiveContentGuardingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEnforcedGuardrailConfigurationPropsMixin.SelectiveContentGuardingProperty>
- Enclosing interface:
CfnEnforcedGuardrailConfigurationPropsMixin.SelectiveContentGuardingProperty
@Stability(Stable)
public static final class CfnEnforcedGuardrailConfigurationPropsMixin.SelectiveContentGuardingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEnforcedGuardrailConfigurationPropsMixin.SelectiveContentGuardingProperty>
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
messages
@Stability(Stable) public CfnEnforcedGuardrailConfigurationPropsMixin.SelectiveContentGuardingProperty.Builder messages(String messages) Sets the value ofCfnEnforcedGuardrailConfigurationPropsMixin.SelectiveContentGuardingProperty.getMessages()- Parameters:
messages- Selective guarding mode for user messages.- Returns:
this
-
system
@Stability(Stable) public CfnEnforcedGuardrailConfigurationPropsMixin.SelectiveContentGuardingProperty.Builder system(String system) Sets the value ofCfnEnforcedGuardrailConfigurationPropsMixin.SelectiveContentGuardingProperty.getSystem()- Parameters:
system- Selective guarding mode for system prompts.- Returns:
this
-
build
@Stability(Stable) public CfnEnforcedGuardrailConfigurationPropsMixin.SelectiveContentGuardingProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEnforcedGuardrailConfigurationPropsMixin.SelectiveContentGuardingProperty>- Returns:
- a new instance of
CfnEnforcedGuardrailConfigurationPropsMixin.SelectiveContentGuardingProperty - Throws:
NullPointerException- if any required attribute was not provided
-