Class ThresholdCustomAlertRule
java.lang.Object
com.azure.resourcemanager.security.models.CustomAlertRule
com.azure.resourcemanager.security.models.ThresholdCustomAlertRule
- Direct Known Subclasses:
TimeWindowCustomAlertRule
A custom alert rule that checks if a value (depends on the custom alert type) is within the given range.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the maxThreshold property: The maximum threshold.int
Get the minThreshold property: The minimum threshold.void
validate()
Validates the instance.withIsEnabled
(boolean isEnabled) Set the isEnabled property: Status of the custom alert.withMaxThreshold
(int maxThreshold) Set the maxThreshold property: The maximum threshold.withMinThreshold
(int minThreshold) Set the minThreshold property: The minimum threshold.Methods inherited from class com.azure.resourcemanager.security.models.CustomAlertRule
description, displayName, isEnabled
-
Constructor Details
-
ThresholdCustomAlertRule
public ThresholdCustomAlertRule()
-
-
Method Details
-
minThreshold
public int minThreshold()Get the minThreshold property: The minimum threshold.- Returns:
- the minThreshold value.
-
withMinThreshold
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
Set the maxThreshold property: The maximum threshold.- Parameters:
maxThreshold
- the maxThreshold value to set.- Returns:
- the ThresholdCustomAlertRule object itself.
-
withIsEnabled
Set the isEnabled property: Status of the custom alert.- Overrides:
withIsEnabled
in classCustomAlertRule
- Parameters:
isEnabled
- the isEnabled value to set.- Returns:
- the CustomAlertRule object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classCustomAlertRule
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-