Class ManagedRulesDefinition


  • public final class ManagedRulesDefinition
    extends Object
    Allow to exclude some variable satisfy the condition for the WAF check.
    • Constructor Detail

      • ManagedRulesDefinition

        public ManagedRulesDefinition()
    • Method Detail

      • exclusions

        public List<OwaspCrsExclusionEntry> exclusions()
        Get the exclusions property: The Exclusions that are applied on the policy.
        Returns:
        the exclusions value.
      • withExclusions

        public ManagedRulesDefinition withExclusions​(List<OwaspCrsExclusionEntry> exclusions)
        Set the exclusions property: The Exclusions that are applied on the policy.
        Parameters:
        exclusions - the exclusions value to set.
        Returns:
        the ManagedRulesDefinition object itself.
      • managedRuleSets

        public List<ManagedRuleSet> managedRuleSets()
        Get the managedRuleSets property: The managed rule sets that are associated with the policy.
        Returns:
        the managedRuleSets value.
      • withManagedRuleSets

        public ManagedRulesDefinition withManagedRuleSets​(List<ManagedRuleSet> managedRuleSets)
        Set the managedRuleSets property: The managed rule sets that are associated with the policy.
        Parameters:
        managedRuleSets - the managedRuleSets value to set.
        Returns:
        the ManagedRulesDefinition object itself.
      • validate

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