Class ManagedRuleSet
java.lang.Object
com.azure.resourcemanager.frontdoor.models.ManagedRuleSet
Defines a managed rule set.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the exclusions property: Describes the exclusions that are applied to all rules in the set.Get the ruleGroupOverrides property: Defines the rule group overrides to apply to the rule set.Get the ruleSetAction property: Defines the rule set action.Get the ruleSetType property: Defines the rule set type to use.Get the ruleSetVersion property: Defines the version of the rule set to use.voidvalidate()Validates the instance.withExclusions(List<ManagedRuleExclusion> exclusions) Set the exclusions property: Describes the exclusions that are applied to all rules in the set.withRuleGroupOverrides(List<ManagedRuleGroupOverride> ruleGroupOverrides) Set the ruleGroupOverrides property: Defines the rule group overrides to apply to the rule set.withRuleSetAction(ManagedRuleSetActionType ruleSetAction) Set the ruleSetAction property: Defines the rule set action.withRuleSetType(String ruleSetType) Set the ruleSetType property: Defines the rule set type to use.withRuleSetVersion(String ruleSetVersion) Set the ruleSetVersion property: Defines the version of the rule set to use.
-
Constructor Details
-
ManagedRuleSet
public ManagedRuleSet()Creates an instance of ManagedRuleSet class.
-
-
Method Details
-
ruleSetType
Get the ruleSetType property: Defines the rule set type to use.- Returns:
- the ruleSetType value.
-
withRuleSetType
Set the ruleSetType property: Defines the rule set type to use.- Parameters:
ruleSetType- the ruleSetType value to set.- Returns:
- the ManagedRuleSet object itself.
-
ruleSetVersion
Get the ruleSetVersion property: Defines the version of the rule set to use.- Returns:
- the ruleSetVersion value.
-
withRuleSetVersion
Set the ruleSetVersion property: Defines the version of the rule set to use.- Parameters:
ruleSetVersion- the ruleSetVersion value to set.- Returns:
- the ManagedRuleSet object itself.
-
ruleSetAction
Get the ruleSetAction property: Defines the rule set action.- Returns:
- the ruleSetAction value.
-
withRuleSetAction
Set the ruleSetAction property: Defines the rule set action.- Parameters:
ruleSetAction- the ruleSetAction value to set.- Returns:
- the ManagedRuleSet object itself.
-
exclusions
Get the exclusions property: Describes the exclusions that are applied to all rules in the set.- Returns:
- the exclusions value.
-
withExclusions
Set the exclusions property: Describes the exclusions that are applied to all rules in the set.- Parameters:
exclusions- the exclusions value to set.- Returns:
- the ManagedRuleSet object itself.
-
ruleGroupOverrides
Get the ruleGroupOverrides property: Defines the rule group overrides to apply to the rule set.- Returns:
- the ruleGroupOverrides value.
-
withRuleGroupOverrides
Set the ruleGroupOverrides property: Defines the rule group overrides to apply to the rule set.- Parameters:
ruleGroupOverrides- the ruleGroupOverrides value to set.- Returns:
- the ManagedRuleSet object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-