Package com.intercom.api
Class AsyncIntercomBuilder
- java.lang.Object
-
- com.intercom.api.AsyncIntercomBuilder
-
public final class AsyncIntercomBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AsyncIntercomBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncIntercombuild()AsyncIntercomBuilderenvironment(Environment environment)AsyncIntercomBuilderhttpClient(okhttp3.OkHttpClient httpClient)Sets the underlying OkHttp clientAsyncIntercomBuildermaxRetries(int maxRetries)Sets the maximum number of retries for the client.AsyncIntercomBuildertimeout(int timeout)Sets the timeout (in seconds) for the client.AsyncIntercomBuildertoken(java.lang.String token)Sets token.AsyncIntercomBuilderurl(java.lang.String url)
-
-
-
Method Detail
-
token
public AsyncIntercomBuilder token(java.lang.String token)
Sets token. Defaults to the INTERCOM_API_KEY environment variable.
-
environment
public AsyncIntercomBuilder environment(Environment environment)
-
url
public AsyncIntercomBuilder url(java.lang.String url)
-
timeout
public AsyncIntercomBuilder timeout(int timeout)
Sets the timeout (in seconds) for the client. Defaults to 60 seconds.
-
maxRetries
public AsyncIntercomBuilder maxRetries(int maxRetries)
Sets the maximum number of retries for the client. Defaults to 2 retries.
-
httpClient
public AsyncIntercomBuilder httpClient(okhttp3.OkHttpClient httpClient)
Sets the underlying OkHttp client
-
build
public AsyncIntercom build()
-
-