Class GceInstanceGroupComputeSource.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<GceInstanceGroupComputeSource>
co.yellowdog.platform.model.GceInstanceGroupComputeSource.Builder
- Enclosing class:
GceInstanceGroupComputeSource
public static class GceInstanceGroupComputeSource.Builder
extends ValidatedBuilder<GceInstanceGroupComputeSource>
A builder that can be used to build a new GceInstanceGroupComputeSource that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionacceleratorCount(int acceleratorCount) acceleratorType(String acceleratorType) assignPublicIp(Boolean assignPublicIp) bootVolumeSizeGb(Integer bootVolumeSizeGb) Builds the object without enforcing validation constraints.confidential(boolean confidential) credential(String credential) hostMaintenanceBehaviour(GceHostMaintenanceBehaviour hostMaintenanceBehaviour) instanceTag(String instanceTagKey, String instanceTagValue) instanceTags(Map<? extends String, ? extends String> instanceTags) limit(int limit) machineType(String machineType) preemptible(boolean preemptible) reservation(String reservation) reservationBound(boolean reservationBound) serviceAccountEmail(String serviceAccountEmail) spot(boolean spot) subnetwork(String subnetwork) targetDistributionShape(GceTargetDistributionShape targetDistributionShape) toString()Methods inherited from class ValidatedBuilder
build, validateModifier and TypeMethodDescriptionbuild()Builds and validates the object.Set<jakarta.validation.ConstraintViolation<GceInstanceGroupComputeSource>> validate()Performs validation based on the current builder properties and returns the ConstraintViolations without throwing.
-
Method Details
-
name
- Returns:
this.
-
credential
- Returns:
this.
-
limit
- Returns:
this.
-
assignPublicIp
- Returns:
this.
-
userData
- Returns:
this.
-
instanceTag
public GceInstanceGroupComputeSource.Builder instanceTag(String instanceTagKey, String instanceTagValue) -
instanceTags
public GceInstanceGroupComputeSource.Builder instanceTags(Map<? extends String, ? extends String> instanceTags) -
clearInstanceTags
-
sshKeys
- Returns:
this.
-
serviceAccountEmail
- Returns:
this.
-
reservation
- Returns:
this.
-
reservationBound
- Returns:
this.
-
project
- Returns:
this.
-
region
- Returns:
this.
-
zone
- Returns:
this.
-
machineType
- Returns:
this.
-
image
- Returns:
this.
-
network
- Returns:
this.
-
subnetwork
- Returns:
this.
-
preemptible
- Returns:
this.
-
spot
- Returns:
this.
-
confidential
- Returns:
this.
-
acceleratorType
- Returns:
this.
-
acceleratorCount
- Returns:
this.
-
hostMaintenanceBehaviour
public GceInstanceGroupComputeSource.Builder hostMaintenanceBehaviour(GceHostMaintenanceBehaviour hostMaintenanceBehaviour) - Returns:
this.
-
targetDistributionShape
public GceInstanceGroupComputeSource.Builder targetDistributionShape(GceTargetDistributionShape targetDistributionShape) - Returns:
this.
-
bootVolumeSizeGb
- 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<GceInstanceGroupComputeSource>- Returns:
- the object being built
-
toString
-