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