@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 strategy that determines 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 strategy that determines 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 strategy that determines the order of the launch template overrides to use in fulfilling On-Demand capacity. | 
| OnDemandOptions | withAllocationStrategy(String allocationStrategy)
 The strategy that determines 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 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
FleetOnDemandAllocationStrategypublic 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
FleetOnDemandAllocationStrategypublic OnDemandOptions 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
FleetOnDemandAllocationStrategypublic OnDemandOptions 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
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.
 
         Supported only for fleets of type 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.
 
         Supported only for fleets of type 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.
 
         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 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.
 
         Supported only for fleets of type instant.
public void setMinTargetCapacity(Integer minTargetCapacity)
The minimum target capacity for On-Demand Instances in the fleet. If this minimum capacity isn't reached, no instances are launched.
 Constraints: Maximum value of 1000. 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 this minimum capacity isn't reached,
        no instances are launched.
        
        Constraints: Maximum value of 1000. 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 this minimum capacity isn't reached, no instances are launched.
 Constraints: Maximum value of 1000. Supported only for fleets of type instant.
 
 At least one of the following must be specified: SingleAvailabilityZone |
 SingleInstanceType
 
         Constraints: Maximum value of 1000. Supported only for fleets of type instant.
         
         At least one of the following must be specified: SingleAvailabilityZone |
         SingleInstanceType
public OnDemandOptions withMinTargetCapacity(Integer minTargetCapacity)
The minimum target capacity for On-Demand Instances in the fleet. If this minimum capacity isn't reached, no instances are launched.
 Constraints: Maximum value of 1000. 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 this minimum capacity isn't reached,
        no instances are launched.
        
        Constraints: Maximum value of 1000. 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.
 If your fleet includes T instances that are configured as unlimited, and if their average CPU usage
 exceeds the baseline utilization, you will incur a charge for surplus credits. The maxTotalPrice
 does not account for surplus credits, and, if you use surplus credits, your final cost might be higher than what
 you specified for maxTotalPrice. For more information, see Surplus credits can incur charges in the Amazon EC2 User Guide.
 
maxTotalPrice - The maximum amount per hour for On-Demand Instances that you're willing to pay. 
        If your fleet includes T instances that are configured as unlimited, and if their average CPU
        usage exceeds the baseline utilization, you will incur a charge for surplus credits. The
        maxTotalPrice does not account for surplus credits, and, if you use surplus credits, your
        final cost might be higher than what you specified for maxTotalPrice. For more information,
        see Surplus credits can incur charges in the Amazon EC2 User Guide.
        
public String getMaxTotalPrice()
The maximum amount per hour for On-Demand Instances that you're willing to pay.
 If your fleet includes T instances that are configured as unlimited, and if their average CPU usage
 exceeds the baseline utilization, you will incur a charge for surplus credits. The maxTotalPrice
 does not account for surplus credits, and, if you use surplus credits, your final cost might be higher than what
 you specified for maxTotalPrice. For more information, see Surplus credits can incur charges in the Amazon EC2 User Guide.
 
         If your fleet includes T instances that are configured as unlimited, and if their average
         CPU usage exceeds the baseline utilization, you will incur a charge for surplus credits. The
         maxTotalPrice does not account for surplus credits, and, if you use surplus credits, your
         final cost might be higher than what you specified for maxTotalPrice. For more information,
         see Surplus credits can incur charges in the Amazon EC2 User Guide.
         
public OnDemandOptions withMaxTotalPrice(String maxTotalPrice)
The maximum amount per hour for On-Demand Instances that you're willing to pay.
 If your fleet includes T instances that are configured as unlimited, and if their average CPU usage
 exceeds the baseline utilization, you will incur a charge for surplus credits. The maxTotalPrice
 does not account for surplus credits, and, if you use surplus credits, your final cost might be higher than what
 you specified for maxTotalPrice. For more information, see Surplus credits can incur charges in the Amazon EC2 User Guide.
 
maxTotalPrice - The maximum amount per hour for On-Demand Instances that you're willing to pay. 
        If your fleet includes T instances that are configured as unlimited, and if their average CPU
        usage exceeds the baseline utilization, you will incur a charge for surplus credits. The
        maxTotalPrice does not account for surplus credits, and, if you use surplus credits, your
        final cost might be higher than what you specified for maxTotalPrice. For more information,
        see Surplus credits can incur charges in the Amazon EC2 User Guide.
        
public String toString()
toString in class ObjectObject.toString()public OnDemandOptions clone()