Class DiskDetachOptionTypes
java.lang.Object
com.azure.core.util.ExpandableStringEnum<DiskDetachOptionTypes>
com.azure.resourcemanager.compute.models.DiskDetachOptionTypes
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class DiskDetachOptionTypes
extends com.azure.core.util.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. To
force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DiskDetachOptionTypesStatic value ForceDetach for DiskDetachOptionTypes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DiskDetachOptionTypesfromString(String name) Creates or finds a DiskDetachOptionTypes from its string representation.static Collection<DiskDetachOptionTypes> values()Gets known DiskDetachOptionTypes values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
FORCE_DETACH
Static value ForceDetach for DiskDetachOptionTypes.
-
-
Constructor Details
-
DiskDetachOptionTypes
Deprecated.Use thefromString(String)factory method.Creates a new instance of DiskDetachOptionTypes value.
-
-
Method Details
-
fromString
Creates or finds a DiskDetachOptionTypes from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding DiskDetachOptionTypes.
-
values
Gets known DiskDetachOptionTypes values.- Returns:
- known DiskDetachOptionTypes values.
-
fromString(String)factory method.