Class CfnGuardrail.WordConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnGuardrail.WordConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGuardrail.WordConfigProperty>
- Enclosing interface:
CfnGuardrail.WordConfigProperty
@Stability(Stable)
public static final class CfnGuardrail.WordConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGuardrail.WordConfigProperty>
A builder for
CfnGuardrail.WordConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnGuardrail.WordConfigProperty.getText()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
text
Sets the value ofCfnGuardrail.WordConfigProperty.getText()
- Parameters:
text
- Text of the word configured for the guardrail to block. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGuardrail.WordConfigProperty>
- Returns:
- a new instance of
CfnGuardrail.WordConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-