Class DiskState
java.lang.Object
com.azure.core.util.ExpandableStringEnum<DiskState>
com.azure.resourcemanager.compute.models.DiskState
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
This enumerates the possible state of the disk.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DiskStateThe disk currently has an Active SAS Uri associated with it.static final DiskStateThe disk is attached to a VM in hibernated state and has an active SAS URI associated with it.static final DiskStateA disk is created for upload and a write token has been issued for uploading to it.static final DiskStateThe disk is currently attached to a running VM.static final DiskStateThe disk is attached to a VM which is in hibernated state.static final DiskStateA disk is ready to be created by upload by requesting a write token.static final DiskStateThe disk is attached to a stopped-deallocated VM.static final DiskStateThe disk is not being used and can be attached to a VM. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DiskStatefromString(String name) Creates or finds a DiskState from its string representation.static Collection<DiskState> values()Gets known DiskState values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
UNATTACHED
The disk is not being used and can be attached to a VM. -
ATTACHED
The disk is currently attached to a running VM. -
RESERVED
The disk is attached to a stopped-deallocated VM. -
FROZEN
The disk is attached to a VM which is in hibernated state. -
ACTIVE_SAS
The disk currently has an Active SAS Uri associated with it. -
ACTIVE_SASFROZEN
The disk is attached to a VM in hibernated state and has an active SAS URI associated with it. -
READY_TO_UPLOAD
A disk is ready to be created by upload by requesting a write token. -
ACTIVE_UPLOAD
A disk is created for upload and a write token has been issued for uploading to it.
-
-
Constructor Details
-
DiskState
Deprecated.Use thefromString(String)factory method.Creates a new instance of DiskState value.
-
-
Method Details
-
fromString
-
values
Gets known DiskState values.- Returns:
- known DiskState values.
-
fromString(String)factory method.