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 |
|
static
Allowlist |
fromJson(JsonReader jsonReader)
Reads an instance of Allowlist |
| String |
ruleType()
Get the rule |
|
Json |
toJson(JsonWriter jsonWriter) |
| 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<String> allowlistValues()
Get the allowlistValues property: The values to allow. The format of the values depends on the rule type.
Returns:
fromJson
public static AllowlistCustomAlertRule fromJson(JsonReader jsonReader)
Reads an instance of AllowlistCustomAlertRule from the JsonReader.
Parameters:
Returns:
Throws:
ruleType
public String ruleType()
Get the ruleType property: The type of the custom alert rule.
Overrides:
AllowlistCustomAlertRule.ruleType()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
AllowlistCustomAlertRule.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
AllowlistCustomAlertRule.validate()withAllowlistValues
public AllowlistCustomAlertRule withAllowlistValues(List<String> allowlistValues)
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: