Class ManagedRuleOverride
- java.lang.Object
-
- com.azure.resourcemanager.network.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 StringruleId()Get the ruleId property: Identifier for the managed rule.ManagedRuleEnabledStatestate()Get the state property: The state of the managed rule.voidvalidate()Validates the instance.ManagedRuleOverridewithRuleId(String ruleId)Set the ruleId property: Identifier for the managed rule.ManagedRuleOverridewithState(ManagedRuleEnabledState state)Set the state property: The state of 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.
-
state
public ManagedRuleEnabledState state()
Get the state property: The state of the managed rule. Defaults to Disabled if not specified.- Returns:
- the state value.
-
withState
public ManagedRuleOverride withState(ManagedRuleEnabledState state)
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-