Class AwsFleetOnDemandOptions

java.lang.Object
co.yellowdog.platform.model.AwsFleetOnDemandOptions
All Implemented Interfaces:
Serializable

@JsonClassDescription("Options related to provisioning On-Demand instances using an AWS EC2 Fleet request") public class AwsFleetOnDemandOptions extends Object implements Serializable
See Also:
  • Method Details

    • builder

      public static AwsFleetOnDemandOptions.Builder builder()
    • toBuilder

      public AwsFleetOnDemandOptions.Builder toBuilder()
    • getAllocationStrategy

      public AwsFleetOnDemandAllocationStrategy getAllocationStrategy()
      Determines the order of the instance overrides to use in fulfilling On-Demand capacity.
    • getUseCapacityReservationsFirst

      public Boolean getUseCapacityReservationsFirst()
      Indicates if AWS EC2 Fleet should use unused Capacity Reservations to fulfill On-Demand capacity.
    • getMaxTotalPrice

      public Double getMaxTotalPrice()
      The maximum amount per hour for On-Demand instances.
    • getMinInstanceCount

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

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

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

      public void setAllocationStrategy(AwsFleetOnDemandAllocationStrategy allocationStrategy)
      Determines the order of the instance overrides to use in fulfilling On-Demand capacity.
    • setUseCapacityReservationsFirst

      public void setUseCapacityReservationsFirst(Boolean useCapacityReservationsFirst)
      Indicates if AWS EC2 Fleet should use unused Capacity Reservations to fulfill On-Demand capacity.
    • setMaxTotalPrice

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

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

      public void setSingleAvailabilityZone(Boolean singleAvailabilityZone)
      Indicates that AWS EC2 Fleet should provision all On-Demand 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 On-Demand 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