Class ManagedRuleOverride
- java.lang.Object
-
- com.azure.resourcemanager.cdn.models.ManagedRuleOverride
-
public final class ManagedRuleOverride extends Object
Defines a managed rule group override setting.
-
-
Constructor Summary
Constructors Constructor Description ManagedRuleOverride()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionTypeaction()Get the action property: Describes the override action to be applied when rule matches.ManagedRuleEnabledStateenabledState()Get the enabledState property: Describes if the managed rule is in enabled or disabled state.StringruleId()Get the ruleId property: Identifier for the managed rule.voidvalidate()Validates the instance.ManagedRuleOverridewithAction(ActionType action)Set the action property: Describes the override action to be applied when rule matches.ManagedRuleOverridewithEnabledState(ManagedRuleEnabledState enabledState)Set the enabledState property: Describes if the managed rule is in enabled or disabled state.ManagedRuleOverridewithRuleId(String ruleId)Set the ruleId property: Identifier for the managed rule.
-
-
-
Method Detail
-
ruleId
public String ruleId()
Get the ruleId property: Identifier for the managed rule.- Returns:
- the ruleId value.
-
withRuleId
public ManagedRuleOverride withRuleId(String ruleId)
Set the ruleId property: Identifier for the managed rule.- Parameters:
ruleId- the ruleId value to set.- Returns:
- the ManagedRuleOverride object itself.
-
enabledState
public ManagedRuleEnabledState 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
public ManagedRuleOverride withEnabledState(ManagedRuleEnabledState enabledState)
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
public ActionType action()
Get the action property: Describes the override action to be applied when rule matches.- Returns:
- the action value.
-
withAction
public ManagedRuleOverride withAction(ActionType action)
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-