Class CfnRule.PredicateProperty.Builder

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

@Stability(Stable) public static final class CfnRule.PredicateProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnRule.PredicateProperty>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • dataId

      @Stability(Stable) public CfnRule.PredicateProperty.Builder dataId(String dataId)
      Parameters:
      dataId - A unique identifier for a predicate in a Rule , such as ByteMatchSetId or IPSetId . This parameter is required. The ID is returned by the corresponding Create or List command.
      Returns:
      this
    • negated

      @Stability(Stable) public CfnRule.PredicateProperty.Builder negated(Boolean negated)
      Parameters:
      negated - Set Negated to False if you want AWS WAF to allow, block, or count requests based on the settings in the specified ByteMatchSet , IPSet , SqlInjectionMatchSet , XssMatchSet , RegexMatchSet , GeoMatchSet , or SizeConstraintSet . This parameter is required. For example, if an IPSet includes the IP address 192.0.2.44 , AWS WAF will allow or block requests based on that IP address.

      Set Negated to True if you want AWS WAF to allow or block a request based on the negation of the settings in the ByteMatchSet , IPSet , SqlInjectionMatchSet , XssMatchSet , RegexMatchSet , GeoMatchSet , or SizeConstraintSet . For example, if an IPSet includes the IP address 192.0.2.44 , AWS WAF will allow, block, or count requests based on all IP addresses except 192.0.2.44 .

      Returns:
      this
    • negated

      @Stability(Stable) public CfnRule.PredicateProperty.Builder negated(IResolvable negated)
      Parameters:
      negated - Set Negated to False if you want AWS WAF to allow, block, or count requests based on the settings in the specified ByteMatchSet , IPSet , SqlInjectionMatchSet , XssMatchSet , RegexMatchSet , GeoMatchSet , or SizeConstraintSet . This parameter is required. For example, if an IPSet includes the IP address 192.0.2.44 , AWS WAF will allow or block requests based on that IP address.

      Set Negated to True if you want AWS WAF to allow or block a request based on the negation of the settings in the ByteMatchSet , IPSet , SqlInjectionMatchSet , XssMatchSet , RegexMatchSet , GeoMatchSet , or SizeConstraintSet . For example, if an IPSet includes the IP address 192.0.2.44 , AWS WAF will allow, block, or count requests based on all IP addresses except 192.0.2.44 .

      Returns:
      this
    • type

      @Stability(Stable) public CfnRule.PredicateProperty.Builder type(String type)
      Parameters:
      type - The type of predicate in a Rule , such as ByteMatch or IPSet . This parameter is required.
      Returns:
      this
    • build

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