Class NodeCreateWorkersAction.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<NodeCreateWorkersAction>
co.yellowdog.platform.model.NodeCreateWorkersAction.Builder
- All Implemented Interfaces:
NodeAction.Builder<NodeCreateWorkersAction>
- Enclosing class:
NodeCreateWorkersAction
public static class NodeCreateWorkersAction.Builder
extends ValidatedBuilder<NodeCreateWorkersAction>
implements NodeAction.Builder<NodeCreateWorkersAction>
A builder that can be used to build a new NodeCreateWorkersAction that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionBuilds the object without enforcing validation constraints.nodeIdFilter(NodeIdFilter nodeIdFilter) nodeTypes(Collection<? extends @NotBlank String> nodeTypes) nodeWorkers(NodeWorkerTarget nodeWorkers) toString()totalWorkers(Integer totalWorkers) workersPerNode(int targetCount) workersPerVcpu(double targetCount) Methods inherited from class ValidatedBuilder
build, validateModifier and TypeMethodDescriptionbuild()Builds and validates the object.Set<jakarta.validation.ConstraintViolation<NodeCreateWorkersAction>> validate()Performs validation based on the current builder properties and returns the ConstraintViolations without throwing.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface NodeAction.Builder
build
-
Method Details
-
workersPerNode
-
workersPerVcpu
-
nodeWorkers
- Returns:
this.
-
totalWorkers
- Returns:
this.
-
nodeIdFilter
- Specified by:
nodeIdFilterin interfaceNodeAction.Builder<NodeCreateWorkersAction>- Returns:
this.
-
nodeType
- Specified by:
nodeTypein interfaceNodeAction.Builder<NodeCreateWorkersAction>
-
nodeTypes
- Specified by:
nodeTypesin interfaceNodeAction.Builder<NodeCreateWorkersAction>
-
clearNodeTypes
- Specified by:
clearNodeTypesin interfaceNodeAction.Builder<NodeCreateWorkersAction>
-
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.- Specified by:
buildUncheckedin interfaceNodeAction.Builder<NodeCreateWorkersAction>- Overrides:
buildUncheckedin classValidatedBuilder<NodeCreateWorkersAction>- Returns:
- the object being built
-
toString
-