Class WorkRequirement.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<WorkRequirement>
co.yellowdog.platform.model.WorkRequirement.Builder
- Enclosing class:
WorkRequirement
A builder that can be used to build a new WorkRequirement that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionBuilds the object without enforcing validation constraints.taskGroups
(Collection<? extends TaskGroup> taskGroups) toString()
Methods inherited from class co.yellowdog.platform.model.builders.ValidatedBuilder
build, validate
-
Method Details
-
namespace
- Parameters:
namespace
- the work requirement namespace- Returns:
this
.
-
name
- Parameters:
name
- the work requirement name- Returns:
this
.
-
tag
- Parameters:
tag
- the work requirement tag- Returns:
this
.
-
taskGroup
-
taskGroups
-
clearTaskGroups
-
priority
- Parameters:
priority
- the work requirement priority- 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<WorkRequirement>
- Returns:
- the object being built
-
toString
-