Class ManagedRulesDefinition

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

public final class ManagedRulesDefinition extends Object implements com.azure.json.JsonSerializable<ManagedRulesDefinition>
Allow to exclude some variable satisfy the condition for the WAF check.
  • Constructor Details

    • ManagedRulesDefinition

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

    • exceptions

      public List<ExceptionEntry> exceptions()
      Get the exceptions property: The exceptions that are applied on the policy.
      Returns:
      the exceptions value.
    • withExceptions

      public ManagedRulesDefinition withExceptions(List<ExceptionEntry> exceptions)
      Set the exceptions property: The exceptions that are applied on the policy.
      Parameters:
      exceptions - the exceptions value to set.
      Returns:
      the ManagedRulesDefinition object itself.
    • exclusions

      public List<OwaspCrsExclusionEntry> exclusions()
      Get the exclusions property: The Exclusions that are applied on the policy.
      Returns:
      the exclusions value.
    • withExclusions

      public ManagedRulesDefinition withExclusions(List<OwaspCrsExclusionEntry> exclusions)
      Set the exclusions property: The Exclusions that are applied on the policy.
      Parameters:
      exclusions - the exclusions value to set.
      Returns:
      the ManagedRulesDefinition object itself.
    • managedRuleSets

      public List<ManagedRuleSet> managedRuleSets()
      Get the managedRuleSets property: The managed rule sets that are associated with the policy.
      Returns:
      the managedRuleSets value.
    • withManagedRuleSets

      public ManagedRulesDefinition withManagedRuleSets(List<ManagedRuleSet> managedRuleSets)
      Set the managedRuleSets property: The managed rule sets that are associated with the policy.
      Parameters:
      managedRuleSets - the managedRuleSets value to set.
      Returns:
      the ManagedRulesDefinition 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<ManagedRulesDefinition>
      Throws:
      IOException
    • fromJson

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