Class ManagedRuleOverride
java.lang.Object
com.azure.resourcemanager.frontdoor.models.ManagedRuleOverride
Defines a managed rule group override setting.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaction()
Get the action property: Describes the override action to be applied when rule matches.Get the enabledState property: Describes if the managed rule is in enabled or disabled state.Get the exclusions property: Describes the exclusions that are applied to this specific rule.ruleId()
Get the ruleId property: Identifier for the managed rule.void
validate()
Validates the instance.withAction
(ActionType action) Set the action property: Describes the override action to be applied when rule matches.withEnabledState
(ManagedRuleEnabledState enabledState) Set the enabledState property: Describes if the managed rule is in enabled or disabled state.withExclusions
(List<ManagedRuleExclusion> exclusions) Set the exclusions property: Describes the exclusions that are applied to this specific rule.withRuleId
(String ruleId) Set the ruleId property: Identifier for the managed rule.
-
Constructor Details
-
ManagedRuleOverride
public ManagedRuleOverride()Creates an instance of ManagedRuleOverride class.
-
-
Method Details
-
ruleId
Get the ruleId property: Identifier for the managed rule.- Returns:
- the ruleId value.
-
withRuleId
Set the ruleId property: Identifier for the managed rule.- Parameters:
ruleId
- the ruleId value to set.- Returns:
- the ManagedRuleOverride object itself.
-
enabledState
Get the enabledState property: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.- Returns:
- the enabledState value.
-
withEnabledState
Set the enabledState property: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.- Parameters:
enabledState
- the enabledState value to set.- Returns:
- the ManagedRuleOverride object itself.
-
action
Get the action property: Describes the override action to be applied when rule matches.- Returns:
- the action value.
-
withAction
Set the action property: Describes the override action to be applied when rule matches.- Parameters:
action
- the action value to set.- Returns:
- the ManagedRuleOverride object itself.
-
exclusions
Get the exclusions property: Describes the exclusions that are applied to this specific rule.- Returns:
- the exclusions value.
-
withExclusions
Set the exclusions property: Describes the exclusions that are applied to this specific rule.- Parameters:
exclusions
- the exclusions value to set.- Returns:
- the ManagedRuleOverride object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-