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