Package hirez.api
Class ConfigurationBuilder
- java.lang.Object
-
- hirez.api.ConfigurationBuilder
-
public class ConfigurationBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ConfigurationBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationBuilder
applyFrom(java.util.function.Consumer<ConfigurationBuilder> configuration)
Configuration
build()
java.lang.String
getAuthKey()
BaseEndpoint
getBaseEndpoint()
java.lang.String
getDevId()
java.util.function.Consumer<okhttp3.OkHttpClient.Builder>
getHttpClient()
Language
getLanguage()
java.util.function.Consumer<com.fasterxml.jackson.databind.ObjectMapper>
getMapper()
SessionStorage
getSessionStorage()
java.lang.String
getUserAgent()
ConfigurationBuilder
httpClient(java.util.function.Consumer<okhttp3.OkHttpClient.Builder> httpClient)
ConfigurationBuilder
mapper(java.util.function.Consumer<com.fasterxml.jackson.databind.ObjectMapper> mapper)
ConfigurationBuilder
setAuthKey(java.lang.String authKey)
ConfigurationBuilder
setBaseEndpoint(BaseEndpoint baseEndpoint)
ConfigurationBuilder
setDevId(java.lang.String devId)
ConfigurationBuilder
setLanguage(Language language)
ConfigurationBuilder
setSessionStorage(SessionStorage sessionStorage)
ConfigurationBuilder
setUserAgent(java.lang.String userAgent)
-
-
-
Method Detail
-
mapper
public ConfigurationBuilder mapper(java.util.function.Consumer<com.fasterxml.jackson.databind.ObjectMapper> mapper)
-
httpClient
public ConfigurationBuilder httpClient(java.util.function.Consumer<okhttp3.OkHttpClient.Builder> httpClient)
-
applyFrom
public ConfigurationBuilder applyFrom(java.util.function.Consumer<ConfigurationBuilder> configuration)
-
build
public Configuration build()
-
getDevId
public java.lang.String getDevId()
-
getAuthKey
public java.lang.String getAuthKey()
-
getBaseEndpoint
public BaseEndpoint getBaseEndpoint()
-
getSessionStorage
public SessionStorage getSessionStorage()
-
getUserAgent
public java.lang.String getUserAgent()
-
getLanguage
public Language getLanguage()
-
getMapper
public java.util.function.Consumer<com.fasterxml.jackson.databind.ObjectMapper> getMapper()
-
getHttpClient
public java.util.function.Consumer<okhttp3.OkHttpClient.Builder> getHttpClient()
-
setDevId
public ConfigurationBuilder setDevId(java.lang.String devId)
-
setAuthKey
public ConfigurationBuilder setAuthKey(java.lang.String authKey)
-
setBaseEndpoint
public ConfigurationBuilder setBaseEndpoint(BaseEndpoint baseEndpoint)
-
setSessionStorage
public ConfigurationBuilder setSessionStorage(SessionStorage sessionStorage)
-
setUserAgent
public ConfigurationBuilder setUserAgent(java.lang.String userAgent)
-
setLanguage
public ConfigurationBuilder setLanguage(Language language)
-
-