public static final class GoCardlessClient.Builder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
GoCardlessClient |
build()
Builds a configured instance of the GoCardlessClient
|
GoCardlessClient.Builder |
withBaseUrl(java.lang.String baseUrl)
Configures the base URL for the client
|
GoCardlessClient.Builder |
withEnvironment(GoCardlessClient.Environment environment)
Configures the GoCardless environment for the client
|
GoCardlessClient.Builder |
withProxy(java.net.Proxy proxy)
Configures the proxy to use for HTTP requests made by the client
|
GoCardlessClient.Builder |
withSslSocketFactory(javax.net.ssl.SSLSocketFactory sslSocketFactory)
Configures the SSL socket factory to be used when making HTTP requests
|
public GoCardlessClient.Builder withBaseUrl(java.lang.String baseUrl)
Configures the base URL for the client
baseUrl - the base URL for the GoCardless APIpublic GoCardlessClient.Builder withEnvironment(GoCardlessClient.Environment environment)
Configures the GoCardless environment for the client
environment - the GoCardless environment to connect topublic GoCardlessClient.Builder withProxy(java.net.Proxy proxy)
Configures the proxy to use for HTTP requests made by the client
proxy - the proxy to use for HTTP requests made by the clientpublic GoCardlessClient.Builder withSslSocketFactory(javax.net.ssl.SSLSocketFactory sslSocketFactory)
Configures the SSL socket factory to be used when making HTTP requests
sslSocketFactory - the SSL socket factory to be used when making HTTP requestspublic GoCardlessClient build()
Builds a configured instance of the GoCardlessClient