ResourcePatch Class

  • java.lang.Object
    • com.azure.resourcemanager.connectedvmware.models.ResourcePatch

Implements

public final class ResourcePatch
implements JsonSerializable<ResourcePatch>

Object containing updates for patch operations.

Constructor Summary

Constructor Description
ResourcePatch()

Creates an instance of ResourcePatch class.

Method Summary

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

Reads an instance of ResourcePatch from the JsonReader.

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ResourcePatch withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from java.lang.Object

Constructor Details

ResourcePatch

public ResourcePatch()

Creates an instance of ResourcePatch class.

Method Details

fromJson

public static ResourcePatch fromJson(JsonReader jsonReader)

Reads an instance of ResourcePatch from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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 ResourcePatch withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the ResourcePatch object itself.

Applies to