DenylistCustomAlertRule Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. CustomAlertRule - com.
azure. resourcemanager. security. models. ListCustomAlertRule - com.
azure. resourcemanager. security. models. DenylistCustomAlertRule
- com.
- com.
- com.
public final class DenylistCustomAlertRule
extends ListCustomAlertRule
A custom alert rule that checks if a value (depends on the custom alert type) is denied.
Constructor Summary
Constructor | Description |
---|---|
DenylistCustomAlertRule() |
Creates an instance of Denylist |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
denylistValues()
Get the denylist |
void |
validate()
Validates the instance. |
Denylist |
withDenylistValues(List<String> denylistValues)
Set the denylist |
Denylist |
withIsEnabled(boolean isEnabled)
Set the is |
Methods inherited from CustomAlertRule
Methods inherited from ListCustomAlertRule
Methods inherited from java.lang.Object
Constructor Details
DenylistCustomAlertRule
public DenylistCustomAlertRule()
Creates an instance of DenylistCustomAlertRule class.
Method Details
denylistValues
public List
Get the denylistValues property: The values to deny. The format of the values depends on the rule type.
Returns:
validate
public void validate()
Validates the instance.
Overrides:
DenylistCustomAlertRule.validate()withDenylistValues
public DenylistCustomAlertRule withDenylistValues(List
Set the denylistValues property: The values to deny. The format of the values depends on the rule type.
Parameters:
Returns:
withIsEnabled
public DenylistCustomAlertRule withIsEnabled(boolean isEnabled)
Set the isEnabled property: Status of the custom alert.
Overrides:
DenylistCustomAlertRule.withIsEnabled(boolean isEnabled)Parameters:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for