Class ManagedRulesDefinition
java.lang.Object
com.azure.resourcemanager.network.models.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 exclusions property: The Exclusions that are applied on the policy.Get the managedRuleSets property: The managed rule sets that are associated with the policy.voidvalidate()Validates the instance.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.
-
Constructor Details
-
ManagedRulesDefinition
public ManagedRulesDefinition()Creates an instance of ManagedRulesDefinition class.
-
-
Method Details
-
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.
-