PatchObject Class

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

Implements

public final class PatchObject
implements JsonSerializable<PatchObject>

Data contract for patch.

Constructor Summary

Constructor Description
PatchObject()

Creates an instance of PatchObject class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: Indicates if the given alert processing rule is enabled or disabled.

static PatchObject fromJson(JsonReader jsonReader)

Reads an instance of PatchObject from the JsonReader.

Map<String,String> tags()

Get the tags property: Tags to be updated.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PatchObject withEnabled(Boolean enabled)

Set the enabled property: Indicates if the given alert processing rule is enabled or disabled.

PatchObject withTags(Map<String,String> tags)

Set the tags property: Tags to be updated.

Methods inherited from java.lang.Object

Constructor Details

PatchObject

public PatchObject()

Creates an instance of PatchObject class.

Method Details

enabled

public Boolean enabled()

Get the enabled property: Indicates if the given alert processing rule is enabled or disabled.

Returns:

the enabled value.

fromJson

public static PatchObject fromJson(JsonReader jsonReader)

Reads an instance of PatchObject from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

tags

public Map<String,String> tags()

Get the tags property: Tags to be updated.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public PatchObject withEnabled(Boolean enabled)

Set the enabled property: Indicates if the given alert processing rule is enabled or disabled.

Parameters:

enabled - the enabled value to set.

Returns:

the PatchObject object itself.

withTags

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

Set the tags property: Tags to be updated.

Parameters:

tags - the tags value to set.

Returns:

the PatchObject object itself.

Applies to