Class CfnBot.SlotValueRegexFilterProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.SlotValueRegexFilterProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.SlotValueRegexFilterProperty>
- Enclosing interface:
CfnBot.SlotValueRegexFilterProperty
@Stability(Stable)
public static final class CfnBot.SlotValueRegexFilterProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.SlotValueRegexFilterProperty>
A builder for
CfnBot.SlotValueRegexFilterProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnBot.SlotValueRegexFilterProperty.getPattern()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
pattern
Sets the value ofCfnBot.SlotValueRegexFilterProperty.getPattern()- Parameters:
pattern- A regular expression used to validate the value of a slot. This parameter is required. Use a standard regular expression. Amazon Lex supports the following characters in the regular expression:- A-Z, a-z
- 0-9
- Unicode characters ("\u
")
Represent Unicode characters with four digits, for example "\u0041" or "\u005A".
The following regular expression operators are not supported:
- Infinite repeaters: *, +, or {x,} with no upper bound.
- Wild card (.)
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBot.SlotValueRegexFilterProperty>- Returns:
- a new instance of
CfnBot.SlotValueRegexFilterProperty - Throws:
NullPointerException- if any required attribute was not provided
-