Partilhar via


ComputeModel Class

public final class ComputeModel
extends ExpandableStringEnum<ComputeModel>

Compute model enum.

Field Summary

Modifier and Type Field and Description
static final ComputeModel ECPU

Static value ECPU for ComputeModel.

static final ComputeModel OCPU

Static value OCPU for ComputeModel.

Constructor Summary

Constructor Description
ComputeModel()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ComputeModel value.

Method Summary

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

Creates or finds a ComputeModel from its string representation.

static Collection<ComputeModel> values()

Gets known ComputeModel values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ECPU

public static final ComputeModel ECPU

Static value ECPU for ComputeModel.

OCPU

public static final ComputeModel OCPU

Static value OCPU for ComputeModel.

Constructor Details

ComputeModel

@Deprecated
public ComputeModel()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ComputeModel value.

Method Details

fromString

public static ComputeModel fromString(String name)

Creates or finds a ComputeModel from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding ComputeModel.

values

public static Collection<ComputeModel> values()

Gets known ComputeModel values.

Returns:

known ComputeModel values.

Applies to