Class CfnRegexPatternSet.Builder

java.lang.Object
software.amazon.awscdk.services.waf.regional.CfnRegexPatternSet.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRegexPatternSet>
Enclosing class:
CfnRegexPatternSet

@Stability(Stable) public static final class CfnRegexPatternSet.Builder extends Object implements software.amazon.jsii.Builder<CfnRegexPatternSet>
A fluent builder for CfnRegexPatternSet.
  • Method Details

    • create

      @Stability(Stable) public static CfnRegexPatternSet.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnRegexPatternSet.Builder.
    • name

      @Stability(Stable) public CfnRegexPatternSet.Builder name(String name)
      A friendly name or description of the RegexPatternSet .

      You can't change Name after you create a RegexPatternSet .

      Parameters:
      name - A friendly name or description of the RegexPatternSet . This parameter is required.
      Returns:
      this
    • regexPatternStrings

      @Stability(Stable) public CfnRegexPatternSet.Builder regexPatternStrings(List<String> regexPatternStrings)
      Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as B[a@]dB[o0]t .

      Parameters:
      regexPatternStrings - Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as B[a@]dB[o0]t . This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnRegexPatternSet build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnRegexPatternSet>
      Returns:
      a newly built instance of CfnRegexPatternSet.