org.jclouds.openstack.keystone.v2_0.domain
Class User.Builder<T extends User.Builder<T>>

java.lang.Object
  extended by org.jclouds.openstack.keystone.v2_0.domain.User.Builder<T>
Enclosing class:
User

public abstract static class User.Builder<T extends User.Builder<T>>
extends Object


Field Summary
protected  String email
           
protected  Boolean enabled
           
protected  String id
           
protected  String name
           
protected  com.google.common.collect.ImmutableSet.Builder<Role> roles
           
protected  String tenantId
           
 
Constructor Summary
User.Builder()
           
 
Method Summary
 User build()
           
 T email(String email)
           
 T enabled(Boolean enabled)
           
 T fromUser(User in)
           
 T id(String id)
           
 T name(String name)
           
 T role(Role role)
           
 T roles(Iterable<Role> roles)
           
protected abstract  T self()
           
 T tenantId(String tenantId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected String id

name

protected String name

email

protected String email

enabled

protected Boolean enabled

tenantId

protected String tenantId

roles

protected com.google.common.collect.ImmutableSet.Builder<Role> roles
Constructor Detail

User.Builder

public User.Builder()
Method Detail

self

protected abstract T self()

id

public T id(String id)
See Also:
User.getId()

name

public T name(String name)
See Also:
User.getName()

email

public T email(String email)
See Also:
User.getEmail()

enabled

public T enabled(Boolean enabled)
See Also:
User.isEnabled()

tenantId

public T tenantId(String tenantId)
See Also:
User.getTenantId()

role

public T role(Role role)
See Also:
User.delegate()

roles

public T roles(Iterable<Role> roles)
See Also:
User.delegate()

build

public User build()

fromUser

public T fromUser(User in)


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.