-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAcsClient.java
More file actions
73 lines (56 loc) · 2.77 KB
/
AcsClient.java
File metadata and controls
73 lines (56 loc) · 2.77 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/**
* This file was auto-generated by Fern from our API Definition.
*/
package com.seam.api.resources.acs;
import com.seam.api.core.ClientOptions;
import com.seam.api.core.Suppliers;
import com.seam.api.resources.acs.accessgroups.AccessGroupsClient;
import com.seam.api.resources.acs.credentialpools.CredentialPoolsClient;
import com.seam.api.resources.acs.credentialprovisioningautomations.CredentialProvisioningAutomationsClient;
import com.seam.api.resources.acs.credentials.CredentialsClient;
import com.seam.api.resources.acs.entrances.EntrancesClient;
import com.seam.api.resources.acs.systems.SystemsClient;
import com.seam.api.resources.acs.users.UsersClient;
import java.util.function.Supplier;
public class AcsClient {
protected final ClientOptions clientOptions;
protected final Supplier<AccessGroupsClient> accessGroupsClient;
protected final Supplier<CredentialPoolsClient> credentialPoolsClient;
protected final Supplier<CredentialProvisioningAutomationsClient> credentialProvisioningAutomationsClient;
protected final Supplier<CredentialsClient> credentialsClient;
protected final Supplier<EntrancesClient> entrancesClient;
protected final Supplier<SystemsClient> systemsClient;
protected final Supplier<UsersClient> usersClient;
public AcsClient(ClientOptions clientOptions) {
this.clientOptions = clientOptions;
this.accessGroupsClient = Suppliers.memoize(() -> new AccessGroupsClient(clientOptions));
this.credentialPoolsClient = Suppliers.memoize(() -> new CredentialPoolsClient(clientOptions));
this.credentialProvisioningAutomationsClient =
Suppliers.memoize(() -> new CredentialProvisioningAutomationsClient(clientOptions));
this.credentialsClient = Suppliers.memoize(() -> new CredentialsClient(clientOptions));
this.entrancesClient = Suppliers.memoize(() -> new EntrancesClient(clientOptions));
this.systemsClient = Suppliers.memoize(() -> new SystemsClient(clientOptions));
this.usersClient = Suppliers.memoize(() -> new UsersClient(clientOptions));
}
public AccessGroupsClient accessGroups() {
return this.accessGroupsClient.get();
}
public CredentialPoolsClient credentialPools() {
return this.credentialPoolsClient.get();
}
public CredentialProvisioningAutomationsClient credentialProvisioningAutomations() {
return this.credentialProvisioningAutomationsClient.get();
}
public CredentialsClient credentials() {
return this.credentialsClient.get();
}
public EntrancesClient entrances() {
return this.entrancesClient.get();
}
public SystemsClient systems() {
return this.systemsClient.get();
}
public UsersClient users() {
return this.usersClient.get();
}
}