java.lang.Object
software.amazon.awscdk.mixins.preview.services.wafregional.mixins.CfnRuleMixinProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleMixinProps>
Enclosing interface:
CfnRuleMixinProps

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

    • Builder

      public Builder()
  • Method Details

    • metricName

      @Stability(Stable) public CfnRuleMixinProps.Builder metricName(String metricName)
      Parameters:
      metricName - A name for the metrics for this Rule . 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 CfnRuleMixinProps.Builder name(String name)
      Sets the value of CfnRuleMixinProps.getName()
      Parameters:
      name - The friendly name or description for the Rule . You can't change the name of a Rule after you create it.
      Returns:
      this
    • predicates

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