DiskSku Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.DiskSku

Implements

public final class DiskSku
implements JsonSerializable<DiskSku>

The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS.

Constructor Summary

Constructor Description
DiskSku()

Creates an instance of DiskSku class.

Method Summary

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

Reads an instance of DiskSku from the JsonReader.

DiskStorageAccountTypes name()

Get the name property: The sku name.

String tier()

Get the tier property: The sku tier.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DiskSku withName(DiskStorageAccountTypes name)

Set the name property: The sku name.

Methods inherited from java.lang.Object

Constructor Details

DiskSku

public DiskSku()

Creates an instance of DiskSku class.

Method Details

fromJson

public static DiskSku fromJson(JsonReader jsonReader)

Reads an instance of DiskSku from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public DiskStorageAccountTypes name()

Get the name property: The sku name.

Returns:

the name value.

tier

public String tier()

Get the tier property: The sku tier.

Returns:

the tier value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public DiskSku withName(DiskStorageAccountTypes name)

Set the name property: The sku name.

Parameters:

name - the name value to set.

Returns:

the DiskSku object itself.

Applies to