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 ValidatedBuilder
build, validateModifier and TypeMethodDescriptionbuild()Builds and validates the object.Set<jakarta.validation.ConstraintViolation<AwsFleetOnDemandOptions>> validate()Performs validation based on the current builder properties and returns the ConstraintViolations without throwing.
-
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:ValidatedBuilderBuilds the object without enforcing validation constraints. Use this when the object is validated later, for example as part of an enclosing object built withValidatedBuilder.build(), or when it does not need to be valid on its own.- Overrides:
buildUncheckedin classValidatedBuilder<AwsFleetOnDemandOptions>- Returns:
- the object being built
-
toString
-