CacheUpdate Class

  • java.lang.Object
    • com.azure.resourcemanager.netapp.models.CacheUpdate

Implements

public final class CacheUpdate
implements JsonSerializable<CacheUpdate>

The type used for update operations of the Cache.

Constructor Summary

Constructor Description
CacheUpdate()

Creates an instance of CacheUpdate class.

Method Summary

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

Reads an instance of CacheUpdate from the JsonReader.

CacheUpdateProperties properties()

Get the properties property: The resource-specific properties for this resource.

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CacheUpdate withProperties(CacheUpdateProperties properties)

Set the properties property: The resource-specific properties for this resource.

CacheUpdate withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from java.lang.Object

Constructor Details

CacheUpdate

public CacheUpdate()

Creates an instance of CacheUpdate class.

Method Details

fromJson

public static CacheUpdate fromJson(JsonReader jsonReader)

Reads an instance of CacheUpdate from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

properties

public CacheUpdateProperties properties()

Get the properties property: The resource-specific properties for this resource.

Returns:

the properties value.

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.

withProperties

public CacheUpdate withProperties(CacheUpdateProperties properties)

Set the properties property: The resource-specific properties for this resource.

Parameters:

properties - the properties value to set.

Returns:

the CacheUpdate object itself.

withTags

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

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the CacheUpdate object itself.

Applies to