PatchObject Class

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

Implements

public final class PatchObject
implements JsonSerializable<PatchObject>

Object for patch operations.

Constructor Summary

Constructor Description
PatchObject()

Creates an instance of PatchObject class.

Method Summary

Modifier and Type Method and Description
static PatchObject fromJson(JsonReader jsonReader)

Reads an instance of PatchObject from the JsonReader.

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PatchObject withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from java.lang.Object

Constructor Details

PatchObject

public PatchObject()

Creates an instance of PatchObject class.

Method Details

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: Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withTags

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

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the PatchObject object itself.

Applies to