public static class KeystoneUser.UserConcreteBuilder extends Object implements UserBuilder
Modifier and Type | Method and Description |
---|---|
User |
build()
Creates and return the Model Entity M
|
UserBuilder |
email(String email) |
UserBuilder |
enabled(boolean enabled) |
UserBuilder |
from(User in)
Creates a Builder using the param M as the default values
|
UserBuilder |
id(String id)
ID should only ever be set if the user already exists and this is used for update based actions
|
UserBuilder |
name(String name) |
UserBuilder |
password(String password)
Sets the initial password for the user
|
UserBuilder |
tenant(Tenant tenant)
Accepts an existing tenant and uses the tenant's id
|
UserBuilder |
tenantId(String tenantId) |
public UserBuilder name(String name)
name
in interface UserBuilder
User.getName()
public UserBuilder id(String id)
id
in interface UserBuilder
id
- the user idpublic UserBuilder password(String password)
UserBuilder
password
in interface UserBuilder
password
- the password to setpublic UserBuilder email(String email)
email
in interface UserBuilder
User.getEmail()
public UserBuilder enabled(boolean enabled)
enabled
in interface UserBuilder
User.isEnabled()
public UserBuilder tenantId(String tenantId)
tenantId
in interface UserBuilder
User.getTenantId()
public UserBuilder tenant(Tenant tenant)
UserBuilder
tenant
in interface UserBuilder
User.getTenantId()
public User build()
Buildable.Builder
build
in interface Buildable.Builder<UserBuilder,User>
public UserBuilder from(User in)
Buildable.Builder
from
in interface Buildable.Builder<UserBuilder,User>
Copyright © 2017. All rights reserved.