Package org.openwms.core.uaa.impl
Class Role.Builder
java.lang.Object
org.openwms.core.uaa.impl.Role.Builder
- Enclosing class:
Role
A builder class to construct Role instances.
- Author:
- Heiko Scherrer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet the Role to be immutable.build()
Finally build and return the Role instance.withDescription
(String description) Add a description text to the Role.
-
Field Details
-
Constructor Details
-
Builder
Create a new Builder.- Parameters:
name
- The name of the Role- Throws:
IllegalArgumentException
- when name is null or empty
-
-
Method Details