Class WebApplicationFirewallCustomRule

java.lang.Object
com.microsoft.azure.management.network.WebApplicationFirewallCustomRule

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

    • WebApplicationFirewallCustomRule

      public WebApplicationFirewallCustomRule()
  • Method Details

    • name

      public String name()
      Get 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 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 a unique read-only string that changes whenever the resource is updated.
      Returns:
      the etag value
    • priority

      public int priority()
      Get 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 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.
    • ruleType

      public WebApplicationFirewallRuleType ruleType()
      Get the rule type. Possible values include: 'MatchRule', 'Invalid'.
      Returns:
      the ruleType value
    • withRuleType

      Set the rule type. Possible values include: 'MatchRule', 'Invalid'.
      Parameters:
      ruleType - the ruleType value to set
      Returns:
      the WebApplicationFirewallCustomRule object itself.
    • matchConditions

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

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

      Get type of Actions. Possible values include: 'Allow', 'Block', 'Log'.
      Returns:
      the action value
    • withAction

      Set type of Actions. Possible values include: 'Allow', 'Block', 'Log'.
      Parameters:
      action - the action value to set
      Returns:
      the WebApplicationFirewallCustomRule object itself.