Class ManagedRuleOverride

java.lang.Object
com.microsoft.azure.management.cdn.ManagedRuleOverride

public class ManagedRuleOverride extends Object
Defines a managed rule group override setting.
  • Constructor Details

    • ManagedRuleOverride

      public ManagedRuleOverride()
  • Method Details

    • ruleId

      public String ruleId()
      Get identifier for the managed rule.
      Returns:
      the ruleId value
    • withRuleId

      public ManagedRuleOverride withRuleId(String ruleId)
      Set identifier for the managed rule.
      Parameters:
      ruleId - the ruleId value to set
      Returns:
      the ManagedRuleOverride object itself.
    • enabledState

      public ManagedRuleEnabledState enabledState()
      Get describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. Possible values include: 'Disabled', 'Enabled'.
      Returns:
      the enabledState value
    • withEnabledState

      public ManagedRuleOverride withEnabledState(ManagedRuleEnabledState enabledState)
      Set describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. Possible values include: 'Disabled', 'Enabled'.
      Parameters:
      enabledState - the enabledState value to set
      Returns:
      the ManagedRuleOverride object itself.
    • action

      public ActionType action()
      Get describes the override action to be applied when rule matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect'.
      Returns:
      the action value
    • withAction

      public ManagedRuleOverride withAction(ActionType action)
      Set describes the override action to be applied when rule matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect'.
      Parameters:
      action - the action value to set
      Returns:
      the ManagedRuleOverride object itself.