Class ConfiguredWorkerPoolProperties.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<ConfiguredWorkerPoolProperties>
co.yellowdog.platform.model.ConfiguredWorkerPoolProperties.Builder
- Enclosing class:
ConfiguredWorkerPoolProperties
public static class ConfiguredWorkerPoolProperties.Builder
extends ValidatedBuilder<ConfiguredWorkerPoolProperties>
A builder that can be used to build a new ConfiguredWorkerPoolProperties that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionBuilds the object without enforcing validation constraints.metricsEnabled
(Boolean metricsEnabled) nodeConfiguration
(WorkerPoolNodeConfiguration nodeConfiguration) targetNodeCount
(Integer targetNodeCount) The number of nodes that will be configured to register with this worker pool.toString()
Methods inherited from class co.yellowdog.platform.model.builders.ValidatedBuilder
build, validate
-
Method Details
-
nodeConfiguration
public ConfiguredWorkerPoolProperties.Builder nodeConfiguration(WorkerPoolNodeConfiguration nodeConfiguration) - Returns:
this
.
-
targetNodeCount
The number of nodes that will be configured to register with this worker pool.- Returns:
this
.
-
workerTag
- Returns:
this
.
-
metricsEnabled
- 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<ConfiguredWorkerPoolProperties>
- Returns:
- the object being built
-
toString
-