ManagedRuleOverride Class
- java.
lang. Object - com.
azure. resourcemanager. frontdoor. models. ManagedRuleOverride
- com.
public final class ManagedRuleOverride
Defines a managed rule group override setting.
Constructor Summary
Constructor | Description |
---|---|
ManagedRuleOverride() |
Creates an instance of Managed |
Method Summary
Modifier and Type | Method and Description |
---|---|
Action |
action()
Get the action property: Describes the override action to be applied when rule matches. |
Managed |
enabledState()
Get the enabled |
List<Managed |
exclusions()
Get the exclusions property: Describes the exclusions that are applied to this specific rule. |
String |
ruleId()
Get the rule |
void |
validate()
Validates the instance. |
Managed |
withAction(ActionType action)
Set the action property: Describes the override action to be applied when rule matches. |
Managed |
withEnabledState(ManagedRuleEnabledState enabledState)
Set the enabled |
Managed |
withExclusions(List<ManagedRuleExclusion> exclusions)
Set the exclusions property: Describes the exclusions that are applied to this specific rule. |
Managed |
withRuleId(String ruleId)
Set the rule |
Methods inherited from java.lang.Object
Constructor Details
ManagedRuleOverride
public ManagedRuleOverride()
Creates an instance of ManagedRuleOverride class.
Method Details
action
public ActionType action()
Get the action property: Describes the override action to be applied when rule matches.
Returns:
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:
exclusions
public List
Get the exclusions property: Describes the exclusions that are applied to this specific rule.
Returns:
ruleId
public String ruleId()
Get the ruleId property: Identifier for the managed rule.
Returns:
validate
public void validate()
Validates the instance.
withAction
public ManagedRuleOverride withAction(ActionType action)
Set the action property: Describes the override action to be applied when rule matches.
Parameters:
Returns:
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:
Returns:
withExclusions
public ManagedRuleOverride withExclusions(List
Set the exclusions property: Describes the exclusions that are applied to this specific rule.
Parameters:
Returns:
withRuleId
public ManagedRuleOverride withRuleId(String ruleId)
Set the ruleId property: Identifier for the managed rule.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for