Class ManagedRuleGroupDefinition

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

public final class ManagedRuleGroupDefinition extends Object implements com.azure.json.JsonSerializable<ManagedRuleGroupDefinition>
Describes a managed rule group.
  • Constructor Details

    • ManagedRuleGroupDefinition

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

    • ruleGroupName

      public String ruleGroupName()
      Get the ruleGroupName property: Name of the managed rule group.
      Returns:
      the ruleGroupName value.
    • description

      public String description()
      Get the description property: Description of the managed rule group.
      Returns:
      the description value.
    • rules

      public List<ManagedRuleDefinition> rules()
      Get the rules property: List of rules within the managed rule group.
      Returns:
      the rules value.
    • 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<ManagedRuleGroupDefinition>
      Throws:
      IOException
    • fromJson

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