Class CfnRegexPatternSetProps.Builder
java.lang.Object
software.amazon.awscdk.services.waf.regional.CfnRegexPatternSetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRegexPatternSetProps>
- Enclosing interface:
- CfnRegexPatternSetProps
@Stability(Stable)
public static final class CfnRegexPatternSetProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRegexPatternSetProps>
A builder for
CfnRegexPatternSetProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnRegexPatternSetProps.getName()
regexPatternStrings
(List<String> regexPatternStrings) Sets the value ofCfnRegexPatternSetProps.getRegexPatternStrings()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnRegexPatternSetProps.getName()
- Parameters:
name
- A friendly name or description of theRegexPatternSet
. This parameter is required. You can't changeName
after you create aRegexPatternSet
.- Returns:
this
-
regexPatternStrings
@Stability(Stable) public CfnRegexPatternSetProps.Builder regexPatternStrings(List<String> regexPatternStrings) Sets the value ofCfnRegexPatternSetProps.getRegexPatternStrings()
- Parameters:
regexPatternStrings
- Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such asB[a@]dB[o0]t
. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRegexPatternSetProps>
- Returns:
- a new instance of
CfnRegexPatternSetProps
- Throws:
NullPointerException
- if any required attribute was not provided
-