Interface UserBuilder
-
- All Superinterfaces:
Buildable.Builder<UserBuilder,User>
- All Known Implementing Classes:
KeystoneUser.UserConcreteBuilder
public interface UserBuilder extends Buildable.Builder<UserBuilder,User>
A Builder which creates an Identity User- Author:
- Jeremy Unruh
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UserBuilderemail(String email)UserBuilderenabled(boolean enabled)UserBuilderid(String id)ID should only ever be set if the user already exists and this is used for update based actionsUserBuildername(String name)UserBuilderpassword(String password)Sets the initial password for the userUserBuildertenant(Tenant tenant)Accepts an existing tenant and uses the tenant's idUserBuildertenantId(String tenantId)-
Methods inherited from interface org.openstack4j.common.Buildable.Builder
build, from
-
-
-
-
Method Detail
-
name
UserBuilder name(String name)
- See Also:
User.getName()
-
id
UserBuilder id(String id)
ID should only ever be set if the user already exists and this is used for update based actions- Parameters:
id- the user id- Returns:
- this for method chaining
-
password
UserBuilder password(String password)
Sets the initial password for the user- Parameters:
password- the password to set- Returns:
- this builder
-
email
UserBuilder email(String email)
- See Also:
User.getEmail()
-
enabled
UserBuilder enabled(boolean enabled)
- See Also:
User.isEnabled()
-
tenantId
UserBuilder tenantId(String tenantId)
- See Also:
User.getTenantId()
-
tenant
UserBuilder tenant(Tenant tenant)
Accepts an existing tenant and uses the tenant's id- See Also:
User.getTenantId()
-
-