Class ManagedRuleSetList

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

public final class ManagedRuleSetList extends Object implements com.azure.json.JsonSerializable<ManagedRuleSetList>
Defines the list of managed rule sets for the policy.
  • Constructor Details

    • ManagedRuleSetList

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

    • managedRuleSets

      public List<ManagedRuleSet> managedRuleSets()
      Get the managedRuleSets property: List of rule sets.
      Returns:
      the managedRuleSets value.
    • withManagedRuleSets

      public ManagedRuleSetList withManagedRuleSets(List<ManagedRuleSet> managedRuleSets)
      Set the managedRuleSets property: List of rule sets.
      Parameters:
      managedRuleSets - the managedRuleSets value to set.
      Returns:
      the ManagedRuleSetList 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<ManagedRuleSetList>
      Throws:
      IOException
    • fromJson

      public static ManagedRuleSetList fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ManagedRuleSetList from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ManagedRuleSetList 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 ManagedRuleSetList.