@Generated public enum SpotInstancePolicy extends Enum<SpotInstancePolicy>
The breakdown of how the EndpointSpotInstancePolicy converts to per cloud configurations is:
+-------+--------------------------------------+--------------------------------+ | Cloud | COST_OPTIMIZED | RELIABILITY_OPTIMIZED | +-------+--------------------------------------+--------------------------------+ | AWS | On Demand Driver with Spot Executors | On Demand Driver and Executors | | AZURE | On Demand Driver and Executors | On Demand Driver and Executors | +-------+--------------------------------------+--------------------------------+
While including "spot" in the enum name may limit the the future extensibility of this field because it limits this enum to denoting "spot or not", this is the field that PM recommends after discussion with customers per SC-48783.
| Enum Constant and Description |
|---|
COST_OPTIMIZED |
POLICY_UNSPECIFIED |
RELIABILITY_OPTIMIZED |
| Modifier and Type | Method and Description |
|---|---|
static SpotInstancePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpotInstancePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpotInstancePolicy COST_OPTIMIZED
public static final SpotInstancePolicy POLICY_UNSPECIFIED
public static final SpotInstancePolicy RELIABILITY_OPTIMIZED
public static SpotInstancePolicy[] values()
for (SpotInstancePolicy c : SpotInstancePolicy.values()) System.out.println(c);
public static SpotInstancePolicy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2026. All rights reserved.