public static enum EmrCreateCluster.SpotAllocationStrategy extends java.lang.Enum<EmrCreateCluster.SpotAllocationStrategy>
Specifies the strategy to use in launching Spot Instance fleets. For example, "capacity-optimized" launches instances from Spot Instance pools with optimal capacity for the number of instances that are launching.
Enum Constant and Description |
---|
CAPACITY_OPTIMIZED
Capacity-optimized, which launches instances from Spot Instance pools with optimal capacity for the number of instances that are launching.
|
Modifier and Type | Method and Description |
---|---|
static EmrCreateCluster.SpotAllocationStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EmrCreateCluster.SpotAllocationStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EmrCreateCluster.SpotAllocationStrategy CAPACITY_OPTIMIZED
public static EmrCreateCluster.SpotAllocationStrategy[] values()
for (EmrCreateCluster.SpotAllocationStrategy c : EmrCreateCluster.SpotAllocationStrategy.values()) System.out.println(c);
public static EmrCreateCluster.SpotAllocationStrategy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null