Modifier and Type | Field and Description |
---|---|
protected Set<String> |
databases |
protected String |
host |
protected String |
name |
protected String |
password |
Constructor and Description |
---|
User.Builder() |
Modifier and Type | Method and Description |
---|---|
User |
build() |
User.Builder |
databases(Set<String> databases) |
User.Builder |
fromUser(User in) |
User.Builder |
host(String host) |
User.Builder |
name(String name) |
User.Builder |
password(String password) |
protected String name
protected String password
protected String host
public User.Builder name(String name)
name
- The name of this user.User.getName()
public User.Builder password(String password)
name
- The password for this user.User.getPassword()
public User.Builder host(String host)
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 "%".User.getHost()
public User.Builder databases(Set<String> databases)
name
- The databases for this user.User.getDatabases()
public User build()
public User.Builder fromUser(User in)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.