DiskSkuTypes Class

  • java.lang.Object
    • com.microsoft.azure.management.compute.DiskSkuTypes

public class DiskSkuTypes

Defines values for DiskSkuTypes.

Field Summary

Modifier and Type Field and Description
final DiskSkuTypes PREMIUM_LRS

Static value Classic for DiskSkuTypes.

final DiskSkuTypes STANDARD_LRS

Static value Aligned for DiskSkuTypes.

Constructor Summary

Constructor Description
DiskSkuTypes(StorageAccountTypes value)

Creates a custom value for DiskSkuTypes.

Method Summary

Modifier and Type Method and Description
StorageAccountTypes accountType()
boolean equals(Object obj)
DiskSkuTypes fromDiskSku(DiskSku diskSku)

Parses a value into a disk SKU type and creates a new DiskSkuType instance if not found among the existing ones.

DiskSkuTypes fromStorageAccountType(StorageAccountTypes value)

Parses a value into a disk SKU type and creates a new DiskSkuType instance if not found among the existing ones.

int hashCode()
DiskSkuTypes [] values()

Field Details

PREMIUM_LRS

public static final DiskSkuTypes PREMIUM_LRS= new DiskSkuTypes(StorageAccountTypes.PREMIUM_LRS)

Static value Classic for DiskSkuTypes.

STANDARD_LRS

public static final DiskSkuTypes STANDARD_LRS= new DiskSkuTypes(StorageAccountTypes.STANDARD_LRS)

Static value Aligned for DiskSkuTypes.

Constructor Details

DiskSkuTypes

public DiskSkuTypes(StorageAccountTypes value)

Creates a custom value for DiskSkuTypes.

Parameters:

value - the custom value

Method Details

accountType

public StorageAccountTypes accountType()

Returns:

the account type associated with the SKU.

equals

public boolean equals(Object obj)

Parameters:

obj

fromDiskSku

public static DiskSkuTypes fromDiskSku(DiskSku diskSku)

Parses a value into a disk SKU type and creates a new DiskSkuType instance if not found among the existing ones.

Parameters:

diskSku - a disk SKU type name

Returns:

the parsed or created disk SKU type

fromStorageAccountType

public static DiskSkuTypes fromStorageAccountType(StorageAccountTypes value)

Parses a value into a disk SKU type and creates a new DiskSkuType instance if not found among the existing ones.

Parameters:

value - a disk SKU type name

Returns:

the parsed or created disk SKU type

hashCode

public int hashCode()

values

public static DiskSkuTypes [] values()

Returns:

predefined disk SKU types

Applies to