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 Details

    • availabilityZone

      public AwsFleetInstanceOverride.Builder availabilityZone(String 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

      public AwsFleetInstanceOverride.Builder instanceType(String instanceType)
      The EC2 instance type for the provisioned instances.
      Parameters:
      instanceType - the EC2 instance type for the provisioned instances
      Returns:
      this.
    • spotMaxPrice

      public AwsFleetInstanceOverride.Builder spotMaxPrice(Double 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

      public AwsFleetInstanceOverride.Builder subnetId(String subnetId)
      The ID of the subnet to use for the provisioned instances.
      Parameters:
      subnetId - the ID of the subnet to use
      Returns:
      this.
    • buildUnchecked

      public AwsFleetInstanceOverride buildUnchecked()
      Description copied from class: ValidatedBuilder
      Builds the object without enforcing validation constraints. This should only be used for testing purposes
      Overrides:
      buildUnchecked in class ValidatedBuilder<AwsFleetInstanceOverride>
      Returns:
      the object being built
    • toString

      public String toString()
      Overrides:
      toString in class Object