Class ManagedRuleSet

java.lang.Object
com.azure.resourcemanager.frontdoor.models.ManagedRuleSet

public final class ManagedRuleSet extends Object
Defines a managed rule set.
  • Constructor Details

    • ManagedRuleSet

      public ManagedRuleSet()
      Creates an instance of ManagedRuleSet class.
  • Method Details

    • ruleSetType

      public String ruleSetType()
      Get the ruleSetType property: Defines the rule set type to use.
      Returns:
      the ruleSetType value.
    • withRuleSetType

      public ManagedRuleSet withRuleSetType(String ruleSetType)
      Set the ruleSetType property: Defines the rule set type to use.
      Parameters:
      ruleSetType - the ruleSetType value to set.
      Returns:
      the ManagedRuleSet object itself.
    • ruleSetVersion

      public String ruleSetVersion()
      Get the ruleSetVersion property: Defines the version of the rule set to use.
      Returns:
      the ruleSetVersion value.
    • withRuleSetVersion

      public ManagedRuleSet withRuleSetVersion(String ruleSetVersion)
      Set the ruleSetVersion property: Defines the version of the rule set to use.
      Parameters:
      ruleSetVersion - the ruleSetVersion value to set.
      Returns:
      the ManagedRuleSet object itself.
    • ruleSetAction

      public ManagedRuleSetActionType ruleSetAction()
      Get the ruleSetAction property: Defines the action to take when a managed rule set score threshold is met.
      Returns:
      the ruleSetAction value.
    • withRuleSetAction

      public ManagedRuleSet withRuleSetAction(ManagedRuleSetActionType ruleSetAction)
      Set the ruleSetAction property: Defines the action to take when a managed rule set score threshold is met.
      Parameters:
      ruleSetAction - the ruleSetAction value to set.
      Returns:
      the ManagedRuleSet object itself.
    • exclusions

      public List<ManagedRuleExclusion> exclusions()
      Get the exclusions property: Describes the exclusions that are applied to all rules in the set.
      Returns:
      the exclusions value.
    • withExclusions

      public ManagedRuleSet withExclusions(List<ManagedRuleExclusion> exclusions)
      Set the exclusions property: Describes the exclusions that are applied to all rules in the set.
      Parameters:
      exclusions - the exclusions value to set.
      Returns:
      the ManagedRuleSet object itself.
    • ruleGroupOverrides

      public List<ManagedRuleGroupOverride> ruleGroupOverrides()
      Get the ruleGroupOverrides property: Defines the rule group overrides to apply to the rule set.
      Returns:
      the ruleGroupOverrides value.
    • withRuleGroupOverrides

      public ManagedRuleSet withRuleGroupOverrides(List<ManagedRuleGroupOverride> ruleGroupOverrides)
      Set the ruleGroupOverrides property: Defines the rule group overrides to apply to the rule set.
      Parameters:
      ruleGroupOverrides - the ruleGroupOverrides value to set.
      Returns:
      the ManagedRuleSet object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.