Enum CreationSourceType
- java.lang.Object
-
- java.lang.Enum<CreationSourceType>
-
- com.azure.resourcemanager.compute.models.CreationSourceType
-
- All Implemented Interfaces:
Serializable,Comparable<CreationSourceType>
public enum CreationSourceType extends Enum<CreationSourceType>
The source type of managed disk or snapshot.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COPIED_FROM_DISKIndicates that disk or snapshot is created by copying another managed disk.COPIED_FROM_SNAPSHOTIndicates that disk or snapshot is created by copying a snapshot.EMPTYIndicates that disk or snapshot is created as empty disk.FROM_DATA_DISK_IMAGEIndicates that disk or snapshot is created from data disk image of a virtual machine platform or virtual machine user image.FROM_OS_DISK_IMAGEIndicates that disk or snapshot is created from OS disk image of a virtual machine platform or virtual machine user image.IMPORTED_FROM_VHDIndicates that disk or snapshot is created by importing a blob in a storage account.UNKNOWNUnknown source.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CreationSourceTypevalueOf(String name)Returns the enum constant of this type with the specified name.static CreationSourceType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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.
-
UNKNOWN
public static final CreationSourceType UNKNOWN
Unknown source.
-
-
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 nameNullPointerException- if the argument is null
-
-