DiskDetachOptionTypes Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. compute. models. DiskDetachOptionTypes
- com.
- com.
public final class DiskDetachOptionTypes
extends ExpandableStringEnum<DiskDetachOptionTypes>
Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values are: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview**. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Disk |
FORCE_DETACH
Static value Force |
Constructor Summary
Constructor | Description |
---|---|
DiskDetachOptionTypes() |
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
FORCE_DETACH
public static final DiskDetachOptionTypes FORCE_DETACH
Static value ForceDetach for DiskDetachOptionTypes.
Constructor Details
DiskDetachOptionTypes
@Deprecated
public DiskDetachOptionTypes()
Deprecated
Creates a new instance of DiskDetachOptionTypes value.
Method Details
fromString
public static DiskDetachOptionTypes fromString(String name)
Creates or finds a DiskDetachOptionTypes from its string representation.
Parameters:
Returns:
values
public static Collection
Gets known DiskDetachOptionTypes values.
Returns:
Applies to
Azure SDK for Java