CustomAlertRule Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. CustomAlertRule
- com.
Implements
public class CustomAlertRule
implements JsonSerializable<CustomAlertRule>
A custom alert rule.
Constructor Summary
| Constructor | Description |
|---|---|
| CustomAlertRule() |
Creates an instance of Custom |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
description()
Get the description property: The description of the custom alert. |
| String |
displayName()
Get the display |
|
static
Custom |
fromJson(JsonReader jsonReader)
Reads an instance of Custom |
| boolean |
isEnabled()
Get the is |
| String |
ruleType()
Get the rule |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Custom |
withIsEnabled(boolean isEnabled)
Set the is |
Methods inherited from java.lang.Object
Constructor Details
CustomAlertRule
public CustomAlertRule()
Creates an instance of CustomAlertRule class.
Method Details
description
public String description()
Get the description property: The description of the custom alert.
Returns:
displayName
public String displayName()
Get the displayName property: The display name of the custom alert.
Returns:
fromJson
public static CustomAlertRule fromJson(JsonReader jsonReader)
Reads an instance of CustomAlertRule from the JsonReader.
Parameters:
Returns:
Throws:
isEnabled
public boolean isEnabled()
Get the isEnabled property: Status of the custom alert.
Returns:
ruleType
public String ruleType()
Get the ruleType property: The type of the custom alert rule.
Returns:
toJson
validate
public void validate()
Validates the instance.
withIsEnabled
public CustomAlertRule withIsEnabled(boolean isEnabled)
Set the isEnabled property: Status of the custom alert.
Parameters:
Returns: