PredictionPreference Class

public final class PredictionPreference
extends ExpandableStringEnum<PredictionPreference>

Determines the balance between cost and performance.

Field Summary

Modifier and Type Field and Description
static final PredictionPreference BALANCED

Balance between cost and performance.

static final PredictionPreference BEST_PERFORMANCE

Optimizes for performance over cost.

static final PredictionPreference MORE_COST_EFFECTIVE

Halfway through cost and balanced.

static final PredictionPreference MORE_PERFORMANCE

Halfway through balanced and performance.

static final PredictionPreference MOST_COST_EFFECTIVE

Optimizes for cost over performance.

Constructor Summary

Constructor Description
PredictionPreference()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PredictionPreference value.

Method Summary

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

Creates or finds a PredictionPreference from its string representation.

static Collection<PredictionPreference> values()

Gets known PredictionPreference values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

BALANCED

public static final PredictionPreference BALANCED

Balance between cost and performance.

BEST_PERFORMANCE

public static final PredictionPreference BEST_PERFORMANCE

Optimizes for performance over cost.

MORE_COST_EFFECTIVE

public static final PredictionPreference MORE_COST_EFFECTIVE

Halfway through cost and balanced.

MORE_PERFORMANCE

public static final PredictionPreference MORE_PERFORMANCE

Halfway through balanced and performance.

MOST_COST_EFFECTIVE

public static final PredictionPreference MOST_COST_EFFECTIVE

Optimizes for cost over performance.

Constructor Details

PredictionPreference

@Deprecated
public PredictionPreference()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PredictionPreference value.

Method Details

fromString

public static PredictionPreference fromString(String name)

Creates or finds a PredictionPreference from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding PredictionPreference.

values

public static Collection<PredictionPreference> values()

Gets known PredictionPreference values.

Returns:

known PredictionPreference values.

Applies to