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 Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedRulesDefinition class. -
Method Summary
Modifier and TypeMethodDescriptionGet the exceptions property: The exceptions that are applied on the policy.Get the exclusions property: The Exclusions that are applied on the policy.static ManagedRulesDefinitionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedRulesDefinition from the JsonReader.Get the managedRuleSets property: The managed rule sets that are associated with the policy.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withExceptions(List<ExceptionEntry> exceptions) Set the exceptions property: The exceptions that are applied on the policy.withExclusions(List<OwaspCrsExclusionEntry> exclusions) Set the exclusions property: The Exclusions that are applied on the policy.withManagedRuleSets(List<ManagedRuleSet> managedRuleSets) Set the managedRuleSets property: The managed rule sets that are associated with the policy.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ManagedRulesDefinition
public ManagedRulesDefinition()Creates an instance of ManagedRulesDefinition class.
-
-
Method Details
-
exceptions
Get the exceptions property: The exceptions that are applied on the policy.- Returns:
- the exceptions value.
-
withExceptions
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
Get the exclusions property: The Exclusions that are applied on the policy.- Returns:
- the exclusions value.
-
withExclusions
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
Get the managedRuleSets property: The managed rule sets that are associated with the policy.- Returns:
- the managedRuleSets value.
-
withManagedRuleSets
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
- Specified by:
toJsonin interfacecom.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.
-