Class User.Builder

java.lang.Object
org.jclouds.openstack.trove.v1.domain.User.Builder
Enclosing class:
User

public static class User.Builder extends Object
  • Field Details

    • name

      protected String name
    • password

      protected String password
    • host

      protected String host
    • databases

      protected Set<String> databases
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • name

      public User.Builder name(String name)
      Parameters:
      name - The name of this user.
      Returns:
      The builder object.
      See Also:
    • password

      public User.Builder password(String password)
      Parameters:
      name - The password for this user.
      Returns:
      The builder object.
      See Also:
    • 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:
    • databases

      public User.Builder databases(Set<String> databases)
      Parameters:
      name - The databases for this user.
      Returns:
      The builder object.
      See Also:
    • build

      public User build()
      Returns:
      A new User object.
    • fromUser

      public User.Builder fromUser(User in)