AllowlistCustomAlertRule Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. CustomAlertRule - com.
azure. resourcemanager. security. models. ListCustomAlertRule - com.
azure. resourcemanager. security. models. AllowlistCustomAlertRule
- com.
- com.
- com.
public class AllowlistCustomAlertRule
extends ListCustomAlertRule
A custom alert rule that checks if a value (depends on the custom alert type) is allowed.
Constructor Summary
Constructor | Description |
---|---|
AllowlistCustomAlertRule() |
Creates an instance of Allowlist |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
allowlistValues()
Get the allowlist |
void |
validate()
Validates the instance. |
Allowlist |
withAllowlistValues(List<String> allowlistValues)
Set the allowlist |
Allowlist |
withIsEnabled(boolean isEnabled)
Set the is |
Methods inherited from CustomAlertRule
Methods inherited from ListCustomAlertRule
Methods inherited from java.lang.Object
Constructor Details
AllowlistCustomAlertRule
public AllowlistCustomAlertRule()
Creates an instance of AllowlistCustomAlertRule class.
Method Details
allowlistValues
public List
Get the allowlistValues property: The values to allow. The format of the values depends on the rule type.
Returns:
validate
public void validate()
Validates the instance.
Overrides:
AllowlistCustomAlertRule.validate()withAllowlistValues
public AllowlistCustomAlertRule withAllowlistValues(List
Set the allowlistValues property: The values to allow. The format of the values depends on the rule type.
Parameters:
Returns:
withIsEnabled
public AllowlistCustomAlertRule withIsEnabled(boolean isEnabled)
Set the isEnabled property: Status of the custom alert.
Overrides:
AllowlistCustomAlertRule.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