@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 strategy that determines the order of the launch template overrides to use in fulfilling On-Demand capacity.
|
String |
allocationStrategyAsString()
The strategy that determines 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 final 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
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.
prioritized - EC2 Fleet uses the priority that you assigned to each launch template
override, launching the highest priority first.
Default: lowest-price
FleetOnDemandAllocationStrategypublic final String allocationStrategyAsString()
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
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.
prioritized - EC2 Fleet uses the priority that you assigned to each launch template
override, launching the highest priority first.
Default: lowest-price
FleetOnDemandAllocationStrategypublic final CapacityReservationOptions capacityReservationOptions()
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 final 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.
Supported only for fleets of type instant.
public final Boolean singleAvailabilityZone()
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 final 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
Supported only for fleets of type instant.
At least one of the following must be specified: SingleAvailabilityZone |
SingleInstanceType
public final 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 final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.