@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OnDemandOptions extends Object implements Serializable, Cloneable
The allocation strategy of On-Demand Instances in an EC2 Fleet.
Constructor and Description |
---|
OnDemandOptions() |
Modifier and Type | Method and Description |
---|---|
OnDemandOptions |
clone() |
boolean |
equals(Object obj) |
String |
getAllocationStrategy()
The order of the launch template overrides to use in fulfilling On-Demand capacity.
|
int |
hashCode() |
void |
setAllocationStrategy(String allocationStrategy)
The order of the launch template overrides to use in fulfilling On-Demand capacity.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
OnDemandOptions |
withAllocationStrategy(FleetOnDemandAllocationStrategy allocationStrategy)
The order of the launch template overrides to use in fulfilling On-Demand capacity.
|
OnDemandOptions |
withAllocationStrategy(String allocationStrategy)
The order of the launch template overrides to use in fulfilling On-Demand capacity.
|
public void setAllocationStrategy(String allocationStrategy)
The order of the launch template overrides to use in fulfilling On-Demand capacity. If you specify
lowest-price
, EC2 Fleet uses price to determine the order, launching the lowest price first. If you
specify prioritized
, EC2 Fleet uses the priority that you assigned to each launch template override,
launching the highest priority first. If you do not specify a value, EC2 Fleet defaults to
lowest-price
.
allocationStrategy
- The order of the launch template overrides to use in fulfilling On-Demand capacity. If you specify
lowest-price
, EC2 Fleet uses price to determine the order, launching the lowest price first.
If you specify prioritized
, EC2 Fleet uses the priority that you assigned to each launch
template override, launching the highest priority first. If you do not specify a value, EC2 Fleet defaults
to lowest-price
.FleetOnDemandAllocationStrategy
public String getAllocationStrategy()
The order of the launch template overrides to use in fulfilling On-Demand capacity. If you specify
lowest-price
, EC2 Fleet uses price to determine the order, launching the lowest price first. If you
specify prioritized
, EC2 Fleet uses the priority that you assigned to each launch template override,
launching the highest priority first. If you do not specify a value, EC2 Fleet defaults to
lowest-price
.
lowest-price
, EC2 Fleet uses price to determine the order, launching the lowest price first.
If you specify prioritized
, EC2 Fleet uses the priority that you assigned to each launch
template override, launching the highest priority first. If you do not specify a value, EC2 Fleet
defaults to lowest-price
.FleetOnDemandAllocationStrategy
public OnDemandOptions withAllocationStrategy(String allocationStrategy)
The order of the launch template overrides to use in fulfilling On-Demand capacity. If you specify
lowest-price
, EC2 Fleet uses price to determine the order, launching the lowest price first. If you
specify prioritized
, EC2 Fleet uses the priority that you assigned to each launch template override,
launching the highest priority first. If you do not specify a value, EC2 Fleet defaults to
lowest-price
.
allocationStrategy
- The order of the launch template overrides to use in fulfilling On-Demand capacity. If you specify
lowest-price
, EC2 Fleet uses price to determine the order, launching the lowest price first.
If you specify prioritized
, EC2 Fleet uses the priority that you assigned to each launch
template override, launching the highest priority first. If you do not specify a value, EC2 Fleet defaults
to lowest-price
.FleetOnDemandAllocationStrategy
public OnDemandOptions withAllocationStrategy(FleetOnDemandAllocationStrategy allocationStrategy)
The order of the launch template overrides to use in fulfilling On-Demand capacity. If you specify
lowest-price
, EC2 Fleet uses price to determine the order, launching the lowest price first. If you
specify prioritized
, EC2 Fleet uses the priority that you assigned to each launch template override,
launching the highest priority first. If you do not specify a value, EC2 Fleet defaults to
lowest-price
.
allocationStrategy
- The order of the launch template overrides to use in fulfilling On-Demand capacity. If you specify
lowest-price
, EC2 Fleet uses price to determine the order, launching the lowest price first.
If you specify prioritized
, EC2 Fleet uses the priority that you assigned to each launch
template override, launching the highest priority first. If you do not specify a value, EC2 Fleet defaults
to lowest-price
.FleetOnDemandAllocationStrategy
public String toString()
toString
in class Object
Object.toString()
public OnDemandOptions clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.