Package io.github.cdklabs.cdknag
Class RegexAppliesTo.Builder
- java.lang.Object
-
- io.github.cdklabs.cdknag.RegexAppliesTo.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<RegexAppliesTo>
- Enclosing interface:
- RegexAppliesTo
@Stability(Stable) public static final class RegexAppliesTo.Builder extends Object implements software.amazon.jsii.Builder<RegexAppliesTo>
A builder forRegexAppliesTo
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegexAppliesTobuild()Builds the configured instance.RegexAppliesTo.Builderregex(String regex)Sets the value ofRegexAppliesTo.getRegex()
-
-
-
Method Detail
-
regex
@Stability(Stable) public RegexAppliesTo.Builder regex(String regex)
Sets the value ofRegexAppliesTo.getRegex()- Parameters:
regex- An ECMA-262 regex string. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public RegexAppliesTo build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<RegexAppliesTo>- Returns:
- a new instance of
RegexAppliesTo - Throws:
NullPointerException- if any required attribute was not provided
-
-