DiskState Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. compute. models. DiskState
- com.
- com.
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
Disk |
ACTIVE_SAS
The disk currently has an Active SAS Uri associated with it. |
|
static final
Disk |
ACTIVE_SASFROZEN
The disk is attached to a VM in hibernated state and has an active SAS URI associated with it. |
|
static final
Disk |
ACTIVE_UPLOAD
A disk is created for upload and a write token has been issued for uploading to it. |
|
static final
Disk |
ATTACHED
The disk is currently attached to a running VM. |
|
static final
Disk |
FROZEN
The disk is attached to a VM which is in hibernated state. |
|
static final
Disk |
READY_TO_UPLOAD
A disk is ready to be created by upload by requesting a write token. |
|
static final
Disk |
RESERVED
The disk is attached to a stopped-deallocated VM. |
|
static final
Disk |
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 Disk |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Disk |
fromString(String name)
Creates or finds a Disk |
|
static
Collection<Disk |
values()
Gets known Disk |
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
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:
Returns:
values
public static Collection<DiskState> values()
Gets known DiskState values.
Returns: