Class ManagedRuleOverride
java.lang.Object
com.microsoft.azure.management.cdn.ManagedRuleOverride
Defines a managed rule group override setting.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaction()
Get describes the override action to be applied when rule matches.Get describes if the managed rule is in enabled or disabled state.ruleId()
Get identifier for the managed rule.withAction
(ActionType action) Set describes the override action to be applied when rule matches.withEnabledState
(ManagedRuleEnabledState enabledState) Set describes if the managed rule is in enabled or disabled state.withRuleId
(String ruleId) Set identifier for the managed rule.
-
Constructor Details
-
ManagedRuleOverride
public ManagedRuleOverride()
-
-
Method Details
-
ruleId
Get identifier for the managed rule.- Returns:
- the ruleId value
-
withRuleId
Set identifier for the managed rule.- Parameters:
ruleId
- the ruleId value to set- Returns:
- the ManagedRuleOverride object itself.
-
enabledState
Get describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. Possible values include: 'Disabled', 'Enabled'.- Returns:
- the enabledState value
-
withEnabledState
Set describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. Possible values include: 'Disabled', 'Enabled'.- Parameters:
enabledState
- the enabledState value to set- Returns:
- the ManagedRuleOverride object itself.
-
action
Get describes the override action to be applied when rule matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect'.- Returns:
- the action value
-
withAction
Set describes the override action to be applied when rule matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect'.- Parameters:
action
- the action value to set- Returns:
- the ManagedRuleOverride object itself.
-