Package com.maxmind.minfraud.request
Class CustomInputs.Builder
java.lang.Object
com.maxmind.minfraud.request.CustomInputs.Builder
- Enclosing class:
- CustomInputs
Builder creates instances of CustomInputs
from values set by the builder's methods.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Add a boolean custom input.Add a numeric custom input.Add a string custom input.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
put
Add a string custom input.- Parameters:
key- The key for the custom input as defined on your account portal.value- The custom input value. Must be less than 256 characters and must not contain new lines.- Returns:
- The builder object.
- Throws:
IllegalArgumentException- when the key or value are invalid.
-
put
Add a numeric custom input.- Parameters:
key- The key for the custom input as defined on your account portal.value- The custom input value. Must be between -10^13 and 10^13 exclusive.- Returns:
- The builder object.
- Throws:
IllegalArgumentException- when the key or value are invalid.
-
put
Add a boolean custom input.- Parameters:
key- The key for the custom input as defined on your account portal.value- The custom input value.- Returns:
- The builder object.
- Throws:
IllegalArgumentException- when the key or value are invalid.
-
build
- Returns:
- An instance of
CustomInputscreated from the fields set on this builder.
-