Class DenylistCustomAlertRule
java.lang.Object
com.azure.resourcemanager.security.models.CustomAlertRule
com.azure.resourcemanager.security.models.ListCustomAlertRule
com.azure.resourcemanager.security.models.DenylistCustomAlertRule
A custom alert rule that checks if a value (depends on the custom alert type) is denied.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the denylistValues property: The values to deny.void
validate()
Validates the instance.withDenylistValues
(List<String> denylistValues) Set the denylistValues property: The values to deny.withIsEnabled
(boolean isEnabled) Set the isEnabled property: Status of the custom alert.Methods inherited from class com.azure.resourcemanager.security.models.ListCustomAlertRule
valueType
Methods inherited from class com.azure.resourcemanager.security.models.CustomAlertRule
description, displayName, isEnabled
-
Constructor Details
-
DenylistCustomAlertRule
public DenylistCustomAlertRule()
-
-
Method Details
-
denylistValues
Get the denylistValues property: The values to deny. The format of the values depends on the rule type.- Returns:
- the denylistValues value.
-
withDenylistValues
Set the denylistValues property: The values to deny. The format of the values depends on the rule type.- Parameters:
denylistValues
- the denylistValues value to set.- Returns:
- the DenylistCustomAlertRule object itself.
-
withIsEnabled
Set the isEnabled property: Status of the custom alert.- Overrides:
withIsEnabled
in classListCustomAlertRule
- Parameters:
isEnabled
- the isEnabled value to set.- Returns:
- the CustomAlertRule object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classListCustomAlertRule
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-