@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OnDemandOptionsRequest extends Object implements Serializable, Cloneable
Describes the configuration of On-Demand Instances in an EC2 Fleet.
Constructor and Description |
---|
OnDemandOptionsRequest() |
Modifier and Type | Method and Description |
---|---|
OnDemandOptionsRequest |
clone() |
boolean |
equals(Object obj) |
String |
getAllocationStrategy()
The strategy that determines the order of the launch template overrides to use in fulfilling On-Demand capacity.
|
CapacityReservationOptionsRequest |
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 strategy that determines the order of the launch template overrides to use in fulfilling On-Demand capacity.
|
void |
setCapacityReservationOptions(CapacityReservationOptionsRequest 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.
|
OnDemandOptionsRequest |
withAllocationStrategy(FleetOnDemandAllocationStrategy allocationStrategy)
The strategy that determines the order of the launch template overrides to use in fulfilling On-Demand capacity.
|
OnDemandOptionsRequest |
withAllocationStrategy(String allocationStrategy)
The strategy that determines the order of the launch template overrides to use in fulfilling On-Demand capacity.
|
OnDemandOptionsRequest |
withCapacityReservationOptions(CapacityReservationOptionsRequest capacityReservationOptions)
The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity.
|
OnDemandOptionsRequest |
withMaxTotalPrice(String maxTotalPrice)
The maximum amount per hour for On-Demand Instances that you're willing to pay.
|
OnDemandOptionsRequest |
withMinTargetCapacity(Integer minTargetCapacity)
The minimum target capacity for On-Demand Instances in the fleet.
|
OnDemandOptionsRequest |
withSingleAvailabilityZone(Boolean singleAvailabilityZone)
Indicates that the fleet launches all On-Demand Instances into a single Availability Zone.
|
OnDemandOptionsRequest |
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 strategy that determines the order of the launch template overrides to use in fulfilling On-Demand capacity.
lowest-price
- EC2 Fleet uses price to determine the order, launching the lowest price first.
prioritized
- EC2 Fleet uses the priority that you assigned to each launch template override,
launching the highest priority first.
Default: lowest-price
allocationStrategy
- The strategy that determines the order of the launch template overrides to use in fulfilling On-Demand
capacity.
lowest-price
- EC2 Fleet uses price to determine the order, launching the lowest price first.
prioritized
- EC2 Fleet uses the priority that you assigned to each launch template override,
launching the highest priority first.
Default: lowest-price
FleetOnDemandAllocationStrategy
public String getAllocationStrategy()
The strategy that determines the order of the launch template overrides to use in fulfilling On-Demand capacity.
lowest-price
- EC2 Fleet uses price to determine the order, launching the lowest price first.
prioritized
- EC2 Fleet uses the priority that you assigned to each launch template override,
launching the highest priority first.
Default: lowest-price
lowest-price
- EC2 Fleet uses price to determine the order, launching the lowest price
first.
prioritized
- EC2 Fleet uses the priority that you assigned to each launch template
override, launching the highest priority first.
Default: lowest-price
FleetOnDemandAllocationStrategy
public OnDemandOptionsRequest withAllocationStrategy(String allocationStrategy)
The strategy that determines the order of the launch template overrides to use in fulfilling On-Demand capacity.
lowest-price
- EC2 Fleet uses price to determine the order, launching the lowest price first.
prioritized
- EC2 Fleet uses the priority that you assigned to each launch template override,
launching the highest priority first.
Default: lowest-price
allocationStrategy
- The strategy that determines the order of the launch template overrides to use in fulfilling On-Demand
capacity.
lowest-price
- EC2 Fleet uses price to determine the order, launching the lowest price first.
prioritized
- EC2 Fleet uses the priority that you assigned to each launch template override,
launching the highest priority first.
Default: lowest-price
FleetOnDemandAllocationStrategy
public OnDemandOptionsRequest withAllocationStrategy(FleetOnDemandAllocationStrategy allocationStrategy)
The strategy that determines the order of the launch template overrides to use in fulfilling On-Demand capacity.
lowest-price
- EC2 Fleet uses price to determine the order, launching the lowest price first.
prioritized
- EC2 Fleet uses the priority that you assigned to each launch template override,
launching the highest priority first.
Default: lowest-price
allocationStrategy
- The strategy that determines the order of the launch template overrides to use in fulfilling On-Demand
capacity.
lowest-price
- EC2 Fleet uses price to determine the order, launching the lowest price first.
prioritized
- EC2 Fleet uses the priority that you assigned to each launch template override,
launching the highest priority first.
Default: lowest-price
FleetOnDemandAllocationStrategy
public void setCapacityReservationOptions(CapacityReservationOptionsRequest 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 CapacityReservationOptionsRequest getCapacityReservationOptions()
The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity.
Supported only for fleets of type instant
.
Supported only for fleets of type instant
.
public OnDemandOptionsRequest withCapacityReservationOptions(CapacityReservationOptionsRequest 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
.
Supported only for fleets of type instant
.
public OnDemandOptionsRequest 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
.
Supported only for fleets of type 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
.
Supported only for fleets of type instant
.
public OnDemandOptionsRequest 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
.
Supported only for fleets of type 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.
Supported only for fleets of type instant
.
At least one of the following must be specified: SingleAvailabilityZone
|
SingleInstanceType
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.
Supported only for fleets of type instant
.
At least one of the following must be specified: SingleAvailabilityZone
|
SingleInstanceType
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.
Supported only for fleets of type instant
.
At least one of the following must be specified: SingleAvailabilityZone
|
SingleInstanceType
Supported only for fleets of type instant
.
At least one of the following must be specified: SingleAvailabilityZone
|
SingleInstanceType
public OnDemandOptionsRequest 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.
Supported only for fleets of type instant
.
At least one of the following must be specified: SingleAvailabilityZone
|
SingleInstanceType
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.
Supported only for fleets of type instant
.
At least one of the following must be specified: SingleAvailabilityZone
|
SingleInstanceType
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 OnDemandOptionsRequest 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 Object
Object.toString()
public OnDemandOptionsRequest clone()
Copyright © 2023. All rights reserved.