Class OwaspCrsExclusionEntry
java.lang.Object
com.azure.resourcemanager.network.models.OwaspCrsExclusionEntry
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OwaspCrsExclusionEntry>
public final class OwaspCrsExclusionEntry
extends Object
implements com.azure.json.JsonSerializable<OwaspCrsExclusionEntry>
Allow to exclude some variable satisfy the condition for the WAF check.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OwaspCrsExclusionEntry class. -
Method Summary
Modifier and TypeMethodDescriptionGet the exclusionManagedRuleSets property: The managed rule sets that are associated with the exclusion.static OwaspCrsExclusionEntryfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OwaspCrsExclusionEntry from the JsonReader.Get the matchVariable property: The variable to be excluded.selector()Get the selector property: When matchVariable is a collection, operator used to specify which elements in the collection this exclusion applies to.Get the selectorMatchOperator property: When matchVariable is a collection, operate on the selector to specify which elements in the collection this exclusion applies to.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withExclusionManagedRuleSets(List<ExclusionManagedRuleSet> exclusionManagedRuleSets) Set the exclusionManagedRuleSets property: The managed rule sets that are associated with the exclusion.withMatchVariable(OwaspCrsExclusionEntryMatchVariable matchVariable) Set the matchVariable property: The variable to be excluded.withSelector(String selector) Set the selector property: When matchVariable is a collection, operator used to specify which elements in the collection this exclusion applies to.withSelectorMatchOperator(OwaspCrsExclusionEntrySelectorMatchOperator selectorMatchOperator) Set the selectorMatchOperator property: When matchVariable is a collection, operate on the selector to specify which elements in the collection this exclusion applies to.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
-
OwaspCrsExclusionEntry
public OwaspCrsExclusionEntry()Creates an instance of OwaspCrsExclusionEntry class.
-
-
Method Details
-
matchVariable
Get the matchVariable property: The variable to be excluded.- Returns:
- the matchVariable value.
-
withMatchVariable
Set the matchVariable property: The variable to be excluded.- Parameters:
matchVariable- the matchVariable value to set.- Returns:
- the OwaspCrsExclusionEntry object itself.
-
selectorMatchOperator
Get the selectorMatchOperator property: When matchVariable is a collection, operate on the selector to specify which elements in the collection this exclusion applies to.- Returns:
- the selectorMatchOperator value.
-
withSelectorMatchOperator
public OwaspCrsExclusionEntry withSelectorMatchOperator(OwaspCrsExclusionEntrySelectorMatchOperator selectorMatchOperator) Set the selectorMatchOperator property: When matchVariable is a collection, operate on the selector to specify which elements in the collection this exclusion applies to.- Parameters:
selectorMatchOperator- the selectorMatchOperator value to set.- Returns:
- the OwaspCrsExclusionEntry object itself.
-
selector
Get the selector property: When matchVariable is a collection, operator used to specify which elements in the collection this exclusion applies to.- Returns:
- the selector value.
-
withSelector
Set the selector property: When matchVariable is a collection, operator used to specify which elements in the collection this exclusion applies to.- Parameters:
selector- the selector value to set.- Returns:
- the OwaspCrsExclusionEntry object itself.
-
exclusionManagedRuleSets
Get the exclusionManagedRuleSets property: The managed rule sets that are associated with the exclusion.- Returns:
- the exclusionManagedRuleSets value.
-
withExclusionManagedRuleSets
public OwaspCrsExclusionEntry withExclusionManagedRuleSets(List<ExclusionManagedRuleSet> exclusionManagedRuleSets) Set the exclusionManagedRuleSets property: The managed rule sets that are associated with the exclusion.- Parameters:
exclusionManagedRuleSets- the exclusionManagedRuleSets value to set.- Returns:
- the OwaspCrsExclusionEntry 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<OwaspCrsExclusionEntry>- Throws:
IOException
-
fromJson
public static OwaspCrsExclusionEntry fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OwaspCrsExclusionEntry from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OwaspCrsExclusionEntry 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 OwaspCrsExclusionEntry.
-