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:
  • Method Details

    • builder

      public static AwsFleetSpotOptions.Builder builder()
    • toBuilder

      public AwsFleetSpotOptions.Builder toBuilder()
    • getAllocationStrategy

      public AwsFleetSpotAllocationStrategy getAllocationStrategy()
      Determines the order of the instance overrides to use in fulfilling Spot capacity.
    • getInstancePoolsToUseCount

      public Integer getInstancePoolsToUseCount()
      The number of Spot pools across which AWS EC2 Fleet should allocate Spot capacity when using LOWEST_PRICE Spot allocation strategy.
    • getLaunchReplacementInstanceOnRebalance

      public Boolean getLaunchReplacementInstanceOnRebalance()
      Allow AWS EC2 Fleet to launch a replacement Spot instance when an instance rebalance notification is emitted for an existing Spot instance.
    • getMaxTotalPrice

      public Double getMaxTotalPrice()
      The maximum amount per hour for Spot instances.
    • getMinInstanceCount

      public Integer getMinInstanceCount()
      The minimum number of Spot instances that must be provisioned in the fleet.
    • getSingleAvailabilityZone

      public Boolean getSingleAvailabilityZone()
      Indicates that AWS EC2 Fleet should provision all Spot instances into a single availability zone.
    • getSingleInstanceType

      public Boolean getSingleInstanceType()
      Indicates that AWS EC2 Fleet should use a single instance type to provision all Spot instances.
    • setAllocationStrategy

      public void setAllocationStrategy(AwsFleetSpotAllocationStrategy allocationStrategy)
      Determines the order of the instance overrides to use in fulfilling Spot capacity.
    • setInstancePoolsToUseCount

      public 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.
    • setLaunchReplacementInstanceOnRebalance

      public 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.
    • setMaxTotalPrice

      public void setMaxTotalPrice(Double maxTotalPrice)
      The maximum amount per hour for Spot instances.
    • setMinInstanceCount

      public void setMinInstanceCount(Integer minInstanceCount)
      The minimum number of Spot instances that must be provisioned in the fleet.
    • setSingleAvailabilityZone

      public void setSingleAvailabilityZone(Boolean singleAvailabilityZone)
      Indicates that AWS EC2 Fleet should provision all Spot instances into a single availability zone.
    • setSingleInstanceType

      public void setSingleInstanceType(Boolean singleInstanceType)
      Indicates that AWS EC2 Fleet should use a single instance type to provision all Spot instances.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object