Class CfnGuardrail.RegexConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnGuardrail.RegexConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGuardrail.RegexConfigProperty>
- Enclosing interface:
CfnGuardrail.RegexConfigProperty
@Stability(Stable)
public static final class CfnGuardrail.RegexConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGuardrail.RegexConfigProperty>
A builder for
CfnGuardrail.RegexConfigProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnGuardrail.RegexConfigProperty.getAction()
build()
Builds the configured instance.description
(String description) Sets the value ofCfnGuardrail.RegexConfigProperty.getDescription()
Sets the value ofCfnGuardrail.RegexConfigProperty.getName()
Sets the value ofCfnGuardrail.RegexConfigProperty.getPattern()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
Sets the value ofCfnGuardrail.RegexConfigProperty.getAction()
- Parameters:
action
- The guardrail action to configure when matching regular expression is detected. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnGuardrail.RegexConfigProperty.getName()
- Parameters:
name
- The name of the regular expression to configure for the guardrail. This parameter is required.- Returns:
this
-
pattern
Sets the value ofCfnGuardrail.RegexConfigProperty.getPattern()
- Parameters:
pattern
- The regular expression pattern to configure for the guardrail. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnGuardrail.RegexConfigProperty.getDescription()
- Parameters:
description
- The description of the regular expression to configure for the guardrail.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGuardrail.RegexConfigProperty>
- Returns:
- a new instance of
CfnGuardrail.RegexConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-