Class ApplicationGatewayFirewallRule

java.lang.Object
com.azure.resourcemanager.network.models.ApplicationGatewayFirewallRule

public final class ApplicationGatewayFirewallRule extends Object
A web application firewall rule.
  • Constructor Details

    • ApplicationGatewayFirewallRule

      public ApplicationGatewayFirewallRule()
      Creates an instance of ApplicationGatewayFirewallRule class.
  • Method Details

    • ruleId

      public int ruleId()
      Get the ruleId property: The identifier of the web application firewall rule.
      Returns:
      the ruleId value.
    • withRuleId

      public ApplicationGatewayFirewallRule withRuleId(int ruleId)
      Set the ruleId property: The identifier of the web application firewall rule.
      Parameters:
      ruleId - the ruleId value to set.
      Returns:
      the ApplicationGatewayFirewallRule object itself.
    • ruleIdString

      public String ruleIdString()
      Get the ruleIdString property: The string representation of the web application firewall rule identifier.
      Returns:
      the ruleIdString value.
    • withRuleIdString

      public ApplicationGatewayFirewallRule withRuleIdString(String ruleIdString)
      Set the ruleIdString property: The string representation of the web application firewall rule identifier.
      Parameters:
      ruleIdString - the ruleIdString value to set.
      Returns:
      the ApplicationGatewayFirewallRule object itself.
    • state

      Get the state property: The string representation of the web application firewall rule state.
      Returns:
      the state value.
    • withState

      Set the state property: The string representation of the web application firewall rule state.
      Parameters:
      state - the state value to set.
      Returns:
      the ApplicationGatewayFirewallRule object itself.
    • action

      Get the action property: The string representation of the web application firewall rule action.
      Returns:
      the action value.
    • withAction

      Set the action property: The string representation of the web application firewall rule action.
      Parameters:
      action - the action value to set.
      Returns:
      the ApplicationGatewayFirewallRule object itself.
    • description

      public String description()
      Get the description property: The description of the web application firewall rule.
      Returns:
      the description value.
    • withDescription

      public ApplicationGatewayFirewallRule withDescription(String description)
      Set the description property: The description of the web application firewall rule.
      Parameters:
      description - the description value to set.
      Returns:
      the ApplicationGatewayFirewallRule object itself.
    • validate

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