DiskState Class

public final class DiskState
extends ExpandableStringEnum<DiskState>

This enumerates the possible state of the disk.

Field Summary

Modifier and Type Field and Description
static final DiskState ACTIVE_SAS

The disk currently has an Active SAS Uri associated with it.

static final DiskState ACTIVE_SASFROZEN

The disk is attached to a VM in hibernated state and has an active SAS URI associated with it.

static final DiskState ACTIVE_UPLOAD

A disk is created for upload and a write token has been issued for uploading to it.

static final DiskState ATTACHED

The disk is currently attached to a running VM.

static final DiskState FROZEN

The disk is attached to a VM which is in hibernated state.

static final DiskState READY_TO_UPLOAD

A disk is ready to be created by upload by requesting a write token.

static final DiskState RESERVED

The disk is attached to a stopped-deallocated VM.

static final DiskState UNATTACHED

The disk is not being used and can be attached to a VM.

Constructor Summary

Constructor Description
DiskState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DiskState value.

Method Summary

Modifier and Type Method and Description
static DiskState fromString(String name)

Creates or finds a DiskState from its string representation.

static Collection<DiskState> values()

Gets known DiskState values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ACTIVE_SAS

public static final DiskState ACTIVE_SAS

The disk currently has an Active SAS Uri associated with it.

ACTIVE_SASFROZEN

public static final DiskState ACTIVE_SASFROZEN

The disk is attached to a VM in hibernated state and has an active SAS URI associated with it.

ACTIVE_UPLOAD

public static final DiskState ACTIVE_UPLOAD

A disk is created for upload and a write token has been issued for uploading to it.

ATTACHED

public static final DiskState ATTACHED

The disk is currently attached to a running VM.

FROZEN

public static final DiskState FROZEN

The disk is attached to a VM which is in hibernated state.

READY_TO_UPLOAD

public static final DiskState READY_TO_UPLOAD

A disk is ready to be created by upload by requesting a write token.

RESERVED

public static final DiskState RESERVED

The disk is attached to a stopped-deallocated VM.

UNATTACHED

public static final DiskState UNATTACHED

The disk is not being used and can be attached to a VM.

Constructor Details

DiskState

@Deprecated
public DiskState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DiskState value.

Method Details

fromString

public static DiskState fromString(String name)

Creates or finds a DiskState from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding DiskState.

values

public static Collection<DiskState> values()

Gets known DiskState values.

Returns:

known DiskState values.

Applies to