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