Class ListCustomAlertRule

java.lang.Object
com.azure.resourcemanager.security.models.CustomAlertRule
com.azure.resourcemanager.security.models.ListCustomAlertRule
Direct Known Subclasses:
AllowlistCustomAlertRule, DenylistCustomAlertRule

public class ListCustomAlertRule extends CustomAlertRule
A List custom alert rule.
  • Constructor Details

    • ListCustomAlertRule

      public ListCustomAlertRule()
  • Method Details

    • valueType

      public ValueType valueType()
      Get the valueType property: The value type of the items in the list.
      Returns:
      the valueType value.
    • withIsEnabled

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

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