Class AwsFleetSpotOptions
java.lang.Object
co.yellowdog.platform.model.AwsFleetSpotOptions
- All Implemented Interfaces:
Serializable
@JsonClassDescription("Options related to provisioning Spot instances using an AWS EC2 Fleet request")
public class AwsFleetSpotOptions
extends Object
implements Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A builder that can be used to build a new AwsFleetSpotOptions that is automatically validated on build. -
Method Summary
Modifier and TypeMethodDescriptionstatic AwsFleetSpotOptions.Builder
builder()
protected boolean
boolean
Determines the order of the instance overrides to use in fulfilling Spot capacity.The number of Spot pools across which AWS EC2 Fleet should allocate Spot capacity when using LOWEST_PRICE Spot allocation strategy.Allow AWS EC2 Fleet to launch a replacement Spot instance when an instance rebalance notification is emitted for an existing Spot instance.The maximum amount per hour for Spot instances.The minimum number of Spot instances that must be provisioned in the fleet.Indicates that AWS EC2 Fleet should provision all Spot instances into a single availability zone.Indicates that AWS EC2 Fleet should use a single instance type to provision all Spot instances.int
hashCode()
void
setAllocationStrategy
(AwsFleetSpotAllocationStrategy allocationStrategy) Determines the order of the instance overrides to use in fulfilling Spot capacity.void
setInstancePoolsToUseCount
(Integer instancePoolsToUseCount) The number of Spot pools across which AWS EC2 Fleet should allocate Spot capacity when using LOWEST_PRICE Spot allocation strategy.void
setLaunchReplacementInstanceOnRebalance
(Boolean launchReplacementInstanceOnRebalance) Allow AWS EC2 Fleet to launch a replacement Spot instance when an instance rebalance notification is emitted for an existing Spot instance.void
setMaxTotalPrice
(Double maxTotalPrice) The maximum amount per hour for Spot instances.void
setMinInstanceCount
(Integer minInstanceCount) The minimum number of Spot instances that must be provisioned in the fleet.void
setSingleAvailabilityZone
(Boolean singleAvailabilityZone) Indicates that AWS EC2 Fleet should provision all Spot instances into a single availability zone.void
setSingleInstanceType
(Boolean singleInstanceType) Indicates that AWS EC2 Fleet should use a single instance type to provision all Spot instances.toString()
-
Method Details
-
builder
-
toBuilder
-
getAllocationStrategy
Determines the order of the instance overrides to use in fulfilling Spot capacity. -
getInstancePoolsToUseCount
The number of Spot pools across which AWS EC2 Fleet should allocate Spot capacity when using LOWEST_PRICE Spot allocation strategy. -
getLaunchReplacementInstanceOnRebalance
Allow AWS EC2 Fleet to launch a replacement Spot instance when an instance rebalance notification is emitted for an existing Spot instance. -
getMaxTotalPrice
The maximum amount per hour for Spot instances. -
getMinInstanceCount
The minimum number of Spot instances that must be provisioned in the fleet. -
getSingleAvailabilityZone
Indicates that AWS EC2 Fleet should provision all Spot instances into a single availability zone. -
getSingleInstanceType
Indicates that AWS EC2 Fleet should use a single instance type to provision all Spot instances. -
setAllocationStrategy
Determines the order of the instance overrides to use in fulfilling Spot capacity. -
setInstancePoolsToUseCount
The number of Spot pools across which AWS EC2 Fleet should allocate Spot capacity when using LOWEST_PRICE Spot allocation strategy. -
setLaunchReplacementInstanceOnRebalance
Allow AWS EC2 Fleet to launch a replacement Spot instance when an instance rebalance notification is emitted for an existing Spot instance. -
setMaxTotalPrice
The maximum amount per hour for Spot instances. -
setMinInstanceCount
The minimum number of Spot instances that must be provisioned in the fleet. -
setSingleAvailabilityZone
Indicates that AWS EC2 Fleet should provision all Spot instances into a single availability zone. -
setSingleInstanceType
Indicates that AWS EC2 Fleet should use a single instance type to provision all Spot instances. -
equals
-
canEqual
-
hashCode
-
toString
-