Enum Class CreationSourceType

java.lang.Object
java.lang.Enum<CreationSourceType>
com.microsoft.azure.management.compute.CreationSourceType
All Implemented Interfaces:
Serializable, Comparable<CreationSourceType>, java.lang.constant.Constable

public enum CreationSourceType extends Enum<CreationSourceType>
The source type of managed disk or snapshot.
  • Enum Constant Details

    • FROM_OS_DISK_IMAGE

      public static final CreationSourceType FROM_OS_DISK_IMAGE
      Indicates that disk or snapshot is created from OS disk image of a virtual machine platform or virtual machine user image.
    • FROM_DATA_DISK_IMAGE

      public static final CreationSourceType FROM_DATA_DISK_IMAGE
      Indicates that disk or snapshot is created from data disk image of a virtual machine platform or virtual machine user image.
    • IMPORTED_FROM_VHD

      public static final CreationSourceType IMPORTED_FROM_VHD
      Indicates that disk or snapshot is created by importing a blob in a storage account.
    • COPIED_FROM_SNAPSHOT

      public static final CreationSourceType COPIED_FROM_SNAPSHOT
      Indicates that disk or snapshot is created by copying a snapshot.
    • COPIED_FROM_DISK

      public static final CreationSourceType COPIED_FROM_DISK
      Indicates that disk or snapshot is created by copying another managed disk.
    • EMPTY

      public static final CreationSourceType EMPTY
      Indicates that disk or snapshot is created as empty disk.
    • UNKNOWN

      public static final CreationSourceType UNKNOWN
      Unknown source.
  • Method Details

    • values

      public static CreationSourceType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CreationSourceType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null