AlertRulePatchObject Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.AlertRulePatchObject

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 AlertRulePatchObject 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 AlertRulePatchObject fromJson(JsonReader jsonReader)

Reads an instance of AlertRulePatchObject from the JsonReader.

Map<String,String> tags()

Get the tags property: The resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AlertRulePatchObject withEnabled(Boolean enabled)

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

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

the enabled value.

fromJson

public static AlertRulePatchObject fromJson(JsonReader jsonReader)

Reads an instance of AlertRulePatchObject from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AlertRulePatchObject 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 AlertRulePatchObject.

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

enabled - the enabled value to set.

Returns:

the AlertRulePatchObject object itself.

withTags

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

Set the tags property: The resource tags.

Parameters:

tags - the tags value to set.

Returns:

the AlertRulePatchObject object itself.

Applies to