Class ApplicationGatewayFirewallRuleGroup

java.lang.Object
com.azure.resourcemanager.network.models.ApplicationGatewayFirewallRuleGroup
All Implemented Interfaces:
com.azure.json.JsonSerializable<ApplicationGatewayFirewallRuleGroup>

public final class ApplicationGatewayFirewallRuleGroup extends Object implements com.azure.json.JsonSerializable<ApplicationGatewayFirewallRuleGroup>
A web application firewall rule group.
  • Constructor Details

    • ApplicationGatewayFirewallRuleGroup

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

    • ruleGroupName

      public String ruleGroupName()
      Get the ruleGroupName property: The name of the web application firewall rule group.
      Returns:
      the ruleGroupName value.
    • withRuleGroupName

      public ApplicationGatewayFirewallRuleGroup withRuleGroupName(String ruleGroupName)
      Set the ruleGroupName property: The name of the web application firewall rule group.
      Parameters:
      ruleGroupName - the ruleGroupName value to set.
      Returns:
      the ApplicationGatewayFirewallRuleGroup object itself.
    • description

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

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

      Get the rules property: The rules of the web application firewall rule group.
      Returns:
      the rules value.
    • withRules

      Set the rules property: The rules of the web application firewall rule group.
      Parameters:
      rules - the rules value to set.
      Returns:
      the ApplicationGatewayFirewallRuleGroup object itself.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ApplicationGatewayFirewallRuleGroup>
      Throws:
      IOException
    • fromJson

      public static ApplicationGatewayFirewallRuleGroup fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ApplicationGatewayFirewallRuleGroup from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ApplicationGatewayFirewallRuleGroup if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ApplicationGatewayFirewallRuleGroup.