Class AwsFleetOnDemandOptions.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<AwsFleetOnDemandOptions>
co.yellowdog.platform.model.AwsFleetOnDemandOptions.Builder
- Enclosing class:
AwsFleetOnDemandOptions
public static class AwsFleetOnDemandOptions.Builder
extends ValidatedBuilder<AwsFleetOnDemandOptions>
A builder that can be used to build a new AwsFleetOnDemandOptions that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionallocationStrategy
(AwsFleetOnDemandAllocationStrategy allocationStrategy) Determines the order of the instance overrides to use in fulfilling On-Demand capacity.Builds the object without enforcing validation constraints.maxTotalPrice
(Double maxTotalPrice) The maximum amount per hour for On-Demand instances.minInstanceCount
(Integer minInstanceCount) The minimum number of On-Demand instances that must be provisioned in the fleet.singleAvailabilityZone
(Boolean singleAvailabilityZone) Indicates that AWS EC2 Fleet should provision all On-Demand instances into a single availability zone.singleInstanceType
(Boolean singleInstanceType) Indicates that AWS EC2 Fleet should use a single instance type to provision all On-Demand instances.toString()
useCapacityReservationsFirst
(Boolean useCapacityReservationsFirst) Indicates if AWS EC2 Fleet should use unused Capacity Reservations to fulfill On-Demand capacity.Methods inherited from class co.yellowdog.platform.model.builders.ValidatedBuilder
build, validate
-
Method Details
-
allocationStrategy
public AwsFleetOnDemandOptions.Builder allocationStrategy(AwsFleetOnDemandAllocationStrategy allocationStrategy) Determines the order of the instance overrides to use in fulfilling On-Demand capacity.- Returns:
this
.
-
useCapacityReservationsFirst
public AwsFleetOnDemandOptions.Builder useCapacityReservationsFirst(Boolean useCapacityReservationsFirst) Indicates if AWS EC2 Fleet should use unused Capacity Reservations to fulfill On-Demand capacity.- Returns:
this
.
-
maxTotalPrice
The maximum amount per hour for On-Demand instances.- Returns:
this
.
-
minInstanceCount
The minimum number of On-Demand instances that must be provisioned in the fleet.- Returns:
this
.
-
singleAvailabilityZone
Indicates that AWS EC2 Fleet should provision all On-Demand instances into a single availability zone.- Returns:
this
.
-
singleInstanceType
Indicates that AWS EC2 Fleet should use a single instance type to provision all On-Demand instances.- Returns:
this
.
-
buildUnchecked
Description copied from class:ValidatedBuilder
Builds the object without enforcing validation constraints. This should only be used for testing purposes- Overrides:
buildUnchecked
in classValidatedBuilder<AwsFleetOnDemandOptions>
- Returns:
- the object being built
-
toString
-