Partager via


SkuDetails Class

  • java.lang.Object
    • com.azure.resourcemanager.redisenterprise.models.SkuDetails

Implements

public final class SkuDetails
implements JsonSerializable<SkuDetails>

SKU details Details of a Redis Enterprise cluster SKU.

Constructor Summary

Constructor Description
SkuDetails()

Creates an instance of SkuDetails class.

Method Summary

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

Reads an instance of SkuDetails from the JsonReader.

String name()

Get the name property: The name of the SKU.

Float sizeInGB()

Get the sizeInGB property: The cache size in GB.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

SkuDetails

public SkuDetails()

Creates an instance of SkuDetails class.

Method Details

fromJson

public static SkuDetails fromJson(JsonReader jsonReader)

Reads an instance of SkuDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name of the SKU.

Returns:

the name value.

sizeInGB

public Float sizeInGB()

Get the sizeInGB property: The cache size in GB.

Returns:

the sizeInGB value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to