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 Details

    • FORCE_DETACH

      public static final DiskDetachOptionTypes FORCE_DETACH
      Static value ForceDetach for DiskDetachOptionTypes.
  • Constructor Details

    • DiskDetachOptionTypes

      @Deprecated public DiskDetachOptionTypes()
      Deprecated.
      Use the fromString(String) factory method.
      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:
      name - a name to look for.
      Returns:
      the corresponding DiskDetachOptionTypes.
    • values

      public static Collection<DiskDetachOptionTypes> values()
      Gets known DiskDetachOptionTypes values.
      Returns:
      known DiskDetachOptionTypes values.