Dela via


HyperVGeneration Class

public final class HyperVGeneration
extends ExpandableStringEnum<HyperVGeneration>

The hypervisor generation of the Virtual Machine. Applicable to OS disks only.

Field Summary

Modifier and Type Field and Description
static final HyperVGeneration V1

Static value V1 for HyperVGeneration.

static final HyperVGeneration V2

Static value V2 for HyperVGeneration.

Constructor Summary

Constructor Description
HyperVGeneration()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of HyperVGeneration value.

Method Summary

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

Creates or finds a HyperVGeneration from its string representation.

static Collection<HyperVGeneration> values()

Gets known HyperVGeneration values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

V1

public static final HyperVGeneration V1

Static value V1 for HyperVGeneration.

V2

public static final HyperVGeneration V2

Static value V2 for HyperVGeneration.

Constructor Details

HyperVGeneration

@Deprecated
public HyperVGeneration()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of HyperVGeneration value.

Method Details

fromString

public static HyperVGeneration fromString(String name)

Creates or finds a HyperVGeneration from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding HyperVGeneration.

values

public static Collection values()

Gets known HyperVGeneration values.

Returns:

known HyperVGeneration values.

Applies to