TenantAlertRulePatchObject Class

  • java.lang.Object
    • com.azure.resourcemanager.alertsmanagement.models.TenantAlertRulePatchObject

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 TenantAlertRulePatchObject class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: Indicates whether this Activity Log Alert rule is enabled.

static TenantAlertRulePatchObject fromJson(JsonReader jsonReader)

Reads an instance of TenantAlertRulePatchObject from the JsonReader.

Map<String,String> tags()

Get the tags property: The resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TenantAlertRulePatchObject withEnabled(Boolean enabled)

Set the enabled property: Indicates whether this Activity Log Alert rule is enabled.

TenantAlertRulePatchObject 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:

the enabled value.

fromJson

public static TenantAlertRulePatchObject fromJson(JsonReader jsonReader)

Reads an instance of TenantAlertRulePatchObject from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TenantAlertRulePatchObject if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the TenantAlertRulePatchObject.

tags

public Map<String,String> tags()

Get the tags property: The resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

enabled - the enabled value to set.

Returns:

the TenantAlertRulePatchObject object itself.

withTags

public TenantAlertRulePatchObject withTags(Map<String,String> tags)

Set the tags property: The resource tags.

Parameters:

tags - the tags value to set.

Returns:

the TenantAlertRulePatchObject object itself.

Applies to