CacheSku Class

  • java.lang.Object
    • com.azure.resourcemanager.storagecache.models.CacheSku

Implements

public final class CacheSku
implements JsonSerializable<CacheSku>

SKU for the cache.

Constructor Summary

Constructor Description
CacheSku()

Creates an instance of CacheSku class.

Method Summary

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

Reads an instance of CacheSku from the JsonReader.

String name()

Get the name property: SKU name for this cache.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CacheSku withName(String name)

Set the name property: SKU name for this cache.

Methods inherited from java.lang.Object

Constructor Details

CacheSku

public CacheSku()

Creates an instance of CacheSku class.

Method Details

fromJson

public static CacheSku fromJson(JsonReader jsonReader)

Reads an instance of CacheSku from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: SKU name for this cache.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public CacheSku withName(String name)

Set the name property: SKU name for this cache.

Parameters:

name - the name value to set.

Returns:

the CacheSku object itself.

Applies to

Azure SDK for Java

Preview