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 |
|
static
Denylist |
fromJson(JsonReader jsonReader)
Reads an instance of Denylist |
| String |
ruleType()
Get the rule |
|
Json |
toJson(JsonWriter jsonWriter) |
| 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<String> denylistValues()
Get the denylistValues property: The values to deny. The format of the values depends on the rule type.
Returns:
fromJson
public static DenylistCustomAlertRule fromJson(JsonReader jsonReader)
Reads an instance of DenylistCustomAlertRule from the JsonReader.
Parameters:
Returns:
Throws:
ruleType
public String ruleType()
Get the ruleType property: The ruleType property.
Overrides:
DenylistCustomAlertRule.ruleType()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
DenylistCustomAlertRule.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
DenylistCustomAlertRule.validate()withDenylistValues
public DenylistCustomAlertRule withDenylistValues(List<String> denylistValues)
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: