Class ExclusionManagedRuleGroup
- java.lang.Object
-
- com.azure.resourcemanager.network.models.ExclusionManagedRuleGroup
-
public final class ExclusionManagedRuleGroup extends Object
Defines a managed rule group to use for exclusion.
-
-
Constructor Summary
Constructors Constructor Description ExclusionManagedRuleGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringruleGroupName()Get the ruleGroupName property: The managed rule group for exclusion.List<ExclusionManagedRule>rules()Get the rules property: List of rules that will be excluded.voidvalidate()Validates the instance.ExclusionManagedRuleGroupwithRuleGroupName(String ruleGroupName)Set the ruleGroupName property: The managed rule group for exclusion.ExclusionManagedRuleGroupwithRules(List<ExclusionManagedRule> rules)Set the rules property: List of rules that will be excluded.
-
-
-
Method Detail
-
ruleGroupName
public String ruleGroupName()
Get the ruleGroupName property: The managed rule group for exclusion.- Returns:
- the ruleGroupName value.
-
withRuleGroupName
public ExclusionManagedRuleGroup withRuleGroupName(String ruleGroupName)
Set the ruleGroupName property: The managed rule group for exclusion.- Parameters:
ruleGroupName- the ruleGroupName value to set.- Returns:
- the ExclusionManagedRuleGroup object itself.
-
rules
public List<ExclusionManagedRule> rules()
Get the rules property: List of rules that will be excluded. If none specified, all rules in the group will be excluded.- Returns:
- the rules value.
-
withRules
public ExclusionManagedRuleGroup withRules(List<ExclusionManagedRule> rules)
Set the rules property: List of rules that will be excluded. If none specified, all rules in the group will be excluded.- Parameters:
rules- the rules value to set.- Returns:
- the ExclusionManagedRuleGroup object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-