Class DiskCreateOptionTypes
java.lang.Object
com.azure.core.util.ExpandableStringEnum<DiskCreateOptionTypes>
com.azure.resourcemanager.compute.models.DiskCreateOptionTypes
public final class DiskCreateOptionTypes
extends com.azure.core.util.ExpandableStringEnum<DiskCreateOptionTypes>
Specifies how the virtual machine 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 also use the imageReference element described
above. If you are using a marketplace image, you also use the plan element previously described.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DiskCreateOptionTypesStatic value Attach for DiskCreateOptionTypes.static final DiskCreateOptionTypesStatic value Empty for DiskCreateOptionTypes.static final DiskCreateOptionTypesStatic value FromImage for DiskCreateOptionTypes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DiskCreateOptionTypesfromString(String name) Creates or finds a DiskCreateOptionTypes from its string representation.static Collection<DiskCreateOptionTypes>values()Gets known DiskCreateOptionTypes values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, hashCode, toString, values
-
Field Details
-
FROM_IMAGE
Static value FromImage for DiskCreateOptionTypes. -
EMPTY
Static value Empty for DiskCreateOptionTypes. -
ATTACH
Static value Attach for DiskCreateOptionTypes.
-
-
Constructor Details
-
DiskCreateOptionTypes
Deprecated.Use thefromString(String)factory method.Creates a new instance of DiskCreateOptionTypes value.
-
-
Method Details
-
fromString
Creates or finds a DiskCreateOptionTypes from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding DiskCreateOptionTypes.
-
values
Gets known DiskCreateOptionTypes values.- Returns:
- known DiskCreateOptionTypes values.
-
fromString(String)factory method.