Dela via


DiskSkuTypes Class

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

public final class DiskSkuTypes

Defines values for DiskSkuTypes.

Field Summary

Modifier and Type Field and Description
static final DiskSkuTypes PREMIUM_LRS

Static value PREMIUM_LRS for DiskSkuTypes.

static final DiskSkuTypes PREMIUM_V2_LRS

Static value PREMIUM_V2_LRS for DiskSkuTypes.

static final DiskSkuTypes STANDARD_LRS

Static value STANDARD_LRS for DiskSkuTypes.

static final DiskSkuTypes STANDARD_SSD_LRS

Static value STANDARD_SSD_LRS for DiskSkuTypes.

static final DiskSkuTypes ULTRA_SSD_LRS

Static value ULTRA_SSD_LRS for DiskSkuTypes.

Constructor Summary

Constructor Description
DiskSkuTypes(DiskStorageAccountTypes value)

Creates a custom value for DiskSkuTypes.

Method Summary

Modifier and Type Method and Description
DiskStorageAccountTypes accountType()
boolean equals(Object obj)
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.

static DiskSkuTypes fromStorageAccountType(DiskStorageAccountTypes value)

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

int hashCode()
String toString()
static DiskSkuTypes[] values()

Methods inherited from java.lang.Object

Field Details

PREMIUM_LRS

public static final DiskSkuTypes PREMIUM_LRS

Static value PREMIUM_LRS for DiskSkuTypes.

PREMIUM_V2_LRS

public static final DiskSkuTypes PREMIUM_V2_LRS

Static value PREMIUM_V2_LRS for DiskSkuTypes.

STANDARD_LRS

public static final DiskSkuTypes STANDARD_LRS

Static value STANDARD_LRS for DiskSkuTypes.

STANDARD_SSD_LRS

public static final DiskSkuTypes STANDARD_SSD_LRS

Static value STANDARD_SSD_LRS for DiskSkuTypes.

ULTRA_SSD_LRS

public static final DiskSkuTypes ULTRA_SSD_LRS

Static value ULTRA_SSD_LRS for DiskSkuTypes.

Constructor Details

DiskSkuTypes

public DiskSkuTypes(DiskStorageAccountTypes value)

Creates a custom value for DiskSkuTypes.

Parameters:

value - the custom value

Method Details

accountType

public DiskStorageAccountTypes accountType()

Returns:

the account type associated with the SKU.

equals

public boolean equals(Object obj)

Overrides:

DiskSkuTypes.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(DiskStorageAccountTypes 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()

Overrides:

DiskSkuTypes.hashCode()

toString

public String toString()

Overrides:

DiskSkuTypes.toString()

values

public static DiskSkuTypes[] values()

Returns:

predefined disk SKU types

Applies to