Class NodeWorkerTarget.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<NodeWorkerTarget>
co.yellowdog.platform.model.NodeWorkerTarget.Builder
- Enclosing class:
NodeWorkerTarget
A builder that can be used to build a new NodeWorkerTarget that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionBuilds the object without enforcing validation constraints.perNode
(int targetCount) perVcpu
(double targetCount) targetCount
(Double targetCount) targetType
(NodeWorkerTargetType targetType) toString()
Methods inherited from class co.yellowdog.platform.model.builders.ValidatedBuilder
build, validate
-
Method Details
-
perNode
-
perVcpu
-
targetCount
- Returns:
this
.
-
targetType
- 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<NodeWorkerTarget>
- Returns:
- the object being built
-
toString
-