LicenseType Class

public final class LicenseType
extends ExpandableStringEnum<LicenseType>

The license type to use for Windows VMs. See [Azure Hybrid User Benefits](https://azure.microsoft.com/pricing/hybrid-benefit/faq/) for more details.

Field Summary

Modifier and Type Field and Description
static final LicenseType NONE

Static value None for LicenseType.

static final LicenseType WINDOWS_SERVER

Static value Windows_Server for LicenseType.

Constructor Summary

Constructor Description
LicenseType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LicenseType value.

Method Summary

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

Creates or finds a LicenseType from its string representation.

static Collection<LicenseType> values()

Gets known LicenseType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

NONE

public static final LicenseType NONE

Static value None for LicenseType.

WINDOWS_SERVER

public static final LicenseType WINDOWS_SERVER

Static value Windows_Server for LicenseType.

Constructor Details

LicenseType

@Deprecated
public LicenseType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LicenseType value.

Method Details

fromString

public static LicenseType fromString(String name)

Creates or finds a LicenseType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding LicenseType.

values

public static Collection values()

Gets known LicenseType values.

Returns:

known LicenseType values.

Applies to