DiskCreateOptionTypes Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. compute. models. DiskCreateOptionTypes
- com.
- com.
public final class DiskCreateOptionTypes
extends 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 Summary
Modifier and Type | Field and Description |
---|---|
static final
Disk |
ATTACH
Static value Attach for Disk |
static final
Disk |
COPY
Static value Copy for Disk |
static final
Disk |
EMPTY
Static value Empty for Disk |
static final
Disk |
FROM_IMAGE
Static value From |
static final
Disk |
RESTORE
Static value Restore for Disk |
Constructor Summary
Constructor | Description |
---|---|
DiskCreateOptionTypes() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Disk |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Disk |
fromString(String name)
Creates or finds a Disk |
static
Collection<Disk |
values()
Gets known Disk |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
ATTACH
public static final DiskCreateOptionTypes ATTACH
Static value Attach for DiskCreateOptionTypes.
COPY
public static final DiskCreateOptionTypes COPY
Static value Copy for DiskCreateOptionTypes.
EMPTY
public static final DiskCreateOptionTypes EMPTY
Static value Empty for DiskCreateOptionTypes.
FROM_IMAGE
public static final DiskCreateOptionTypes FROM_IMAGE
Static value FromImage for DiskCreateOptionTypes.
RESTORE
public static final DiskCreateOptionTypes RESTORE
Static value Restore for DiskCreateOptionTypes.
Constructor Details
DiskCreateOptionTypes
@Deprecated
public DiskCreateOptionTypes()
Deprecated
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:
Returns:
values
public static Collection
Gets known DiskCreateOptionTypes values.
Returns:
Applies to
Azure SDK for Java