Class CustomAlertRule

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

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

    • CustomAlertRule

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

    • displayName

      public String displayName()
      Get the displayName property: The display name of the custom alert.
      Returns:
      the displayName value.
    • description

      public String description()
      Get the description property: The description of the custom alert.
      Returns:
      the description value.
    • isEnabled

      public boolean isEnabled()
      Get the isEnabled property: Status of the custom alert.
      Returns:
      the isEnabled value.
    • withIsEnabled

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

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