@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.
|
Integer |
getMinTargetCapacity()
The minimum target capacity for On-Demand Instances in the fleet.
|
Boolean |
getSingleAvailabilityZone()
Indicates that the fleet launches all On-Demand Instances into a single Availability Zone.
|
Boolean |
getSingleInstanceType()
Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet.
|
int |
hashCode() |
Boolean |
isSingleAvailabilityZone()
Indicates that the fleet launches all On-Demand Instances into a single Availability Zone.
|
Boolean |
isSingleInstanceType()
Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet.
|
void |
setAllocationStrategy(String allocationStrategy)
The order of the launch template overrides to use in fulfilling On-Demand capacity.
|
void |
setMinTargetCapacity(Integer minTargetCapacity)
The minimum target capacity for On-Demand Instances in the fleet.
|
void |
setSingleAvailabilityZone(Boolean singleAvailabilityZone)
Indicates that the fleet launches all On-Demand Instances into a single Availability Zone.
|
void |
setSingleInstanceType(Boolean singleInstanceType)
Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet.
|
String |
toString()
Returns a string representation of this object.
|
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.
|
OnDemandOptions |
withMinTargetCapacity(Integer minTargetCapacity)
The minimum target capacity for On-Demand Instances in the fleet.
|
OnDemandOptions |
withSingleAvailabilityZone(Boolean singleAvailabilityZone)
Indicates that the fleet launches all On-Demand Instances into a single Availability Zone.
|
OnDemandOptions |
withSingleInstanceType(Boolean singleInstanceType)
Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet.
|
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.FleetOnDemandAllocationStrategypublic 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.FleetOnDemandAllocationStrategypublic 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.FleetOnDemandAllocationStrategypublic 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.FleetOnDemandAllocationStrategypublic void setSingleInstanceType(Boolean singleInstanceType)
Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet.
singleInstanceType - Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet.public Boolean getSingleInstanceType()
Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet.
public OnDemandOptions withSingleInstanceType(Boolean singleInstanceType)
Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet.
singleInstanceType - Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet.public Boolean isSingleInstanceType()
Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet.
public void setSingleAvailabilityZone(Boolean singleAvailabilityZone)
Indicates that the fleet launches all On-Demand Instances into a single Availability Zone.
singleAvailabilityZone - Indicates that the fleet launches all On-Demand Instances into a single Availability Zone.public Boolean getSingleAvailabilityZone()
Indicates that the fleet launches all On-Demand Instances into a single Availability Zone.
public OnDemandOptions withSingleAvailabilityZone(Boolean singleAvailabilityZone)
Indicates that the fleet launches all On-Demand Instances into a single Availability Zone.
singleAvailabilityZone - Indicates that the fleet launches all On-Demand Instances into a single Availability Zone.public Boolean isSingleAvailabilityZone()
Indicates that the fleet launches all On-Demand Instances into a single Availability Zone.
public void setMinTargetCapacity(Integer minTargetCapacity)
The minimum target capacity for On-Demand Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances.
minTargetCapacity - The minimum target capacity for On-Demand Instances in the fleet. If the minimum target capacity is not
reached, the fleet launches no instances.public Integer getMinTargetCapacity()
The minimum target capacity for On-Demand Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances.
public OnDemandOptions withMinTargetCapacity(Integer minTargetCapacity)
The minimum target capacity for On-Demand Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances.
minTargetCapacity - The minimum target capacity for On-Demand Instances in the fleet. If the minimum target capacity is not
reached, the fleet launches no instances.public String toString()
toString in class ObjectObject.toString()public OnDemandOptions clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.