Class CfnGuardrailPropsMixin.WordPolicyConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.bedrock.mixins.CfnGuardrailPropsMixin.WordPolicyConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGuardrailPropsMixin.WordPolicyConfigProperty>
- Enclosing interface:
CfnGuardrailPropsMixin.WordPolicyConfigProperty
@Stability(Stable)
public static final class CfnGuardrailPropsMixin.WordPolicyConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGuardrailPropsMixin.WordPolicyConfigProperty>
A builder for
CfnGuardrailPropsMixin.WordPolicyConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.managedWordListsConfig(List<? extends Object> managedWordListsConfig) managedWordListsConfig(IResolvable managedWordListsConfig) wordsConfig(List<? extends Object> wordsConfig) Sets the value ofCfnGuardrailPropsMixin.WordPolicyConfigProperty.getWordsConfig()wordsConfig(IResolvable wordsConfig) Sets the value ofCfnGuardrailPropsMixin.WordPolicyConfigProperty.getWordsConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
managedWordListsConfig
@Stability(Stable) public CfnGuardrailPropsMixin.WordPolicyConfigProperty.Builder managedWordListsConfig(IResolvable managedWordListsConfig) - Parameters:
managedWordListsConfig- A list of managed words to configure for the guardrail.- Returns:
this
-
managedWordListsConfig
@Stability(Stable) public CfnGuardrailPropsMixin.WordPolicyConfigProperty.Builder managedWordListsConfig(List<? extends Object> managedWordListsConfig) - Parameters:
managedWordListsConfig- A list of managed words to configure for the guardrail.- Returns:
this
-
wordsConfig
@Stability(Stable) public CfnGuardrailPropsMixin.WordPolicyConfigProperty.Builder wordsConfig(IResolvable wordsConfig) Sets the value ofCfnGuardrailPropsMixin.WordPolicyConfigProperty.getWordsConfig()- Parameters:
wordsConfig- A list of words to configure for the guardrail.- Returns:
this
-
wordsConfig
@Stability(Stable) public CfnGuardrailPropsMixin.WordPolicyConfigProperty.Builder wordsConfig(List<? extends Object> wordsConfig) Sets the value ofCfnGuardrailPropsMixin.WordPolicyConfigProperty.getWordsConfig()- Parameters:
wordsConfig- A list of words to configure for the guardrail.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGuardrailPropsMixin.WordPolicyConfigProperty>- Returns:
- a new instance of
CfnGuardrailPropsMixin.WordPolicyConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-