Builder

public class Builder

Assembles a Config a piece at a time. This is the standard way to construct one, obtained from builder; the setters return the builder itself so calls can be chained.

Only the api key is normally worth setting — leave the http client unset and the built config uses a default one.

Author

Sylvester Sefa-Yeboah

Since

1.0.0

Constructors

Link copied to clipboard
public void Config.Builder()

Functions

Link copied to clipboard
public Config build()
Builds a config from the values set on this builder.
Link copied to clipboard
public Config.Builder httpClient(OkHttpClient httpClient)
Sets the http client used to make requests, replacing the default one.
Link copied to clipboard
public Config.Builder key(String key)
Sets the api key requests are signed with.
Link copied to clipboard
public Config.Builder timeOut(int timeOut)
Sets the connect timeout, in seconds, for the default http client.