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 ValidatedBuilder
build, validateModifier and TypeMethodDescriptionbuild()Builds and validates the object.Set<jakarta.validation.ConstraintViolation<WorkRequirement>> validate()Performs validation based on the current builder properties and returns the ConstraintViolations without throwing.
-
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: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.- Overrides:
buildUncheckedin classValidatedBuilder<WorkRequirement>- Returns:
- the object being built
-
toString
-