public static class UberRidesApi.Builder
extends java.lang.Object
UberRidesApi| Modifier and Type | Method and Description |
|---|---|
UberRidesApi |
build()
Create the
UberRidesApi to be used. |
UberRidesApi.Builder |
setLogger(okhttp3.logging.HttpLoggingInterceptor.Logger logger)
Sets the
HttpLoggingInterceptor.Logger to use. |
UberRidesApi.Builder |
setLogLevel(okhttp3.logging.HttpLoggingInterceptor.Level logLevel)
Sets the Log level for requests.
|
UberRidesApi.Builder |
setOkHttpClient(okhttp3.OkHttpClient client)
Sets an existing
OkHttpClient to use for Uber Rides API requests |
@Nonnull public UberRidesApi.Builder setLogLevel(@Nonnull okhttp3.logging.HttpLoggingInterceptor.Level logLevel)
HttpLoggingInterceptor.Level#NONE.@Nonnull public UberRidesApi.Builder setLogger(@Nonnull okhttp3.logging.HttpLoggingInterceptor.Logger logger)
HttpLoggingInterceptor.Logger to use.
Optional and defaults to HttpLoggingInterceptor.Logger.DEFAULT@Nonnull public UberRidesApi.Builder setOkHttpClient(@Nonnull okhttp3.OkHttpClient client)
OkHttpClient to use for Uber Rides API requestsclient - OkHttpClientUberRidesApi.Builder for UberRidesApipublic UberRidesApi build()
UberRidesApi to be used.UberRidesApi