Class AllowlistCustomAlertRule

Direct Known Subclasses:
ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, LocalUserNotAllowed, ProcessNotAllowed

public class AllowlistCustomAlertRule extends ListCustomAlertRule
A custom alert rule that checks if a value (depends on the custom alert type) is allowed.
  • Constructor Details

    • AllowlistCustomAlertRule

      public AllowlistCustomAlertRule()
  • Method Details

    • allowlistValues

      public List<String> allowlistValues()
      Get the allowlistValues property: The values to allow. The format of the values depends on the rule type.
      Returns:
      the allowlistValues value.
    • withAllowlistValues

      public AllowlistCustomAlertRule withAllowlistValues(List<String> allowlistValues)
      Set the allowlistValues property: The values to allow. The format of the values depends on the rule type.
      Parameters:
      allowlistValues - the allowlistValues value to set.
      Returns:
      the AllowlistCustomAlertRule object itself.
    • withIsEnabled

      public AllowlistCustomAlertRule withIsEnabled(boolean isEnabled)
      Set the isEnabled property: Status of the custom alert.
      Overrides:
      withIsEnabled in class ListCustomAlertRule
      Parameters:
      isEnabled - the isEnabled value to set.
      Returns:
      the CustomAlertRule object itself.
    • validate

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