Class DiskDeleteOptionTypes

java.lang.Object
com.azure.core.util.ExpandableStringEnum<DiskDeleteOptionTypes>
com.azure.resourcemanager.compute.models.DiskDeleteOptionTypes
All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>

public final class DiskDeleteOptionTypes extends com.azure.core.util.ExpandableStringEnum<DiskDeleteOptionTypes>
Specifies the behavior of the managed disk when the VM gets deleted, for example whether the managed disk is deleted or detached. Supported values are: **Delete.** If this value is used, the managed disk is deleted when VM gets deleted. **Detach.** If this value is used, the managed disk is retained after VM gets deleted. Minimum api-version: 2021-03-01.
  • Field Details

    • DELETE

      public static final DiskDeleteOptionTypes DELETE
      Static value Delete for DiskDeleteOptionTypes.
    • DETACH

      public static final DiskDeleteOptionTypes DETACH
      Static value Detach for DiskDeleteOptionTypes.
  • Constructor Details

    • DiskDeleteOptionTypes

      @Deprecated public DiskDeleteOptionTypes()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of DiskDeleteOptionTypes value.
  • Method Details

    • fromString

      public static DiskDeleteOptionTypes fromString(String name)
      Creates or finds a DiskDeleteOptionTypes from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding DiskDeleteOptionTypes.
    • values

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