Class AwsFleetInstanceOverride.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<AwsFleetInstanceOverride>
co.yellowdog.platform.model.AwsFleetInstanceOverride.Builder
- Enclosing class:
AwsFleetInstanceOverride
public static class AwsFleetInstanceOverride.Builder
extends ValidatedBuilder<AwsFleetInstanceOverride>
A builder that can be used to build a new AwsFleetInstanceOverride that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone
(String availabilityZone) The AWS availability zone within the region where instances will be provisioned.Builds the object without enforcing validation constraints.instanceType
(String instanceType) The EC2 instance type for the provisioned instances.spotMaxPrice
(Double spotMaxPrice) The maximum price that will be paid for spot instances.The ID of the subnet to use for the provisioned instances.toString()
Methods inherited from class co.yellowdog.platform.model.builders.ValidatedBuilder
build, validate
-
Method Details
-
availabilityZone
The AWS availability zone within the region where instances will be provisioned.- Parameters:
availabilityZone
- the AWS availability zone where instances will be provisioned
This should not be changed once the requirement has been submitted to YellowDog Compute.- Returns:
this
.
-
instanceType
The EC2 instance type for the provisioned instances.- Parameters:
instanceType
- the EC2 instance type for the provisioned instances- Returns:
this
.
-
spotMaxPrice
The maximum price that will be paid for spot instances.- Parameters:
spotMaxPrice
- the maximum price that will be paid for spot instances- Returns:
this
.
-
subnetId
The ID of the subnet to use for the provisioned instances.- Parameters:
subnetId
- the ID of the subnet to use- 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<AwsFleetInstanceOverride>
- Returns:
- the object being built
-
toString
-