Class TwinUpdatesNotInAllowedRange
java.lang.Object
com.azure.resourcemanager.security.models.CustomAlertRule
com.azure.resourcemanager.security.models.ThresholdCustomAlertRule
com.azure.resourcemanager.security.models.TimeWindowCustomAlertRule
com.azure.resourcemanager.security.models.TwinUpdatesNotInAllowedRange
Number of twin updates is not in allowed range.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.withTimeWindowSize
(Duration timeWindowSize) Set the timeWindowSize property: The time window size in iso8601 format.Methods inherited from class com.azure.resourcemanager.security.models.TimeWindowCustomAlertRule
timeWindowSize
Methods inherited from class com.azure.resourcemanager.security.models.ThresholdCustomAlertRule
maxThreshold, minThreshold
Methods inherited from class com.azure.resourcemanager.security.models.CustomAlertRule
description, displayName, isEnabled
-
Constructor Details
-
TwinUpdatesNotInAllowedRange
public TwinUpdatesNotInAllowedRange()
-
-
Method Details
-
withTimeWindowSize
Set the timeWindowSize property: The time window size in iso8601 format.- Overrides:
withTimeWindowSize
in classTimeWindowCustomAlertRule
- Parameters:
timeWindowSize
- the timeWindowSize value to set.- Returns:
- the TimeWindowCustomAlertRule object itself.
-
withMinThreshold
Set the minThreshold property: The minimum threshold.- Overrides:
withMinThreshold
in classTimeWindowCustomAlertRule
- Parameters:
minThreshold
- the minThreshold value to set.- Returns:
- the ThresholdCustomAlertRule object itself.
-
withMaxThreshold
Set the maxThreshold property: The maximum threshold.- Overrides:
withMaxThreshold
in classTimeWindowCustomAlertRule
- 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 classTimeWindowCustomAlertRule
- Parameters:
isEnabled
- the isEnabled value to set.- Returns:
- the CustomAlertRule object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classTimeWindowCustomAlertRule
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-