Class ManagedRuleOverride
java.lang.Object
com.azure.resourcemanager.network.models.ManagedRuleOverride
Defines a managed rule group override setting.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction()Get the action property: Describes the override action to be applied when rule matches.ruleId()Get the ruleId property: Identifier for the managed rule.state()Get the state property: The state of the managed rule.voidvalidate()Validates the instance.withAction(ActionType action) Set the action property: Describes the override action to be applied when rule matches.withRuleId(String ruleId) Set the ruleId property: Identifier for the managed rule.withState(ManagedRuleEnabledState state) Set the state property: The state of 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.
-
state
Get the state property: The state of the managed rule. Defaults to Disabled if not specified.- Returns:
- the state value.
-
withState
Set the state property: The state of the managed rule. Defaults to Disabled if not specified.- Parameters:
state- the state 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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-