ManagedRuleOverride Class

  • java.lang.Object
    • com.azure.resourcemanager.frontdoor.models.ManagedRuleOverride

public final class ManagedRuleOverride

Defines a managed rule group override setting.

Constructor Summary

Constructor Description
ManagedRuleOverride()

Creates an instance of ManagedRuleOverride class.

Method Summary

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.

List<ManagedRuleExclusion> exclusions()

Get the exclusions property: Describes the exclusions that are applied to this specific rule.

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 withExclusions(List<ManagedRuleExclusion> exclusions)

Set the exclusions property: Describes the exclusions that are applied to this specific rule.

ManagedRuleOverride withRuleId(String ruleId)

Set the ruleId property: Identifier for the managed 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:

the action value.

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:

the enabledState value.

exclusions

public List exclusions()

Get the exclusions property: Describes the exclusions that are applied to this specific rule.

Returns:

the exclusions value.

ruleId

public String ruleId()

Get the ruleId property: Identifier for the managed rule.

Returns:

the ruleId value.

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:

action - the action value to set.

Returns:

the ManagedRuleOverride object itself.

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:

enabledState - the enabledState value to set.

Returns:

the ManagedRuleOverride object itself.

withExclusions

public ManagedRuleOverride withExclusions(List exclusions)

Set the exclusions property: Describes the exclusions that are applied to this specific rule.

Parameters:

exclusions - the exclusions value to set.

Returns:

the ManagedRuleOverride object itself.

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.

Applies to