nativeRequestType
- type of a request for the native http clientpublic static class GraphServiceClient.Builder<httpClientType,nativeRequestType>
extends com.microsoft.graph.core.BaseClient.Builder<httpClientType,nativeRequestType>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
GraphServiceClient.Builder<httpClientType,nativeRequestType> |
authenticationProvider(com.microsoft.graph.authentication.IAuthenticationProvider auth)
Sets the authentication provider
|
GraphServiceClient<nativeRequestType> |
buildClient()
Builds and returns the Graph service client.
|
GraphServiceClient.Builder<httpClientType,nativeRequestType> |
httpClient(httpClientType client)
Sets the http client
|
GraphServiceClient.Builder<httpClientType,nativeRequestType> |
httpProvider(com.microsoft.graph.http.IHttpProvider<nativeRequestType> httpProvider)
Sets the httpProvider
|
GraphServiceClient.Builder<httpClientType,nativeRequestType> |
logger(com.microsoft.graph.logger.ILogger logger)
Sets the logger
|
GraphServiceClient.Builder<httpClientType,nativeRequestType> |
serializer(com.microsoft.graph.serializer.ISerializer serializer)
Sets the serializer.
|
@Nonnull public GraphServiceClient.Builder<httpClientType,nativeRequestType> serializer(@Nonnull com.microsoft.graph.serializer.ISerializer serializer)
serializer
in class com.microsoft.graph.core.BaseClient.Builder<httpClientType,nativeRequestType>
serializer
- the serializer@Nonnull public GraphServiceClient.Builder<httpClientType,nativeRequestType> httpProvider(@Nonnull com.microsoft.graph.http.IHttpProvider<nativeRequestType> httpProvider)
httpProvider
in class com.microsoft.graph.core.BaseClient.Builder<httpClientType,nativeRequestType>
httpProvider
- the httpProvider@Nonnull public GraphServiceClient.Builder<httpClientType,nativeRequestType> logger(@Nonnull com.microsoft.graph.logger.ILogger logger)
logger
in class com.microsoft.graph.core.BaseClient.Builder<httpClientType,nativeRequestType>
logger
- the logger@Nonnull public GraphServiceClient.Builder<httpClientType,nativeRequestType> httpClient(@Nonnull httpClientType client)
httpClient
in class com.microsoft.graph.core.BaseClient.Builder<httpClientType,nativeRequestType>
client
- the http client@Nonnull public GraphServiceClient.Builder<httpClientType,nativeRequestType> authenticationProvider(@Nonnull com.microsoft.graph.authentication.IAuthenticationProvider auth)
authenticationProvider
in class com.microsoft.graph.core.BaseClient.Builder<httpClientType,nativeRequestType>
auth
- the authentication provider@Nonnull public GraphServiceClient<nativeRequestType> buildClient() throws com.microsoft.graph.core.ClientException
buildClient
in class com.microsoft.graph.core.BaseClient.Builder<httpClientType,nativeRequestType>
com.microsoft.graph.core.ClientException
- if there was an exception creating the client