Class TaskGroup.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<TaskGroup>
co.yellowdog.platform.model.TaskGroup.Builder
- Enclosing class:
TaskGroup
A builder that can be used to build a new TaskGroup that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionBuilds the object without enforcing validation constraints.completedTaskTtl
(Duration completedTaskTtl) dependentOn
(String dependentOn) finishIfAllTasksFinished
(Boolean finishIfAllTasksFinished) finishIfAnyTaskFailed
(Boolean finishIfAnyTaskFailed) runSpecification
(RunSpecification runSpecification) toString()
Methods inherited from class co.yellowdog.platform.model.builders.ValidatedBuilder
build, validate
-
Method Details
-
name
- Parameters:
name
- the task group name- Returns:
this
.
-
tag
- Parameters:
tag
- the task group tag- Returns:
this
.
-
runSpecification
- Parameters:
runSpecification
- the task group run specification- Returns:
this
.
-
priority
- Parameters:
priority
- the task group priority- Returns:
this
.
-
dependentOn
- Parameters:
dependentOn
- the name of the task group that this task group is dependent on- Returns:
this
.
-
finishIfAllTasksFinished
- Parameters:
finishIfAllTasksFinished
- if the task group should finish if all contained tasks are finished- Returns:
this
.
-
finishIfAnyTaskFailed
- Parameters:
finishIfAnyTaskFailed
- if the task group should finish if any contained task fails- Returns:
this
.
-
completedTaskTtl
- Parameters:
completedTaskTtl
- the completed task TTL- 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<TaskGroup>
- Returns:
- the object being built
-
toString
-