PricingModelType Class

public final class PricingModelType
extends ExpandableStringEnum<PricingModelType>

Identifier that indicates how the meter is priced.

Field Summary

Modifier and Type Field and Description
static final PricingModelType ON_DEMAND

Static value On Demand for PricingModelType.

static final PricingModelType RESERVATION

Static value Reservation for PricingModelType.

static final PricingModelType SPOT

Static value Spot for PricingModelType.

Constructor Summary

Constructor Description
PricingModelType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PricingModelType value.

Method Summary

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

Creates or finds a PricingModelType from its string representation.

static Collection<PricingModelType> values()

Gets known PricingModelType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ON_DEMAND

public static final PricingModelType ON_DEMAND

Static value On Demand for PricingModelType.

RESERVATION

public static final PricingModelType RESERVATION

Static value Reservation for PricingModelType.

SPOT

public static final PricingModelType SPOT

Static value Spot for PricingModelType.

Constructor Details

PricingModelType

@Deprecated
public PricingModelType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PricingModelType value.

Method Details

fromString

public static PricingModelType fromString(String name)

Creates or finds a PricingModelType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding PricingModelType.

values

public static Collection<PricingModelType> values()

Gets known PricingModelType values.

Returns:

known PricingModelType values.

Applies to