Class DiskCreateOptionTypes

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

public final class DiskCreateOptionTypes extends com.azure.core.util.ExpandableStringEnum<DiskCreateOptionTypes>
Specifies how the virtual machine disk should be created. Possible values are **Attach:** This value is used when you are using a specialized disk to create the virtual machine. **FromImage:** This value is used when you are using an image to create the virtual machine. If you are using a platform image, you should also use the imageReference element described above. If you are using a marketplace image, you should also use the plan element previously described. **Empty:** This value is used when creating an empty data disk. **Copy:** This value is used to create a data disk from a snapshot or another disk. **Restore:** This value is used to create a data disk from a disk restore point.
  • Field Details

    • FROM_IMAGE

      public static final DiskCreateOptionTypes FROM_IMAGE
      Static value FromImage for DiskCreateOptionTypes.
    • EMPTY

      public static final DiskCreateOptionTypes EMPTY
      Static value Empty for DiskCreateOptionTypes.
    • ATTACH

      public static final DiskCreateOptionTypes ATTACH
      Static value Attach for DiskCreateOptionTypes.
    • COPY

      public static final DiskCreateOptionTypes COPY
      Static value Copy for DiskCreateOptionTypes.
    • RESTORE

      public static final DiskCreateOptionTypes RESTORE
      Static value Restore for DiskCreateOptionTypes.
  • Constructor Details

    • DiskCreateOptionTypes

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

    • fromString

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

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