DiskCreateOptionTypes Class

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 DiskCreateOptionTypes ATTACH

Static value Attach for DiskCreateOptionTypes.

static final DiskCreateOptionTypes COPY

Static value Copy for DiskCreateOptionTypes.

static final DiskCreateOptionTypes EMPTY

Static value Empty for DiskCreateOptionTypes.

static final DiskCreateOptionTypes FROM_IMAGE

Static value FromImage for DiskCreateOptionTypes.

static final DiskCreateOptionTypes RESTORE

Static value Restore for DiskCreateOptionTypes.

Constructor Summary

Constructor Description
DiskCreateOptionTypes()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DiskCreateOptionTypes value.

Method Summary

Modifier and Type Method and Description
static DiskCreateOptionTypes fromString(String name)

Creates or finds a DiskCreateOptionTypes from its string representation.

static Collection<DiskCreateOptionTypes> values()

Gets known DiskCreateOptionTypes values.

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

Use the fromString(String name) factory method.

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:

name - a name to look for.

Returns:

the corresponding DiskCreateOptionTypes.

values

public static Collection values()

Gets known DiskCreateOptionTypes values.

Returns:

known DiskCreateOptionTypes values.

Applies to