@Generated(value="software.amazon.awssdk:codegen") public final class OnDemandOptionsRequest extends Object implements SdkPojo, Serializable, ToCopyableBuilder<OnDemandOptionsRequest.Builder,OnDemandOptionsRequest>
The allocation strategy of On-Demand Instances in an EC2 Fleet.
| Modifier and Type | Class and Description |
|---|---|
static interface |
OnDemandOptionsRequest.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 OnDemandOptionsRequest.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
minTargetCapacity()
The minimum target capacity for On-Demand Instances in the fleet.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends OnDemandOptionsRequest.Builder> |
serializableBuilderClass() |
Boolean |
singleInstanceType()
Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet.
|
OnDemandOptionsRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copypublic 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 Boolean singleInstanceType()
Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet.
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 OnDemandOptionsRequest.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<OnDemandOptionsRequest.Builder,OnDemandOptionsRequest>public static OnDemandOptionsRequest.Builder builder()
public static Class<? extends OnDemandOptionsRequest.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.