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) 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) spot
(boolean spot) subnetwork
(String subnetwork) toString()
Methods inherited from class co.yellowdog.platform.model.builders.ValidatedBuilder
build, validate
-
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
.
-
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
.
-
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<GceInstanceGroupComputeSource>
- Returns:
- the object being built
-
toString
-