@Generated(value="software.amazon.awssdk:codegen") public final class OnDemandOptions extends Object implements SdkPojo, Serializable, ToCopyableBuilder<OnDemandOptions.Builder,OnDemandOptions>
Describes the configuration of On-Demand Instances in an EC2 Fleet.
| Modifier and Type | Class and Description |
|---|---|
static interface |
OnDemandOptions.Builder |
| Modifier and Type | Method and Description |
|---|---|
FleetOnDemandAllocationStrategy |
allocationStrategy()
The order of the launch template overrides to use in fulfilling On-Demand capacity.
|
String |
allocationStrategyAsString()
The order of the launch template overrides to use in fulfilling On-Demand capacity.
|
static OnDemandOptions.Builder |
builder() |
CapacityReservationOptions |
capacityReservationOptions()
The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
maxTotalPrice()
The maximum amount per hour for On-Demand Instances that you're willing to pay.
|
Integer |
minTargetCapacity()
The minimum target capacity for On-Demand Instances in the fleet.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends OnDemandOptions.Builder> |
serializableBuilderClass() |
Boolean |
singleAvailabilityZone()
Indicates that the fleet launches all On-Demand Instances into a single Availability Zone.
|
Boolean |
singleInstanceType()
Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet.
|
OnDemandOptions.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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.
If the service returns an enum value that is not available in the current SDK version,
allocationStrategy will return FleetOnDemandAllocationStrategy.UNKNOWN_TO_SDK_VERSION. The raw
value returned by the service is available from allocationStrategyAsString().
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 allocationStrategyAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
allocationStrategy will return FleetOnDemandAllocationStrategy.UNKNOWN_TO_SDK_VERSION. The raw
value returned by the service is available from allocationStrategyAsString().
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 CapacityReservationOptions capacityReservationOptions()
The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets
of type instant.
instant.public 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.
instant.public Boolean singleAvailabilityZone()
Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for
fleets of type instant.
instant.public 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.
public String maxTotalPrice()
The maximum amount per hour for On-Demand Instances that you're willing to pay.
public OnDemandOptions.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<OnDemandOptions.Builder,OnDemandOptions>public static OnDemandOptions.Builder builder()
public static Class<? extends OnDemandOptions.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2019. All rights reserved.