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