Package com.maxmind.minfraud.request
Class Account.Builder
- java.lang.Object
-
- com.maxmind.minfraud.request.Account.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Account
build()
Account.Builder
userId(String id)
Account.Builder
username(String username)
-
-
-
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 runsDigestUtils.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.
-
-