public static class PaypalServerSdkClient.Builder extends Object
PaypalServerSdkClient.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
PaypalServerSdkClient |
build()
Builds a new PaypalServerSdkClient object using the set fields.
|
PaypalServerSdkClient.Builder |
clientCredentialsAuth(ClientCredentialsAuthModel clientCredentialsAuthModel)
Credentials setter for ClientCredentialsAuth.
|
PaypalServerSdkClient.Builder |
environment(Environment environment)
Current API environment.
|
PaypalServerSdkClient.Builder |
httpCallback(HttpCallback httpCallback)
HttpCallback.
|
PaypalServerSdkClient.Builder |
httpClientConfig(Consumer<HttpClientConfiguration.Builder> action)
Setter for the Builder of httpClientConfiguration, takes in an operation to be performed
on the builder instance of HTTP client configuration.
|
PaypalServerSdkClient.Builder |
loggingConfig()
Setter for the Builder of LoggingConfiguration with Console Logging.
|
PaypalServerSdkClient.Builder |
loggingConfig(Consumer<ApiLoggingConfiguration.Builder> action)
Setter for the Builder of LoggingConfiguration, takes in an operation to be
performed on the builder instance of logging configuration.
|
PaypalServerSdkClient.Builder |
timeout(long timeout)
Deprecated.
This method will be removed in a future version. Use
httpClientConfig instead. |
public PaypalServerSdkClient.Builder clientCredentialsAuth(ClientCredentialsAuthModel clientCredentialsAuthModel)
clientCredentialsAuthModel - The instance of ClientCredentialsAuthModel.public PaypalServerSdkClient.Builder environment(Environment environment)
environment - The environment for client.@Deprecated public PaypalServerSdkClient.Builder timeout(long timeout)
httpClientConfig instead.timeout - must be greater then 0.public PaypalServerSdkClient.Builder loggingConfig(Consumer<ApiLoggingConfiguration.Builder> action)
action - Consumer for the builder of LoggingConfiguration.public PaypalServerSdkClient.Builder loggingConfig()
public PaypalServerSdkClient.Builder httpCallback(HttpCallback httpCallback)
httpCallback - Callback to be called before and after the HTTP call.public PaypalServerSdkClient.Builder httpClientConfig(Consumer<HttpClientConfiguration.Builder> action)
action - Consumer for the builder of httpClientConfiguration.public PaypalServerSdkClient build()
Copyright © 2025. All rights reserved.