public final class ManagedRuleOverride extends Object
| Constructor and Description |
|---|
ManagedRuleOverride() |
| Modifier and Type | Method and Description |
|---|---|
ActionType |
action()
Get the action property: Describes the override action to be applied when rule matches.
|
ManagedRuleEnabledState |
enabledState()
Get the enabledState property: Describes if the managed rule is in enabled or disabled state.
|
String |
ruleId()
Get the ruleId property: Identifier for the managed rule.
|
void |
validate()
Validates the instance.
|
ManagedRuleOverride |
withAction(ActionType action)
Set the action property: Describes the override action to be applied when rule matches.
|
ManagedRuleOverride |
withEnabledState(ManagedRuleEnabledState enabledState)
Set the enabledState property: Describes if the managed rule is in enabled or disabled state.
|
ManagedRuleOverride |
withRuleId(String ruleId)
Set the ruleId property: Identifier for the managed rule.
|
public String ruleId()
public ManagedRuleOverride withRuleId(String ruleId)
ruleId - the ruleId value to set.public ManagedRuleEnabledState enabledState()
public ManagedRuleOverride withEnabledState(ManagedRuleEnabledState enabledState)
enabledState - the enabledState value to set.public ActionType action()
public ManagedRuleOverride withAction(ActionType action)
action - the action value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.