public interface UserBuilder
User
instances.Modifier and Type | Method and Description |
---|---|
User |
build()
Creates
User instance |
UserBuilder |
set(User user)
Sets user's fields from existing
User instance |
UserBuilder |
setActive(Boolean active)
Sets the user's active status.
|
UserBuilder |
setEmail(String email)
Sets the user's email.
|
UserBuilder |
setFirstName(String firstName)
Sets the user's time first name.
|
UserBuilder |
setLastName(String lastName)
Sets the user's time last name.
|
UserBuilder |
setLocale(String locale)
Sets the user's locale.
|
UserBuilder |
setTimeZone(String timeZone)
Sets the user's time zone.
|
UserBuilder |
setUsername(String username)
Sets the user's username.
|
UserBuilder set(User user)
User
instanceuser
- existing User
UserBuilder
instanceUserBuilder setUsername(String username)
username
- the user's usernameUserBuilder
instanceUserBuilder setEmail(String email)
email
- the user's email@return Current UserBuilder
instanceUserBuilder
instanceUserBuilder setFirstName(String firstName)
firstName
- the user's first nameUserBuilder
instanceUserBuilder setLastName(String lastName)
lastName
- the user's last nameUserBuilder
instanceUserBuilder setTimeZone(String timeZone)
timeZone
- the user's time zoneUserBuilder
instanceUserBuilder setLocale(String locale)
locale
- the user's localeUserBuilder
instanceUserBuilder setActive(Boolean active)
active
- true
if user is active, false
otherwiseUserBuilder
instanceCopyright © 2021 BellaDati Inc.. All rights reserved.