Class CfnRuleProps.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • metricName

      @Stability(Stable) public CfnRuleProps.Builder metricName(String metricName)
      Parameters:
      metricName - A name for the metrics for this Rule . This parameter is required. The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change MetricName after you create the Rule .
      Returns:
      this
    • name

      @Stability(Stable) public CfnRuleProps.Builder name(String name)
      Sets the value of CfnRuleProps.getName()
      Parameters:
      name - The friendly name or description for the Rule . This parameter is required. You can't change the name of a Rule after you create it.
      Returns:
      this
    • predicates

      @Stability(Stable) public CfnRuleProps.Builder predicates(IResolvable predicates)
      Parameters:
      predicates - The Predicates object contains one Predicate element for each ByteMatchSet , IPSet , or SqlInjectionMatchSet object that you want to include in a Rule .
      Returns:
      this
    • predicates

      @Stability(Stable) public CfnRuleProps.Builder predicates(List<? extends Object> predicates)
      Parameters:
      predicates - The Predicates object contains one Predicate element for each ByteMatchSet , IPSet , or SqlInjectionMatchSet object that you want to include in a Rule .
      Returns:
      this
    • build

      @Stability(Stable) public CfnRuleProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnRuleProps>
      Returns:
      a new instance of CfnRuleProps
      Throws:
      NullPointerException - if any required attribute was not provided