AlertRulePatchObject Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. AlertRulePatchObject
- com.
Implements
public final class AlertRulePatchObject
implements JsonSerializable<AlertRulePatchObject>
An Activity Log Alert rule object for the body of patch operations.
Constructor Summary
| Constructor | Description |
|---|---|
| AlertRulePatchObject() |
Creates an instance of Alert |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Boolean |
enabled()
Get the enabled property: Indicates whether this Activity Log Alert rule is enabled. |
|
static
Alert |
fromJson(JsonReader jsonReader)
Reads an instance of Alert |
| Map<String,String> |
tags()
Get the tags property: The resource tags. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Alert |
withEnabled(Boolean enabled)
Set the enabled property: Indicates whether this Activity Log Alert rule is enabled. |
|
Alert |
withTags(Map<String,String> tags)
Set the tags property: The resource tags. |
Methods inherited from java.lang.Object
Constructor Details
AlertRulePatchObject
public AlertRulePatchObject()
Creates an instance of AlertRulePatchObject class.
Method Details
enabled
public Boolean enabled()
Get the enabled property: Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
Returns:
fromJson
public static AlertRulePatchObject fromJson(JsonReader jsonReader)
Reads an instance of AlertRulePatchObject from the JsonReader.
Parameters:
Returns:
Throws:
tags
public Map<String,String> tags()
Get the tags property: The resource tags.
Returns:
toJson
validate
public void validate()
Validates the instance.
withEnabled
public AlertRulePatchObject withEnabled(Boolean enabled)
Set the enabled property: Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
Parameters:
Returns:
withTags
public AlertRulePatchObject withTags(Map<String,String> tags)
Set the tags property: The resource tags.
Parameters:
Returns: