Class CustomAlertRule
java.lang.Object
com.azure.resourcemanager.security.models.CustomAlertRule
- Direct Known Subclasses:
ListCustomAlertRule
,ThresholdCustomAlertRule
A custom alert rule.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the description property: The description of the custom alert.Get the displayName property: The display name of the custom alert.boolean
Get the isEnabled property: Status of the custom alert.void
validate()
Validates the instance.withIsEnabled
(boolean isEnabled) Set the isEnabled property: Status of the custom alert.
-
Constructor Details
-
CustomAlertRule
public CustomAlertRule()Creates an instance of CustomAlertRule class.
-
-
Method Details
-
displayName
Get the displayName property: The display name of the custom alert.- Returns:
- the displayName value.
-
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
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.
-