Enum CreationSourceType

    • Enum Constant Detail

      • 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.
    • Method Detail

      • values

        public static CreationSourceType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CreationSourceType c : CreationSourceType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CreationSourceType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null