Class ManagedRulesDefinition
- java.lang.Object
-
- com.azure.resourcemanager.network.models.ManagedRulesDefinition
-
public final class ManagedRulesDefinition extends Object
Allow to exclude some variable satisfy the condition for the WAF check.
-
-
Constructor Summary
Constructors Constructor Description ManagedRulesDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<OwaspCrsExclusionEntry>exclusions()Get the exclusions property: The Exclusions that are applied on the policy.List<ManagedRuleSet>managedRuleSets()Get the managedRuleSets property: The managed rule sets that are associated with the policy.voidvalidate()Validates the instance.ManagedRulesDefinitionwithExclusions(List<OwaspCrsExclusionEntry> exclusions)Set the exclusions property: The Exclusions that are applied on the policy.ManagedRulesDefinitionwithManagedRuleSets(List<ManagedRuleSet> managedRuleSets)Set the managedRuleSets property: The managed rule sets that are associated with the policy.
-
-
-
Method Detail
-
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.
-
-