Class GceInstancesComputeSource.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<GceInstancesComputeSource>
co.yellowdog.platform.model.GceInstancesComputeSource.Builder
- Enclosing class:
GceInstancesComputeSource
public static class GceInstancesComputeSource.Builder
extends ValidatedBuilder<GceInstancesComputeSource>
A builder that can be used to build a new GceInstancesComputeSource 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) 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) toString()Methods inherited from class ValidatedBuilder
build, validateModifier and TypeMethodDescriptionbuild()Builds and validates the object.Set<jakarta.validation.ConstraintViolation<GceInstancesComputeSource>> 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 GceInstancesComputeSource.Builder instanceTag(String instanceTagKey, String instanceTagValue) -
instanceTags
public GceInstancesComputeSource.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.
-
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<GceInstancesComputeSource>- Returns:
- the object being built
-
toString
-