Class WebApplicationFirewallCustomRule


  • public final class WebApplicationFirewallCustomRule
    extends Object
    Defines contents of a web application rule.
    • Constructor Detail

      • WebApplicationFirewallCustomRule

        public WebApplicationFirewallCustomRule()
    • Method Detail

      • name

        public String name()
        Get the name property: The name of the resource that is unique within a policy. This name can be used to access the resource.
        Returns:
        the name value.
      • withName

        public WebApplicationFirewallCustomRule withName​(String name)
        Set the name property: The name of the resource that is unique within a policy. This name can be used to access the resource.
        Parameters:
        name - the name value to set.
        Returns:
        the WebApplicationFirewallCustomRule object itself.
      • etag

        public String etag()
        Get the etag property: A unique read-only string that changes whenever the resource is updated.
        Returns:
        the etag value.
      • priority

        public int priority()
        Get the priority property: Priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.
        Returns:
        the priority value.
      • withPriority

        public WebApplicationFirewallCustomRule withPriority​(int priority)
        Set the priority property: Priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.
        Parameters:
        priority - the priority value to set.
        Returns:
        the WebApplicationFirewallCustomRule object itself.
      • matchConditions

        public List<MatchCondition> matchConditions()
        Get the matchConditions property: List of match conditions.
        Returns:
        the matchConditions value.
      • withMatchConditions

        public WebApplicationFirewallCustomRule withMatchConditions​(List<MatchCondition> matchConditions)
        Set the matchConditions property: List of match conditions.
        Parameters:
        matchConditions - the matchConditions value to set.
        Returns:
        the WebApplicationFirewallCustomRule object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.