ReservationType Class

public final class ReservationType
extends ExpandableStringEnum<ReservationType>

The type of transaction.

Field Summary

Modifier and Type Field and Description
static final ReservationType PURCHASE

Static value Purchase for ReservationType.

static final ReservationType USAGE_CHARGE

Static value Usage Charge for ReservationType.

Constructor Summary

Constructor Description
ReservationType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ReservationType value.

Method Summary

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

Creates or finds a ReservationType from its string representation.

static Collection<ReservationType> values()

Gets known ReservationType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

PURCHASE

public static final ReservationType PURCHASE

Static value Purchase for ReservationType.

USAGE_CHARGE

public static final ReservationType USAGE_CHARGE

Static value Usage Charge for ReservationType.

Constructor Details

ReservationType

@Deprecated
public ReservationType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ReservationType value.

Method Details

fromString

public static ReservationType fromString(String name)

Creates or finds a ReservationType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding ReservationType.

values

public static Collection values()

Gets known ReservationType values.

Returns:

known ReservationType values.

Applies to

Azure SDK for Java

Preview