Class Account.Builder

  • Enclosing class:
    Account

    public static final class Account.Builder
    extends Object
    Builder creates instances of Account from values set by the builder's methods.
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • userId

        public Account.Builder userId​(String id)
        Parameters:
        id - A unique user ID associated with the end-user in your system. If your system allows the login name for the account to be changed, this should not be the login name for the account, but rather should be an internal ID that does not change. This is not your MaxMind user ID.
        Returns:
        The builder object.
      • username

        public Account.Builder username​(String username)
        Parameters:
        username - The username associated with the account. This is not the MD5 of username. This method automatically runs DigestUtils.md5Hex on the string passed to it.
        Returns:
        The builder object.
      • build

        public Account build()
        Returns:
        An instance of Account created from the fields set on this builder.