public static class CustomInputs.Builder extends Object
Builder creates instances of CustomInputs
from values set by the builder's methods.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CustomInputs |
build() |
CustomInputs.Builder |
put(String key,
boolean value)
Add a boolean custom input.
|
CustomInputs.Builder |
put(String key,
Number value)
Add a numeric custom input.
|
CustomInputs.Builder |
put(String key,
String value)
Add a string custom input.
|
public CustomInputs.Builder put(String key, String value)
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.IllegalArgumentException - when the key or value are invalid.public CustomInputs.Builder put(String key, Number value)
key - The key for the custom input as defined on your account
portal.value - The custom input value. Must be between -2^53 and 2^53,
exclusive.IllegalArgumentException - when the key or value are invalid.public CustomInputs.Builder put(String key, boolean value)
key - The key for the custom input as defined on your account
portal.value - The custom input value.IllegalArgumentException - when the key or value are invalid.public CustomInputs build()
CustomInputs created from the
fields set on this builder.Copyright © 2017 MaxMind, Inc.. All rights reserved.