org.jclouds.openstack.trove.v1.domain
Class User.Builder
java.lang.Object
org.jclouds.openstack.trove.v1.domain.User.Builder
- Enclosing class:
- User
public static class User.Builder
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected String name
password
protected String password
host
protected String host
databases
protected Set<String> databases
User.Builder
public User.Builder()
name
public User.Builder name(String name)
- Parameters:
name - The name of this user.
- Returns:
- The builder object.
- See Also:
User.getName()
password
public User.Builder password(String password)
- Parameters:
name - The password for this user.
- Returns:
- The builder object.
- See Also:
User.getPassword()
host
public User.Builder host(String host)
- Parameters:
host - Specifies the host from which a user is allowed to connect to the database.
Possible values are a string containing an IPv4 address or "%" to allow connecting from any host.
Refer to Section 3.11.1, “User Access Restriction by Host” in the Rackspace Cloud Databases Developer Guide for details.
If host is not specified, it defaults to "%".
- Returns:
- The builder object.
- See Also:
- User Access Restriction by Host,
User.getHost()
databases
public User.Builder databases(Set<String> databases)
- Parameters:
name - The databases for this user.
- Returns:
- The builder object.
- See Also:
User.getDatabases()
build
public User build()
- Returns:
- A new User object.
fromUser
public User.Builder fromUser(User in)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.