Partager via


SnapshotSkuType Class

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

public final class SnapshotSkuType

Defines values for SnapshotSkuType.

Field Summary

Modifier and Type Field and Description
static final SnapshotSkuType PREMIUM_LRS

Static value PREMIUM_LRS for SnapshotSkuType.

static final SnapshotSkuType STANDARD_LRS

Static value STANDARD_LRS for SnapshotSkuType.

static final SnapshotSkuType STANDARD_ZRS

Static value STANDARD_ZRS for SnapshotSkuType.

Method Summary

Modifier and Type Method and Description
SnapshotStorageAccountTypes accountType()
boolean equals(Object obj)
static SnapshotSkuType fromSnapshotSku(SnapshotSku snapshotSku)

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

static SnapshotSkuType fromStorageAccountType(SnapshotStorageAccountTypes value)

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

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

Methods inherited from java.lang.Object

Field Details

PREMIUM_LRS

public static final SnapshotSkuType PREMIUM_LRS

Static value PREMIUM_LRS for SnapshotSkuType.

STANDARD_LRS

public static final SnapshotSkuType STANDARD_LRS

Static value STANDARD_LRS for SnapshotSkuType.

STANDARD_ZRS

public static final SnapshotSkuType STANDARD_ZRS

Static value STANDARD_ZRS for SnapshotSkuType.

Method Details

accountType

public SnapshotStorageAccountTypes accountType()

Returns:

the account type associated with the SKU.

equals

public boolean equals(Object obj)

Overrides:

SnapshotSkuType.equals(Object obj)

Parameters:

obj

fromSnapshotSku

public static SnapshotSkuType fromSnapshotSku(SnapshotSku snapshotSku)

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

Parameters:

snapshotSku - a snapshot SKU type name

Returns:

the parsed or created snapshot SKU type

fromStorageAccountType

public static SnapshotSkuType fromStorageAccountType(SnapshotStorageAccountTypes value)

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

Parameters:

value - a snapshot SKU type name

Returns:

the parsed or created snapshot SKU type

hashCode

public int hashCode()

Overrides:

SnapshotSkuType.hashCode()

toString

public String toString()

Overrides:

SnapshotSkuType.toString()

values

public static SnapshotSkuType[] values()

Returns:

predefined snapshot SKU types

Applies to