@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OnDemandOptions extends Object implements Serializable, Cloneable
Describes the configuration 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.
|
CapacityReservationOptions |
getCapacityReservationOptions()
The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity.
|
String |
getMaxTotalPrice()
The maximum amount per hour for On-Demand Instances that you're willing to pay.
|
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 |
setCapacityReservationOptions(CapacityReservationOptions capacityReservationOptions)
The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity.
|
void |
setMaxTotalPrice(String maxTotalPrice)
The maximum amount per hour for On-Demand Instances that you're willing to pay.
|
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 |
withCapacityReservationOptions(CapacityReservationOptions capacityReservationOptions)
The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity.
|
OnDemandOptions |
withMaxTotalPrice(String maxTotalPrice)
The maximum amount per hour for On-Demand Instances that you're willing to pay.
|
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 setCapacityReservationOptions(CapacityReservationOptions capacityReservationOptions)
The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets
of type instant.
capacityReservationOptions - The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for
fleets of type instant.public CapacityReservationOptions getCapacityReservationOptions()
The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets
of type instant.
instant.public OnDemandOptions withCapacityReservationOptions(CapacityReservationOptions capacityReservationOptions)
The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets
of type instant.
capacityReservationOptions - The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for
fleets of type instant.public void setSingleInstanceType(Boolean singleInstanceType)
Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet. Supported
only for fleets of type instant.
singleInstanceType - Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet.
Supported only for fleets of type instant.public Boolean getSingleInstanceType()
Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet. Supported
only for fleets of type instant.
instant.public OnDemandOptions withSingleInstanceType(Boolean singleInstanceType)
Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet. Supported
only for fleets of type instant.
singleInstanceType - Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet.
Supported only for fleets of type instant.public Boolean isSingleInstanceType()
Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet. Supported
only for fleets of type instant.
instant.public void setSingleAvailabilityZone(Boolean singleAvailabilityZone)
Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for
fleets of type instant.
singleAvailabilityZone - Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only
for fleets of type instant.public Boolean getSingleAvailabilityZone()
Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for
fleets of type instant.
instant.public OnDemandOptions withSingleAvailabilityZone(Boolean singleAvailabilityZone)
Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for
fleets of type instant.
singleAvailabilityZone - Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only
for fleets of type instant.public Boolean isSingleAvailabilityZone()
Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for
fleets of type instant.
instant.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 void setMaxTotalPrice(String maxTotalPrice)
The maximum amount per hour for On-Demand Instances that you're willing to pay.
maxTotalPrice - The maximum amount per hour for On-Demand Instances that you're willing to pay.public String getMaxTotalPrice()
The maximum amount per hour for On-Demand Instances that you're willing to pay.
public OnDemandOptions withMaxTotalPrice(String maxTotalPrice)
The maximum amount per hour for On-Demand Instances that you're willing to pay.
maxTotalPrice - The maximum amount per hour for On-Demand Instances that you're willing to pay.public String toString()
toString in class ObjectObject.toString()public OnDemandOptions clone()