Class Group.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<Group>
co.yellowdog.platform.model.Group.Builder
- Enclosing class:
Group
A builder that can be used to build a new Group that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionadminGroup
(boolean adminGroup) Builds the object without enforcing validation constraints.description
(String description) roles
(Collection<? extends @NotNull @Valid GroupRole> roles) toString()
Methods inherited from class co.yellowdog.platform.model.builders.ValidatedBuilder
build, validate
-
Method Details
-
id
- Returns:
this
.
-
name
- Returns:
this
.
-
description
- Returns:
this
.
-
role
-
roles
-
clearRoles
-
adminGroup
- 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<Group>
- Returns:
- the object being built
-
toString
-