-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathAsyncApiClient.java
More file actions
28 lines (22 loc) · 946 Bytes
/
AsyncApiClient.java
File metadata and controls
28 lines (22 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**
* This file was auto-generated by Fern from our API Definition.
*/
package com.skyflow.generated.auth.rest;
import com.skyflow.generated.auth.rest.core.ClientOptions;
import com.skyflow.generated.auth.rest.core.Suppliers;
import com.skyflow.generated.auth.rest.resources.authentication.AsyncAuthenticationClient;
import java.util.function.Supplier;
public class AsyncApiClient {
protected final ClientOptions clientOptions;
protected final Supplier<AsyncAuthenticationClient> authenticationClient;
public AsyncApiClient(ClientOptions clientOptions) {
this.clientOptions = clientOptions;
this.authenticationClient = Suppliers.memoize(() -> new AsyncAuthenticationClient(clientOptions));
}
public AsyncAuthenticationClient authentication() {
return this.authenticationClient.get();
}
public static AsyncApiClientBuilder builder() {
return new AsyncApiClientBuilder();
}
}