@Generated(value="software.amazon.awssdk:codegen") public final class OnDemandOptionsRequest extends Object implements SdkPojo, Serializable, ToCopyableBuilder<OnDemandOptionsRequest.Builder,OnDemandOptionsRequest>
Describes the configuration 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() |
CapacityReservationOptionsRequest |
capacityReservationOptions()
The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<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 OnDemandOptionsRequest.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.
|
OnDemandOptionsRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final 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
.FleetOnDemandAllocationStrategy
public final 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
.FleetOnDemandAllocationStrategy
public final CapacityReservationOptionsRequest capacityReservationOptions()
The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets
of type instant
.
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
.
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
.
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.
public final String maxTotalPrice()
The maximum amount per hour for On-Demand Instances that you're willing to pay.
public OnDemandOptionsRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<OnDemandOptionsRequest.Builder,OnDemandOptionsRequest>
public static OnDemandOptionsRequest.Builder builder()
public static Class<? extends OnDemandOptionsRequest.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.