Class ThresholdCustomAlertRule

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

public class ThresholdCustomAlertRule extends CustomAlertRule
A custom alert rule that checks if a value (depends on the custom alert type) is within the given range.
  • Constructor Details

    • ThresholdCustomAlertRule

      public ThresholdCustomAlertRule()
  • Method Details

    • minThreshold

      public int minThreshold()
      Get the minThreshold property: The minimum threshold.
      Returns:
      the minThreshold value.
    • withMinThreshold

      public ThresholdCustomAlertRule withMinThreshold(int minThreshold)
      Set the minThreshold property: The minimum threshold.
      Parameters:
      minThreshold - the minThreshold value to set.
      Returns:
      the ThresholdCustomAlertRule object itself.
    • maxThreshold

      public int maxThreshold()
      Get the maxThreshold property: The maximum threshold.
      Returns:
      the maxThreshold value.
    • withMaxThreshold

      public ThresholdCustomAlertRule withMaxThreshold(int maxThreshold)
      Set the maxThreshold property: The maximum threshold.
      Parameters:
      maxThreshold - the maxThreshold value to set.
      Returns:
      the ThresholdCustomAlertRule object itself.
    • withIsEnabled

      public ThresholdCustomAlertRule 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.