Class User
- java.lang.Object
-
- org.jclouds.openstack.trove.v1.domain.User
-
- All Implemented Interfaces:
Comparable<User>
public class User extends Object implements Comparable<User>
An Openstack Trove Database User.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
User.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static User.Builder
builder()
int
compareTo(User that)
boolean
equals(Object obj)
List<String>
getDatabases()
String
getHost()
String
getIdentifier()
String
getName()
String
getPassword()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
User.Builder
toBuilder()
String
toString()
-
-
-
Method Detail
-
getName
public String getName()
- Returns:
- the name of this user. The name is not a unique or even sufficient identifier in some cases.
- See Also:
getIdentifier()
,User.Builder.name(String)
-
getPassword
public String getPassword()
- Returns:
- the password for this user.
- See Also:
User.Builder.password(String)
-
getHost
public String getHost()
- Returns:
- the host for this user.
- See Also:
User.Builder.host(String)
-
getIdentifier
public String getIdentifier()
- Returns:
- a unique identifier for this user. In most cases, this is just the name. If the user is restricted to connections from a specific host, the hostname must be appended to the user name with a "@".
-
getDatabases
public List<String> getDatabases()
- Returns:
- the databases for this user.
- See Also:
User.Builder#databases(String)
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
builder
public static User.Builder builder()
-
toBuilder
public User.Builder toBuilder()
-
compareTo
public int compareTo(User that)
- Specified by:
compareTo
in interfaceComparable<User>
-
-