• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

box / box-java-sdk / #7691

28 Oct 2026 03:14PM UTC coverage: 34.074% (-0.004%) from 34.078%
#7691

push

github

web-flow
feat: add `DocumentSplitManager` and document split APIs + OTP for shared links (box/box-openapi#621)

Co-authored-by: Tsitsi Nyamutswa <128546813+tnyamutswa@users.noreply.github.com>

47 of 1790 new or added lines in 64 files covered. (2.63%)

467 existing lines in 22 files now uncovered.

20001 of 58698 relevant lines covered (34.07%)

0.34 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

98.11
/src/main/java/com/box/sdkgen/client/BoxClient.java
1
package com.box.sdkgen.client;
2

3
import static com.box.sdkgen.internal.utils.UtilsManager.entryOf;
4
import static com.box.sdkgen.internal.utils.UtilsManager.mapOf;
5

6
import com.box.sdkgen.managers.ai.AiManager;
7
import com.box.sdkgen.managers.aistudio.AiStudioManager;
8
import com.box.sdkgen.managers.appitemassociations.AppItemAssociationsManager;
9
import com.box.sdkgen.managers.archives.ArchivesManager;
10
import com.box.sdkgen.managers.authorization.AuthorizationManager;
11
import com.box.sdkgen.managers.automateworkflows.AutomateWorkflowsManager;
12
import com.box.sdkgen.managers.avatars.AvatarsManager;
13
import com.box.sdkgen.managers.chunkeduploads.ChunkedUploadsManager;
14
import com.box.sdkgen.managers.classifications.ClassificationsManager;
15
import com.box.sdkgen.managers.collaborationallowlistentries.CollaborationAllowlistEntriesManager;
16
import com.box.sdkgen.managers.collaborationallowlistexempttargets.CollaborationAllowlistExemptTargetsManager;
17
import com.box.sdkgen.managers.collections.CollectionsManager;
18
import com.box.sdkgen.managers.comments.CommentsManager;
19
import com.box.sdkgen.managers.devicepinners.DevicePinnersManager;
20
import com.box.sdkgen.managers.docgen.DocgenManager;
21
import com.box.sdkgen.managers.docgentemplate.DocgenTemplateManager;
22
import com.box.sdkgen.managers.documentsplit.DocumentSplitManager;
23
import com.box.sdkgen.managers.downloads.DownloadsManager;
24
import com.box.sdkgen.managers.emailaliases.EmailAliasesManager;
25
import com.box.sdkgen.managers.enterpriseconfigurations.EnterpriseConfigurationsManager;
26
import com.box.sdkgen.managers.events.EventsManager;
27
import com.box.sdkgen.managers.externalusers.ExternalUsersManager;
28
import com.box.sdkgen.managers.fileclassifications.FileClassificationsManager;
29
import com.box.sdkgen.managers.filemetadata.FileMetadataManager;
30
import com.box.sdkgen.managers.filerequests.FileRequestsManager;
31
import com.box.sdkgen.managers.files.FilesManager;
32
import com.box.sdkgen.managers.fileversionlegalholds.FileVersionLegalHoldsManager;
33
import com.box.sdkgen.managers.fileversionretentions.FileVersionRetentionsManager;
34
import com.box.sdkgen.managers.fileversions.FileVersionsManager;
35
import com.box.sdkgen.managers.filewatermarks.FileWatermarksManager;
36
import com.box.sdkgen.managers.folderclassifications.FolderClassificationsManager;
37
import com.box.sdkgen.managers.folderlocks.FolderLocksManager;
38
import com.box.sdkgen.managers.foldermetadata.FolderMetadataManager;
39
import com.box.sdkgen.managers.folders.FoldersManager;
40
import com.box.sdkgen.managers.folderwatermarks.FolderWatermarksManager;
41
import com.box.sdkgen.managers.groups.GroupsManager;
42
import com.box.sdkgen.managers.hubcollaborations.HubCollaborationsManager;
43
import com.box.sdkgen.managers.hubdocument.HubDocumentManager;
44
import com.box.sdkgen.managers.hubitems.HubItemsManager;
45
import com.box.sdkgen.managers.hubs.HubsManager;
46
import com.box.sdkgen.managers.integrationmappings.IntegrationMappingsManager;
47
import com.box.sdkgen.managers.invites.InvitesManager;
48
import com.box.sdkgen.managers.legalholdpolicies.LegalHoldPoliciesManager;
49
import com.box.sdkgen.managers.legalholdpolicyassignments.LegalHoldPolicyAssignmentsManager;
50
import com.box.sdkgen.managers.listcollaborations.ListCollaborationsManager;
51
import com.box.sdkgen.managers.memberships.MembershipsManager;
52
import com.box.sdkgen.managers.metadatacascadepolicies.MetadataCascadePoliciesManager;
53
import com.box.sdkgen.managers.metadatataxonomies.MetadataTaxonomiesManager;
54
import com.box.sdkgen.managers.metadatatemplates.MetadataTemplatesManager;
55
import com.box.sdkgen.managers.notes.NotesManager;
56
import com.box.sdkgen.managers.query.QueryManager;
57
import com.box.sdkgen.managers.recentitems.RecentItemsManager;
58
import com.box.sdkgen.managers.retentionpolicies.RetentionPoliciesManager;
59
import com.box.sdkgen.managers.retentionpolicyassignments.RetentionPolicyAssignmentsManager;
60
import com.box.sdkgen.managers.search.SearchManager;
61
import com.box.sdkgen.managers.sessiontermination.SessionTerminationManager;
62
import com.box.sdkgen.managers.sharedlinksappitems.SharedLinksAppItemsManager;
63
import com.box.sdkgen.managers.sharedlinksfiles.SharedLinksFilesManager;
64
import com.box.sdkgen.managers.sharedlinksfolders.SharedLinksFoldersManager;
65
import com.box.sdkgen.managers.sharedlinksweblinks.SharedLinksWebLinksManager;
66
import com.box.sdkgen.managers.shieldinformationbarrierreports.ShieldInformationBarrierReportsManager;
67
import com.box.sdkgen.managers.shieldinformationbarriers.ShieldInformationBarriersManager;
68
import com.box.sdkgen.managers.shieldinformationbarriersegmentmembers.ShieldInformationBarrierSegmentMembersManager;
69
import com.box.sdkgen.managers.shieldinformationbarriersegmentrestrictions.ShieldInformationBarrierSegmentRestrictionsManager;
70
import com.box.sdkgen.managers.shieldinformationbarriersegments.ShieldInformationBarrierSegmentsManager;
71
import com.box.sdkgen.managers.shieldlists.ShieldListsManager;
72
import com.box.sdkgen.managers.signrequests.SignRequestsManager;
73
import com.box.sdkgen.managers.signtemplates.SignTemplatesManager;
74
import com.box.sdkgen.managers.skills.SkillsManager;
75
import com.box.sdkgen.managers.storagepolicies.StoragePoliciesManager;
76
import com.box.sdkgen.managers.storagepolicyassignments.StoragePolicyAssignmentsManager;
77
import com.box.sdkgen.managers.taskassignments.TaskAssignmentsManager;
78
import com.box.sdkgen.managers.tasks.TasksManager;
79
import com.box.sdkgen.managers.termsofservices.TermsOfServicesManager;
80
import com.box.sdkgen.managers.termsofserviceuserstatuses.TermsOfServiceUserStatusesManager;
81
import com.box.sdkgen.managers.transfer.TransferManager;
82
import com.box.sdkgen.managers.trashedfiles.TrashedFilesManager;
83
import com.box.sdkgen.managers.trashedfolders.TrashedFoldersManager;
84
import com.box.sdkgen.managers.trasheditems.TrashedItemsManager;
85
import com.box.sdkgen.managers.trashedweblinks.TrashedWebLinksManager;
86
import com.box.sdkgen.managers.uploads.UploadsManager;
87
import com.box.sdkgen.managers.usercollaborations.UserCollaborationsManager;
88
import com.box.sdkgen.managers.users.UsersManager;
89
import com.box.sdkgen.managers.webhooks.WebhooksManager;
90
import com.box.sdkgen.managers.weblinks.WebLinksManager;
91
import com.box.sdkgen.managers.workflows.WorkflowsManager;
92
import com.box.sdkgen.managers.zipdownloads.ZipDownloadsManager;
93
import com.box.sdkgen.networking.auth.Authentication;
94
import com.box.sdkgen.networking.baseurls.BaseUrls;
95
import com.box.sdkgen.networking.fetchoptions.FetchOptions;
96
import com.box.sdkgen.networking.fetchresponse.FetchResponse;
97
import com.box.sdkgen.networking.interceptors.Interceptor;
98
import com.box.sdkgen.networking.network.NetworkSession;
99
import com.box.sdkgen.networking.proxyconfig.ProxyConfig;
100
import com.box.sdkgen.networking.timeoutconfig.TimeoutConfig;
101
import java.util.List;
102
import java.util.Map;
103

104
public class BoxClient {
105

106
  public final Authentication auth;
107

108
  public NetworkSession networkSession;
109

110
  public final AuthorizationManager authorization;
111

112
  public final FilesManager files;
113

114
  public final TrashedFilesManager trashedFiles;
115

116
  public final AppItemAssociationsManager appItemAssociations;
117

118
  public final DownloadsManager downloads;
119

120
  public final UploadsManager uploads;
121

122
  public final ChunkedUploadsManager chunkedUploads;
123

124
  public final ListCollaborationsManager listCollaborations;
125

126
  public final CommentsManager comments;
127

128
  public final TasksManager tasks;
129

130
  public final FileVersionsManager fileVersions;
131

132
  public final FileMetadataManager fileMetadata;
133

134
  public final FileClassificationsManager fileClassifications;
135

136
  public final SkillsManager skills;
137

138
  public final FileWatermarksManager fileWatermarks;
139

140
  public final FileRequestsManager fileRequests;
141

142
  public final FoldersManager folders;
143

144
  public final TrashedFoldersManager trashedFolders;
145

146
  public final FolderMetadataManager folderMetadata;
147

148
  public final FolderClassificationsManager folderClassifications;
149

150
  public final TrashedItemsManager trashedItems;
151

152
  public final FolderWatermarksManager folderWatermarks;
153

154
  public final FolderLocksManager folderLocks;
155

156
  public final MetadataTemplatesManager metadataTemplates;
157

158
  public final ClassificationsManager classifications;
159

160
  public final MetadataCascadePoliciesManager metadataCascadePolicies;
161

162
  public final SearchManager search;
163

164
  public final UserCollaborationsManager userCollaborations;
165

166
  public final TaskAssignmentsManager taskAssignments;
167

168
  public final SharedLinksFilesManager sharedLinksFiles;
169

170
  public final SharedLinksFoldersManager sharedLinksFolders;
171

172
  public final WebLinksManager webLinks;
173

174
  public final TrashedWebLinksManager trashedWebLinks;
175

176
  public final SharedLinksWebLinksManager sharedLinksWebLinks;
177

178
  public final SharedLinksAppItemsManager sharedLinksAppItems;
179

180
  public final UsersManager users;
181

182
  public final SessionTerminationManager sessionTermination;
183

184
  public final AvatarsManager avatars;
185

186
  public final TransferManager transfer;
187

188
  public final EmailAliasesManager emailAliases;
189

190
  public final MembershipsManager memberships;
191

192
  public final InvitesManager invites;
193

194
  public final GroupsManager groups;
195

196
  public final WebhooksManager webhooks;
197

198
  public final EventsManager events;
199

200
  public final CollectionsManager collections;
201

202
  public final RecentItemsManager recentItems;
203

204
  public final RetentionPoliciesManager retentionPolicies;
205

206
  public final RetentionPolicyAssignmentsManager retentionPolicyAssignments;
207

208
  public final LegalHoldPoliciesManager legalHoldPolicies;
209

210
  public final LegalHoldPolicyAssignmentsManager legalHoldPolicyAssignments;
211

212
  public final FileVersionRetentionsManager fileVersionRetentions;
213

214
  public final FileVersionLegalHoldsManager fileVersionLegalHolds;
215

216
  public final ShieldInformationBarriersManager shieldInformationBarriers;
217

218
  public final ShieldInformationBarrierReportsManager shieldInformationBarrierReports;
219

220
  public final ShieldInformationBarrierSegmentsManager shieldInformationBarrierSegments;
221

222
  public final ShieldInformationBarrierSegmentMembersManager shieldInformationBarrierSegmentMembers;
223

224
  public final ShieldInformationBarrierSegmentRestrictionsManager
225
      shieldInformationBarrierSegmentRestrictions;
226

227
  public final DevicePinnersManager devicePinners;
228

229
  public final TermsOfServicesManager termsOfServices;
230

231
  public final TermsOfServiceUserStatusesManager termsOfServiceUserStatuses;
232

233
  public final CollaborationAllowlistEntriesManager collaborationAllowlistEntries;
234

235
  public final CollaborationAllowlistExemptTargetsManager collaborationAllowlistExemptTargets;
236

237
  public final StoragePoliciesManager storagePolicies;
238

239
  public final StoragePolicyAssignmentsManager storagePolicyAssignments;
240

241
  public final ZipDownloadsManager zipDownloads;
242

243
  public final SignRequestsManager signRequests;
244

245
  public final WorkflowsManager workflows;
246

247
  public final SignTemplatesManager signTemplates;
248

249
  public final IntegrationMappingsManager integrationMappings;
250

251
  public final AiManager ai;
252

253
  public final AiStudioManager aiStudio;
254

255
  public final MetadataTaxonomiesManager metadataTaxonomies;
256

257
  public final DocgenTemplateManager docgenTemplate;
258

259
  public final DocgenManager docgen;
260

261
  public final EnterpriseConfigurationsManager enterpriseConfigurations;
262

263
  public final HubsManager hubs;
264

265
  public final HubCollaborationsManager hubCollaborations;
266

267
  public final HubItemsManager hubItems;
268

269
  public final HubDocumentManager hubDocument;
270

271
  public final ShieldListsManager shieldLists;
272

273
  public final ArchivesManager archives;
274

275
  public final ExternalUsersManager externalUsers;
276

277
  public final AutomateWorkflowsManager automateWorkflows;
278

279
  public final NotesManager notes;
280

281
  public final DocumentSplitManager documentSplit;
282

283
  public final QueryManager query;
284

285
  public BoxClient(Authentication auth) {
1 ✔
286
    this.auth = auth;
1 ✔
287
    this.networkSession = new NetworkSession.Builder().baseUrls(new BaseUrls()).build();
1 ✔
288
    this.authorization =
1 ✔
289
        new AuthorizationManager.Builder()
290
            .auth(this.auth)
1 ✔
291
            .networkSession(this.networkSession)
1 ✔
292
            .build();
1 ✔
293
    this.files =
1 ✔
294
        new FilesManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
295
    this.trashedFiles =
1 ✔
296
        new TrashedFilesManager.Builder()
297
            .auth(this.auth)
1 ✔
298
            .networkSession(this.networkSession)
1 ✔
299
            .build();
1 ✔
300
    this.appItemAssociations =
1 ✔
301
        new AppItemAssociationsManager.Builder()
302
            .auth(this.auth)
1 ✔
303
            .networkSession(this.networkSession)
1 ✔
304
            .build();
1 ✔
305
    this.downloads =
1 ✔
306
        new DownloadsManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
307
    this.uploads =
1 ✔
308
        new UploadsManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
309
    this.chunkedUploads =
1 ✔
310
        new ChunkedUploadsManager.Builder()
311
            .auth(this.auth)
1 ✔
312
            .networkSession(this.networkSession)
1 ✔
313
            .build();
1 ✔
314
    this.listCollaborations =
1 ✔
315
        new ListCollaborationsManager.Builder()
316
            .auth(this.auth)
1 ✔
317
            .networkSession(this.networkSession)
1 ✔
318
            .build();
1 ✔
319
    this.comments =
1 ✔
320
        new CommentsManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
321
    this.tasks =
1 ✔
322
        new TasksManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
323
    this.fileVersions =
1 ✔
324
        new FileVersionsManager.Builder()
325
            .auth(this.auth)
1 ✔
326
            .networkSession(this.networkSession)
1 ✔
327
            .build();
1 ✔
328
    this.fileMetadata =
1 ✔
329
        new FileMetadataManager.Builder()
330
            .auth(this.auth)
1 ✔
331
            .networkSession(this.networkSession)
1 ✔
332
            .build();
1 ✔
333
    this.fileClassifications =
1 ✔
334
        new FileClassificationsManager.Builder()
335
            .auth(this.auth)
1 ✔
336
            .networkSession(this.networkSession)
1 ✔
337
            .build();
1 ✔
338
    this.skills =
1 ✔
339
        new SkillsManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
340
    this.fileWatermarks =
1 ✔
341
        new FileWatermarksManager.Builder()
342
            .auth(this.auth)
1 ✔
343
            .networkSession(this.networkSession)
1 ✔
344
            .build();
1 ✔
345
    this.fileRequests =
1 ✔
346
        new FileRequestsManager.Builder()
347
            .auth(this.auth)
1 ✔
348
            .networkSession(this.networkSession)
1 ✔
349
            .build();
1 ✔
350
    this.folders =
1 ✔
351
        new FoldersManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
352
    this.trashedFolders =
1 ✔
353
        new TrashedFoldersManager.Builder()
354
            .auth(this.auth)
1 ✔
355
            .networkSession(this.networkSession)
1 ✔
356
            .build();
1 ✔
357
    this.folderMetadata =
1 ✔
358
        new FolderMetadataManager.Builder()
359
            .auth(this.auth)
1 ✔
360
            .networkSession(this.networkSession)
1 ✔
361
            .build();
1 ✔
362
    this.folderClassifications =
1 ✔
363
        new FolderClassificationsManager.Builder()
364
            .auth(this.auth)
1 ✔
365
            .networkSession(this.networkSession)
1 ✔
366
            .build();
1 ✔
367
    this.trashedItems =
1 ✔
368
        new TrashedItemsManager.Builder()
369
            .auth(this.auth)
1 ✔
370
            .networkSession(this.networkSession)
1 ✔
371
            .build();
1 ✔
372
    this.folderWatermarks =
1 ✔
373
        new FolderWatermarksManager.Builder()
374
            .auth(this.auth)
1 ✔
375
            .networkSession(this.networkSession)
1 ✔
376
            .build();
1 ✔
377
    this.folderLocks =
1 ✔
378
        new FolderLocksManager.Builder()
379
            .auth(this.auth)
1 ✔
380
            .networkSession(this.networkSession)
1 ✔
381
            .build();
1 ✔
382
    this.metadataTemplates =
1 ✔
383
        new MetadataTemplatesManager.Builder()
384
            .auth(this.auth)
1 ✔
385
            .networkSession(this.networkSession)
1 ✔
386
            .build();
1 ✔
387
    this.classifications =
1 ✔
388
        new ClassificationsManager.Builder()
389
            .auth(this.auth)
1 ✔
390
            .networkSession(this.networkSession)
1 ✔
391
            .build();
1 ✔
392
    this.metadataCascadePolicies =
1 ✔
393
        new MetadataCascadePoliciesManager.Builder()
394
            .auth(this.auth)
1 ✔
395
            .networkSession(this.networkSession)
1 ✔
396
            .build();
1 ✔
397
    this.search =
1 ✔
398
        new SearchManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
399
    this.userCollaborations =
1 ✔
400
        new UserCollaborationsManager.Builder()
401
            .auth(this.auth)
1 ✔
402
            .networkSession(this.networkSession)
1 ✔
403
            .build();
1 ✔
404
    this.taskAssignments =
1 ✔
405
        new TaskAssignmentsManager.Builder()
406
            .auth(this.auth)
1 ✔
407
            .networkSession(this.networkSession)
1 ✔
408
            .build();
1 ✔
409
    this.sharedLinksFiles =
1 ✔
410
        new SharedLinksFilesManager.Builder()
411
            .auth(this.auth)
1 ✔
412
            .networkSession(this.networkSession)
1 ✔
413
            .build();
1 ✔
414
    this.sharedLinksFolders =
1 ✔
415
        new SharedLinksFoldersManager.Builder()
416
            .auth(this.auth)
1 ✔
417
            .networkSession(this.networkSession)
1 ✔
418
            .build();
1 ✔
419
    this.webLinks =
1 ✔
420
        new WebLinksManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
421
    this.trashedWebLinks =
1 ✔
422
        new TrashedWebLinksManager.Builder()
423
            .auth(this.auth)
1 ✔
424
            .networkSession(this.networkSession)
1 ✔
425
            .build();
1 ✔
426
    this.sharedLinksWebLinks =
1 ✔
427
        new SharedLinksWebLinksManager.Builder()
428
            .auth(this.auth)
1 ✔
429
            .networkSession(this.networkSession)
1 ✔
430
            .build();
1 ✔
431
    this.sharedLinksAppItems =
1 ✔
432
        new SharedLinksAppItemsManager.Builder()
433
            .auth(this.auth)
1 ✔
434
            .networkSession(this.networkSession)
1 ✔
435
            .build();
1 ✔
436
    this.users =
1 ✔
437
        new UsersManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
438
    this.sessionTermination =
1 ✔
439
        new SessionTerminationManager.Builder()
440
            .auth(this.auth)
1 ✔
441
            .networkSession(this.networkSession)
1 ✔
442
            .build();
1 ✔
443
    this.avatars =
1 ✔
444
        new AvatarsManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
445
    this.transfer =
1 ✔
446
        new TransferManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
447
    this.emailAliases =
1 ✔
448
        new EmailAliasesManager.Builder()
449
            .auth(this.auth)
1 ✔
450
            .networkSession(this.networkSession)
1 ✔
451
            .build();
1 ✔
452
    this.memberships =
1 ✔
453
        new MembershipsManager.Builder()
454
            .auth(this.auth)
1 ✔
455
            .networkSession(this.networkSession)
1 ✔
456
            .build();
1 ✔
457
    this.invites =
1 ✔
458
        new InvitesManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
459
    this.groups =
1 ✔
460
        new GroupsManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
461
    this.webhooks =
1 ✔
462
        new WebhooksManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
463
    this.events =
1 ✔
464
        new EventsManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
465
    this.collections =
1 ✔
466
        new CollectionsManager.Builder()
467
            .auth(this.auth)
1 ✔
468
            .networkSession(this.networkSession)
1 ✔
469
            .build();
1 ✔
470
    this.recentItems =
1 ✔
471
        new RecentItemsManager.Builder()
472
            .auth(this.auth)
1 ✔
473
            .networkSession(this.networkSession)
1 ✔
474
            .build();
1 ✔
475
    this.retentionPolicies =
1 ✔
476
        new RetentionPoliciesManager.Builder()
477
            .auth(this.auth)
1 ✔
478
            .networkSession(this.networkSession)
1 ✔
479
            .build();
1 ✔
480
    this.retentionPolicyAssignments =
1 ✔
481
        new RetentionPolicyAssignmentsManager.Builder()
482
            .auth(this.auth)
1 ✔
483
            .networkSession(this.networkSession)
1 ✔
484
            .build();
1 ✔
485
    this.legalHoldPolicies =
1 ✔
486
        new LegalHoldPoliciesManager.Builder()
487
            .auth(this.auth)
1 ✔
488
            .networkSession(this.networkSession)
1 ✔
489
            .build();
1 ✔
490
    this.legalHoldPolicyAssignments =
1 ✔
491
        new LegalHoldPolicyAssignmentsManager.Builder()
492
            .auth(this.auth)
1 ✔
493
            .networkSession(this.networkSession)
1 ✔
494
            .build();
1 ✔
495
    this.fileVersionRetentions =
1 ✔
496
        new FileVersionRetentionsManager.Builder()
497
            .auth(this.auth)
1 ✔
498
            .networkSession(this.networkSession)
1 ✔
499
            .build();
1 ✔
500
    this.fileVersionLegalHolds =
1 ✔
501
        new FileVersionLegalHoldsManager.Builder()
502
            .auth(this.auth)
1 ✔
503
            .networkSession(this.networkSession)
1 ✔
504
            .build();
1 ✔
505
    this.shieldInformationBarriers =
1 ✔
506
        new ShieldInformationBarriersManager.Builder()
507
            .auth(this.auth)
1 ✔
508
            .networkSession(this.networkSession)
1 ✔
509
            .build();
1 ✔
510
    this.shieldInformationBarrierReports =
1 ✔
511
        new ShieldInformationBarrierReportsManager.Builder()
512
            .auth(this.auth)
1 ✔
513
            .networkSession(this.networkSession)
1 ✔
514
            .build();
1 ✔
515
    this.shieldInformationBarrierSegments =
1 ✔
516
        new ShieldInformationBarrierSegmentsManager.Builder()
517
            .auth(this.auth)
1 ✔
518
            .networkSession(this.networkSession)
1 ✔
519
            .build();
1 ✔
520
    this.shieldInformationBarrierSegmentMembers =
1 ✔
521
        new ShieldInformationBarrierSegmentMembersManager.Builder()
522
            .auth(this.auth)
1 ✔
523
            .networkSession(this.networkSession)
1 ✔
524
            .build();
1 ✔
525
    this.shieldInformationBarrierSegmentRestrictions =
1 ✔
526
        new ShieldInformationBarrierSegmentRestrictionsManager.Builder()
527
            .auth(this.auth)
1 ✔
528
            .networkSession(this.networkSession)
1 ✔
529
            .build();
1 ✔
530
    this.devicePinners =
1 ✔
531
        new DevicePinnersManager.Builder()
532
            .auth(this.auth)
1 ✔
533
            .networkSession(this.networkSession)
1 ✔
534
            .build();
1 ✔
535
    this.termsOfServices =
1 ✔
536
        new TermsOfServicesManager.Builder()
537
            .auth(this.auth)
1 ✔
538
            .networkSession(this.networkSession)
1 ✔
539
            .build();
1 ✔
540
    this.termsOfServiceUserStatuses =
1 ✔
541
        new TermsOfServiceUserStatusesManager.Builder()
542
            .auth(this.auth)
1 ✔
543
            .networkSession(this.networkSession)
1 ✔
544
            .build();
1 ✔
545
    this.collaborationAllowlistEntries =
1 ✔
546
        new CollaborationAllowlistEntriesManager.Builder()
547
            .auth(this.auth)
1 ✔
548
            .networkSession(this.networkSession)
1 ✔
549
            .build();
1 ✔
550
    this.collaborationAllowlistExemptTargets =
1 ✔
551
        new CollaborationAllowlistExemptTargetsManager.Builder()
552
            .auth(this.auth)
1 ✔
553
            .networkSession(this.networkSession)
1 ✔
554
            .build();
1 ✔
555
    this.storagePolicies =
1 ✔
556
        new StoragePoliciesManager.Builder()
557
            .auth(this.auth)
1 ✔
558
            .networkSession(this.networkSession)
1 ✔
559
            .build();
1 ✔
560
    this.storagePolicyAssignments =
1 ✔
561
        new StoragePolicyAssignmentsManager.Builder()
562
            .auth(this.auth)
1 ✔
563
            .networkSession(this.networkSession)
1 ✔
564
            .build();
1 ✔
565
    this.zipDownloads =
1 ✔
566
        new ZipDownloadsManager.Builder()
567
            .auth(this.auth)
1 ✔
568
            .networkSession(this.networkSession)
1 ✔
569
            .build();
1 ✔
570
    this.signRequests =
1 ✔
571
        new SignRequestsManager.Builder()
572
            .auth(this.auth)
1 ✔
573
            .networkSession(this.networkSession)
1 ✔
574
            .build();
1 ✔
575
    this.workflows =
1 ✔
576
        new WorkflowsManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
577
    this.signTemplates =
1 ✔
578
        new SignTemplatesManager.Builder()
579
            .auth(this.auth)
1 ✔
580
            .networkSession(this.networkSession)
1 ✔
581
            .build();
1 ✔
582
    this.integrationMappings =
1 ✔
583
        new IntegrationMappingsManager.Builder()
584
            .auth(this.auth)
1 ✔
585
            .networkSession(this.networkSession)
1 ✔
586
            .build();
1 ✔
587
    this.ai = new AiManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
588
    this.aiStudio =
1 ✔
589
        new AiStudioManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
590
    this.metadataTaxonomies =
1 ✔
591
        new MetadataTaxonomiesManager.Builder()
592
            .auth(this.auth)
1 ✔
593
            .networkSession(this.networkSession)
1 ✔
594
            .build();
1 ✔
595
    this.docgenTemplate =
1 ✔
596
        new DocgenTemplateManager.Builder()
597
            .auth(this.auth)
1 ✔
598
            .networkSession(this.networkSession)
1 ✔
599
            .build();
1 ✔
600
    this.docgen =
1 ✔
601
        new DocgenManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
602
    this.enterpriseConfigurations =
1 ✔
603
        new EnterpriseConfigurationsManager.Builder()
604
            .auth(this.auth)
1 ✔
605
            .networkSession(this.networkSession)
1 ✔
606
            .build();
1 ✔
607
    this.hubs =
1 ✔
608
        new HubsManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
609
    this.hubCollaborations =
1 ✔
610
        new HubCollaborationsManager.Builder()
611
            .auth(this.auth)
1 ✔
612
            .networkSession(this.networkSession)
1 ✔
613
            .build();
1 ✔
614
    this.hubItems =
1 ✔
615
        new HubItemsManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
616
    this.hubDocument =
1 ✔
617
        new HubDocumentManager.Builder()
618
            .auth(this.auth)
1 ✔
619
            .networkSession(this.networkSession)
1 ✔
620
            .build();
1 ✔
621
    this.shieldLists =
1 ✔
622
        new ShieldListsManager.Builder()
623
            .auth(this.auth)
1 ✔
624
            .networkSession(this.networkSession)
1 ✔
625
            .build();
1 ✔
626
    this.archives =
1 ✔
627
        new ArchivesManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
628
    this.externalUsers =
1 ✔
629
        new ExternalUsersManager.Builder()
630
            .auth(this.auth)
1 ✔
631
            .networkSession(this.networkSession)
1 ✔
632
            .build();
1 ✔
633
    this.automateWorkflows =
1 ✔
634
        new AutomateWorkflowsManager.Builder()
635
            .auth(this.auth)
1 ✔
636
            .networkSession(this.networkSession)
1 ✔
637
            .build();
1 ✔
638
    this.notes =
1 ✔
639
        new NotesManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
640
    this.documentSplit =
1 ✔
641
        new DocumentSplitManager.Builder()
642
            .auth(this.auth)
1 ✔
643
            .networkSession(this.networkSession)
1 ✔
644
            .build();
1 ✔
645
    this.query =
1 ✔
646
        new QueryManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
647
  }
1 ✔
648

649
  protected BoxClient(Builder builder) {
1 ✔
650
    this.auth = builder.auth;
1 ✔
651
    this.networkSession = builder.networkSession;
1 ✔
652
    this.authorization =
1 ✔
653
        new AuthorizationManager.Builder()
654
            .auth(this.auth)
1 ✔
655
            .networkSession(this.networkSession)
1 ✔
656
            .build();
1 ✔
657
    this.files =
1 ✔
658
        new FilesManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
659
    this.trashedFiles =
1 ✔
660
        new TrashedFilesManager.Builder()
661
            .auth(this.auth)
1 ✔
662
            .networkSession(this.networkSession)
1 ✔
663
            .build();
1 ✔
664
    this.appItemAssociations =
1 ✔
665
        new AppItemAssociationsManager.Builder()
666
            .auth(this.auth)
1 ✔
667
            .networkSession(this.networkSession)
1 ✔
668
            .build();
1 ✔
669
    this.downloads =
1 ✔
670
        new DownloadsManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
671
    this.uploads =
1 ✔
672
        new UploadsManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
673
    this.chunkedUploads =
1 ✔
674
        new ChunkedUploadsManager.Builder()
675
            .auth(this.auth)
1 ✔
676
            .networkSession(this.networkSession)
1 ✔
677
            .build();
1 ✔
678
    this.listCollaborations =
1 ✔
679
        new ListCollaborationsManager.Builder()
680
            .auth(this.auth)
1 ✔
681
            .networkSession(this.networkSession)
1 ✔
682
            .build();
1 ✔
683
    this.comments =
1 ✔
684
        new CommentsManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
685
    this.tasks =
1 ✔
686
        new TasksManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
687
    this.fileVersions =
1 ✔
688
        new FileVersionsManager.Builder()
689
            .auth(this.auth)
1 ✔
690
            .networkSession(this.networkSession)
1 ✔
691
            .build();
1 ✔
692
    this.fileMetadata =
1 ✔
693
        new FileMetadataManager.Builder()
694
            .auth(this.auth)
1 ✔
695
            .networkSession(this.networkSession)
1 ✔
696
            .build();
1 ✔
697
    this.fileClassifications =
1 ✔
698
        new FileClassificationsManager.Builder()
699
            .auth(this.auth)
1 ✔
700
            .networkSession(this.networkSession)
1 ✔
701
            .build();
1 ✔
702
    this.skills =
1 ✔
703
        new SkillsManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
704
    this.fileWatermarks =
1 ✔
705
        new FileWatermarksManager.Builder()
706
            .auth(this.auth)
1 ✔
707
            .networkSession(this.networkSession)
1 ✔
708
            .build();
1 ✔
709
    this.fileRequests =
1 ✔
710
        new FileRequestsManager.Builder()
711
            .auth(this.auth)
1 ✔
712
            .networkSession(this.networkSession)
1 ✔
713
            .build();
1 ✔
714
    this.folders =
1 ✔
715
        new FoldersManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
716
    this.trashedFolders =
1 ✔
717
        new TrashedFoldersManager.Builder()
718
            .auth(this.auth)
1 ✔
719
            .networkSession(this.networkSession)
1 ✔
720
            .build();
1 ✔
721
    this.folderMetadata =
1 ✔
722
        new FolderMetadataManager.Builder()
723
            .auth(this.auth)
1 ✔
724
            .networkSession(this.networkSession)
1 ✔
725
            .build();
1 ✔
726
    this.folderClassifications =
1 ✔
727
        new FolderClassificationsManager.Builder()
728
            .auth(this.auth)
1 ✔
729
            .networkSession(this.networkSession)
1 ✔
730
            .build();
1 ✔
731
    this.trashedItems =
1 ✔
732
        new TrashedItemsManager.Builder()
733
            .auth(this.auth)
1 ✔
734
            .networkSession(this.networkSession)
1 ✔
735
            .build();
1 ✔
736
    this.folderWatermarks =
1 ✔
737
        new FolderWatermarksManager.Builder()
738
            .auth(this.auth)
1 ✔
739
            .networkSession(this.networkSession)
1 ✔
740
            .build();
1 ✔
741
    this.folderLocks =
1 ✔
742
        new FolderLocksManager.Builder()
743
            .auth(this.auth)
1 ✔
744
            .networkSession(this.networkSession)
1 ✔
745
            .build();
1 ✔
746
    this.metadataTemplates =
1 ✔
747
        new MetadataTemplatesManager.Builder()
748
            .auth(this.auth)
1 ✔
749
            .networkSession(this.networkSession)
1 ✔
750
            .build();
1 ✔
751
    this.classifications =
1 ✔
752
        new ClassificationsManager.Builder()
753
            .auth(this.auth)
1 ✔
754
            .networkSession(this.networkSession)
1 ✔
755
            .build();
1 ✔
756
    this.metadataCascadePolicies =
1 ✔
757
        new MetadataCascadePoliciesManager.Builder()
758
            .auth(this.auth)
1 ✔
759
            .networkSession(this.networkSession)
1 ✔
760
            .build();
1 ✔
761
    this.search =
1 ✔
762
        new SearchManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
763
    this.userCollaborations =
1 ✔
764
        new UserCollaborationsManager.Builder()
765
            .auth(this.auth)
1 ✔
766
            .networkSession(this.networkSession)
1 ✔
767
            .build();
1 ✔
768
    this.taskAssignments =
1 ✔
769
        new TaskAssignmentsManager.Builder()
770
            .auth(this.auth)
1 ✔
771
            .networkSession(this.networkSession)
1 ✔
772
            .build();
1 ✔
773
    this.sharedLinksFiles =
1 ✔
774
        new SharedLinksFilesManager.Builder()
775
            .auth(this.auth)
1 ✔
776
            .networkSession(this.networkSession)
1 ✔
777
            .build();
1 ✔
778
    this.sharedLinksFolders =
1 ✔
779
        new SharedLinksFoldersManager.Builder()
780
            .auth(this.auth)
1 ✔
781
            .networkSession(this.networkSession)
1 ✔
782
            .build();
1 ✔
783
    this.webLinks =
1 ✔
784
        new WebLinksManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
785
    this.trashedWebLinks =
1 ✔
786
        new TrashedWebLinksManager.Builder()
787
            .auth(this.auth)
1 ✔
788
            .networkSession(this.networkSession)
1 ✔
789
            .build();
1 ✔
790
    this.sharedLinksWebLinks =
1 ✔
791
        new SharedLinksWebLinksManager.Builder()
792
            .auth(this.auth)
1 ✔
793
            .networkSession(this.networkSession)
1 ✔
794
            .build();
1 ✔
795
    this.sharedLinksAppItems =
1 ✔
796
        new SharedLinksAppItemsManager.Builder()
797
            .auth(this.auth)
1 ✔
798
            .networkSession(this.networkSession)
1 ✔
799
            .build();
1 ✔
800
    this.users =
1 ✔
801
        new UsersManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
802
    this.sessionTermination =
1 ✔
803
        new SessionTerminationManager.Builder()
804
            .auth(this.auth)
1 ✔
805
            .networkSession(this.networkSession)
1 ✔
806
            .build();
1 ✔
807
    this.avatars =
1 ✔
808
        new AvatarsManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
809
    this.transfer =
1 ✔
810
        new TransferManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
811
    this.emailAliases =
1 ✔
812
        new EmailAliasesManager.Builder()
813
            .auth(this.auth)
1 ✔
814
            .networkSession(this.networkSession)
1 ✔
815
            .build();
1 ✔
816
    this.memberships =
1 ✔
817
        new MembershipsManager.Builder()
818
            .auth(this.auth)
1 ✔
819
            .networkSession(this.networkSession)
1 ✔
820
            .build();
1 ✔
821
    this.invites =
1 ✔
822
        new InvitesManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
823
    this.groups =
1 ✔
824
        new GroupsManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
825
    this.webhooks =
1 ✔
826
        new WebhooksManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
827
    this.events =
1 ✔
828
        new EventsManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
829
    this.collections =
1 ✔
830
        new CollectionsManager.Builder()
831
            .auth(this.auth)
1 ✔
832
            .networkSession(this.networkSession)
1 ✔
833
            .build();
1 ✔
834
    this.recentItems =
1 ✔
835
        new RecentItemsManager.Builder()
836
            .auth(this.auth)
1 ✔
837
            .networkSession(this.networkSession)
1 ✔
838
            .build();
1 ✔
839
    this.retentionPolicies =
1 ✔
840
        new RetentionPoliciesManager.Builder()
841
            .auth(this.auth)
1 ✔
842
            .networkSession(this.networkSession)
1 ✔
843
            .build();
1 ✔
844
    this.retentionPolicyAssignments =
1 ✔
845
        new RetentionPolicyAssignmentsManager.Builder()
846
            .auth(this.auth)
1 ✔
847
            .networkSession(this.networkSession)
1 ✔
848
            .build();
1 ✔
849
    this.legalHoldPolicies =
1 ✔
850
        new LegalHoldPoliciesManager.Builder()
851
            .auth(this.auth)
1 ✔
852
            .networkSession(this.networkSession)
1 ✔
853
            .build();
1 ✔
854
    this.legalHoldPolicyAssignments =
1 ✔
855
        new LegalHoldPolicyAssignmentsManager.Builder()
856
            .auth(this.auth)
1 ✔
857
            .networkSession(this.networkSession)
1 ✔
858
            .build();
1 ✔
859
    this.fileVersionRetentions =
1 ✔
860
        new FileVersionRetentionsManager.Builder()
861
            .auth(this.auth)
1 ✔
862
            .networkSession(this.networkSession)
1 ✔
863
            .build();
1 ✔
864
    this.fileVersionLegalHolds =
1 ✔
865
        new FileVersionLegalHoldsManager.Builder()
866
            .auth(this.auth)
1 ✔
867
            .networkSession(this.networkSession)
1 ✔
868
            .build();
1 ✔
869
    this.shieldInformationBarriers =
1 ✔
870
        new ShieldInformationBarriersManager.Builder()
871
            .auth(this.auth)
1 ✔
872
            .networkSession(this.networkSession)
1 ✔
873
            .build();
1 ✔
874
    this.shieldInformationBarrierReports =
1 ✔
875
        new ShieldInformationBarrierReportsManager.Builder()
876
            .auth(this.auth)
1 ✔
877
            .networkSession(this.networkSession)
1 ✔
878
            .build();
1 ✔
879
    this.shieldInformationBarrierSegments =
1 ✔
880
        new ShieldInformationBarrierSegmentsManager.Builder()
881
            .auth(this.auth)
1 ✔
882
            .networkSession(this.networkSession)
1 ✔
883
            .build();
1 ✔
884
    this.shieldInformationBarrierSegmentMembers =
1 ✔
885
        new ShieldInformationBarrierSegmentMembersManager.Builder()
886
            .auth(this.auth)
1 ✔
887
            .networkSession(this.networkSession)
1 ✔
888
            .build();
1 ✔
889
    this.shieldInformationBarrierSegmentRestrictions =
1 ✔
890
        new ShieldInformationBarrierSegmentRestrictionsManager.Builder()
891
            .auth(this.auth)
1 ✔
892
            .networkSession(this.networkSession)
1 ✔
893
            .build();
1 ✔
894
    this.devicePinners =
1 ✔
895
        new DevicePinnersManager.Builder()
896
            .auth(this.auth)
1 ✔
897
            .networkSession(this.networkSession)
1 ✔
898
            .build();
1 ✔
899
    this.termsOfServices =
1 ✔
900
        new TermsOfServicesManager.Builder()
901
            .auth(this.auth)
1 ✔
902
            .networkSession(this.networkSession)
1 ✔
903
            .build();
1 ✔
904
    this.termsOfServiceUserStatuses =
1 ✔
905
        new TermsOfServiceUserStatusesManager.Builder()
906
            .auth(this.auth)
1 ✔
907
            .networkSession(this.networkSession)
1 ✔
908
            .build();
1 ✔
909
    this.collaborationAllowlistEntries =
1 ✔
910
        new CollaborationAllowlistEntriesManager.Builder()
911
            .auth(this.auth)
1 ✔
912
            .networkSession(this.networkSession)
1 ✔
913
            .build();
1 ✔
914
    this.collaborationAllowlistExemptTargets =
1 ✔
915
        new CollaborationAllowlistExemptTargetsManager.Builder()
916
            .auth(this.auth)
1 ✔
917
            .networkSession(this.networkSession)
1 ✔
918
            .build();
1 ✔
919
    this.storagePolicies =
1 ✔
920
        new StoragePoliciesManager.Builder()
921
            .auth(this.auth)
1 ✔
922
            .networkSession(this.networkSession)
1 ✔
923
            .build();
1 ✔
924
    this.storagePolicyAssignments =
1 ✔
925
        new StoragePolicyAssignmentsManager.Builder()
926
            .auth(this.auth)
1 ✔
927
            .networkSession(this.networkSession)
1 ✔
928
            .build();
1 ✔
929
    this.zipDownloads =
1 ✔
930
        new ZipDownloadsManager.Builder()
931
            .auth(this.auth)
1 ✔
932
            .networkSession(this.networkSession)
1 ✔
933
            .build();
1 ✔
934
    this.signRequests =
1 ✔
935
        new SignRequestsManager.Builder()
936
            .auth(this.auth)
1 ✔
937
            .networkSession(this.networkSession)
1 ✔
938
            .build();
1 ✔
939
    this.workflows =
1 ✔
940
        new WorkflowsManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
941
    this.signTemplates =
1 ✔
942
        new SignTemplatesManager.Builder()
943
            .auth(this.auth)
1 ✔
944
            .networkSession(this.networkSession)
1 ✔
945
            .build();
1 ✔
946
    this.integrationMappings =
1 ✔
947
        new IntegrationMappingsManager.Builder()
948
            .auth(this.auth)
1 ✔
949
            .networkSession(this.networkSession)
1 ✔
950
            .build();
1 ✔
951
    this.ai = new AiManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
952
    this.aiStudio =
1 ✔
953
        new AiStudioManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
954
    this.metadataTaxonomies =
1 ✔
955
        new MetadataTaxonomiesManager.Builder()
956
            .auth(this.auth)
1 ✔
957
            .networkSession(this.networkSession)
1 ✔
958
            .build();
1 ✔
959
    this.docgenTemplate =
1 ✔
960
        new DocgenTemplateManager.Builder()
961
            .auth(this.auth)
1 ✔
962
            .networkSession(this.networkSession)
1 ✔
963
            .build();
1 ✔
964
    this.docgen =
1 ✔
965
        new DocgenManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
966
    this.enterpriseConfigurations =
1 ✔
967
        new EnterpriseConfigurationsManager.Builder()
968
            .auth(this.auth)
1 ✔
969
            .networkSession(this.networkSession)
1 ✔
970
            .build();
1 ✔
971
    this.hubs =
1 ✔
972
        new HubsManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
973
    this.hubCollaborations =
1 ✔
974
        new HubCollaborationsManager.Builder()
975
            .auth(this.auth)
1 ✔
976
            .networkSession(this.networkSession)
1 ✔
977
            .build();
1 ✔
978
    this.hubItems =
1 ✔
979
        new HubItemsManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
980
    this.hubDocument =
1 ✔
981
        new HubDocumentManager.Builder()
982
            .auth(this.auth)
1 ✔
983
            .networkSession(this.networkSession)
1 ✔
984
            .build();
1 ✔
985
    this.shieldLists =
1 ✔
986
        new ShieldListsManager.Builder()
987
            .auth(this.auth)
1 ✔
988
            .networkSession(this.networkSession)
1 ✔
989
            .build();
1 ✔
990
    this.archives =
1 ✔
991
        new ArchivesManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
992
    this.externalUsers =
1 ✔
993
        new ExternalUsersManager.Builder()
994
            .auth(this.auth)
1 ✔
995
            .networkSession(this.networkSession)
1 ✔
996
            .build();
1 ✔
997
    this.automateWorkflows =
1 ✔
998
        new AutomateWorkflowsManager.Builder()
999
            .auth(this.auth)
1 ✔
1000
            .networkSession(this.networkSession)
1 ✔
1001
            .build();
1 ✔
1002
    this.notes =
1 ✔
1003
        new NotesManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
1004
    this.documentSplit =
1 ✔
1005
        new DocumentSplitManager.Builder()
1006
            .auth(this.auth)
1 ✔
1007
            .networkSession(this.networkSession)
1 ✔
1008
            .build();
1 ✔
1009
    this.query =
1 ✔
1010
        new QueryManager.Builder().auth(this.auth).networkSession(this.networkSession).build();
1 ✔
1011
  }
1 ✔
1012

1013
  /**
1014
   * Make a custom http request using the client authentication and network session.
1015
   *
1016
   * @param fetchOptions Options to be passed to the fetch call
1017
   */
1018
  public FetchResponse makeRequest(FetchOptions fetchOptions) {
1019
    Authentication auth = (fetchOptions.getAuth() == null ? this.auth : fetchOptions.getAuth());
1 ✔
1020
    NetworkSession networkSession =
1 ✔
1021
        (fetchOptions.getNetworkSession() == null
1 ✔
1022
            ? this.networkSession
1023
            : fetchOptions.getNetworkSession());
1 ✔
1024
    FetchOptions enrichedFetchOptions =
1 ✔
1025
        new FetchOptions.Builder(fetchOptions.getUrl(), fetchOptions.getMethod())
1 ✔
1026
            .params(fetchOptions.getParams())
1 ✔
1027
            .headers(fetchOptions.getHeaders())
1 ✔
1028
            .data(fetchOptions.getData())
1 ✔
1029
            .fileStream(fetchOptions.getFileStream())
1 ✔
1030
            .multipartData(fetchOptions.getMultipartData())
1 ✔
1031
            .contentType(fetchOptions.getContentType())
1 ✔
1032
            .responseFormat(fetchOptions.getResponseFormat())
1 ✔
1033
            .auth(auth)
1 ✔
1034
            .networkSession(networkSession)
1 ✔
1035
            .followRedirects(fetchOptions.getFollowRedirects())
1 ✔
1036
            .build();
1 ✔
1037
    return networkSession.getNetworkClient().fetch(enrichedFetchOptions);
1 ✔
1038
  }
1039

1040
  /**
1041
   * Create a new client to impersonate user with the provided ID. All calls made with the new
1042
   * client will be made in context of the impersonated user, leaving the original client
1043
   * unmodified.
1044
   *
1045
   * @param userId ID of an user to impersonate
1046
   */
1047
  public BoxClient withAsUserHeader(String userId) {
1048
    return new BoxClient.Builder(this.auth)
1 ✔
1049
        .networkSession(
1 ✔
1050
            this.networkSession.withAdditionalHeaders(mapOf(entryOf("As-User", userId))))
1 ✔
1051
        .build();
1 ✔
1052
  }
1053

1054
  /**
1055
   * Create a new client with suppressed notifications. Calls made with the new client will not
1056
   * trigger email or webhook notifications
1057
   */
1058
  public BoxClient withSuppressedNotifications() {
1059
    return new BoxClient.Builder(this.auth)
1 ✔
1060
        .networkSession(
1 ✔
1061
            this.networkSession.withAdditionalHeaders(mapOf(entryOf("Box-Notifications", "off"))))
1 ✔
1062
        .build();
1 ✔
1063
  }
1064

1065
  /** Create a new client with a custom set of headers that will be included in every API call */
1066
  public BoxClient withExtraHeaders() {
UNCOV
1067
    return withExtraHeaders(mapOf());
×
1068
  }
1069

1070
  /**
1071
   * Create a new client with a custom set of headers that will be included in every API call
1072
   *
1073
   * @param extraHeaders Custom set of headers that will be included in every API call
1074
   */
1075
  public BoxClient withExtraHeaders(Map<String, String> extraHeaders) {
1076
    return new BoxClient.Builder(this.auth)
1 ✔
1077
        .networkSession(this.networkSession.withAdditionalHeaders(extraHeaders))
1 ✔
1078
        .build();
1 ✔
1079
  }
1080

1081
  /**
1082
   * Create a new client with a custom set of base urls that will be used for every API call
1083
   *
1084
   * @param baseUrls Custom set of base urls that will be used for every API call
1085
   */
1086
  public BoxClient withCustomBaseUrls(BaseUrls baseUrls) {
1087
    return new BoxClient.Builder(this.auth)
1 ✔
1088
        .networkSession(this.networkSession.withCustomBaseUrls(baseUrls))
1 ✔
1089
        .build();
1 ✔
1090
  }
1091

1092
  /**
1093
   * Create a new client with a custom proxy that will be used for every API call
1094
   *
1095
   * @param config The config parameter
1096
   */
1097
  public BoxClient withProxy(ProxyConfig config) {
UNCOV
1098
    return new BoxClient.Builder(this.auth)
×
UNCOV
1099
        .networkSession(this.networkSession.withProxy(config))
×
UNCOV
1100
        .build();
×
1101
  }
1102

1103
  /**
1104
   * Create a new client with custom timeouts that will be used for every API call
1105
   *
1106
   * @param config Timeout configuration.
1107
   */
1108
  public BoxClient withTimeouts(TimeoutConfig config) {
1109
    return new BoxClient.Builder(this.auth)
1 ✔
1110
        .networkSession(this.networkSession.withTimeoutConfig(config))
1 ✔
1111
        .build();
1 ✔
1112
  }
1113

1114
  /**
1115
   * Create a new client with a custom set of interceptors that will be used for every API call
1116
   *
1117
   * @param interceptors Custom set of interceptors that will be used for every API call
1118
   */
1119
  public BoxClient withInterceptors(List<Interceptor> interceptors) {
1120
    return new BoxClient.Builder(this.auth)
1 ✔
1121
        .networkSession(this.networkSession.withInterceptors(interceptors))
1 ✔
1122
        .build();
1 ✔
1123
  }
1124

1125
  public Authentication getAuth() {
UNCOV
1126
    return auth;
×
1127
  }
1128

1129
  public NetworkSession getNetworkSession() {
UNCOV
1130
    return networkSession;
×
1131
  }
1132

1133
  public AuthorizationManager getAuthorization() {
UNCOV
1134
    return authorization;
×
1135
  }
1136

1137
  public FilesManager getFiles() {
1138
    return files;
1 ✔
1139
  }
1140

1141
  public TrashedFilesManager getTrashedFiles() {
1142
    return trashedFiles;
1 ✔
1143
  }
1144

1145
  public AppItemAssociationsManager getAppItemAssociations() {
1146
    return appItemAssociations;
1 ✔
1147
  }
1148

1149
  public DownloadsManager getDownloads() {
1150
    return downloads;
1 ✔
1151
  }
1152

1153
  public UploadsManager getUploads() {
1154
    return uploads;
1 ✔
1155
  }
1156

1157
  public ChunkedUploadsManager getChunkedUploads() {
1158
    return chunkedUploads;
1 ✔
1159
  }
1160

1161
  public ListCollaborationsManager getListCollaborations() {
1162
    return listCollaborations;
1 ✔
1163
  }
1164

1165
  public CommentsManager getComments() {
1166
    return comments;
1 ✔
1167
  }
1168

1169
  public TasksManager getTasks() {
1170
    return tasks;
1 ✔
1171
  }
1172

1173
  public FileVersionsManager getFileVersions() {
1174
    return fileVersions;
1 ✔
1175
  }
1176

1177
  public FileMetadataManager getFileMetadata() {
1178
    return fileMetadata;
1 ✔
1179
  }
1180

1181
  public FileClassificationsManager getFileClassifications() {
1182
    return fileClassifications;
1 ✔
1183
  }
1184

1185
  public SkillsManager getSkills() {
1186
    return skills;
1 ✔
1187
  }
1188

1189
  public FileWatermarksManager getFileWatermarks() {
1190
    return fileWatermarks;
1 ✔
1191
  }
1192

1193
  public FileRequestsManager getFileRequests() {
1194
    return fileRequests;
1 ✔
1195
  }
1196

1197
  public FoldersManager getFolders() {
1198
    return folders;
1 ✔
1199
  }
1200

1201
  public TrashedFoldersManager getTrashedFolders() {
1202
    return trashedFolders;
1 ✔
1203
  }
1204

1205
  public FolderMetadataManager getFolderMetadata() {
1206
    return folderMetadata;
1 ✔
1207
  }
1208

1209
  public FolderClassificationsManager getFolderClassifications() {
1210
    return folderClassifications;
1 ✔
1211
  }
1212

1213
  public TrashedItemsManager getTrashedItems() {
1214
    return trashedItems;
1 ✔
1215
  }
1216

1217
  public FolderWatermarksManager getFolderWatermarks() {
1218
    return folderWatermarks;
1 ✔
1219
  }
1220

1221
  public FolderLocksManager getFolderLocks() {
1222
    return folderLocks;
1 ✔
1223
  }
1224

1225
  public MetadataTemplatesManager getMetadataTemplates() {
1226
    return metadataTemplates;
1 ✔
1227
  }
1228

1229
  public ClassificationsManager getClassifications() {
1230
    return classifications;
1 ✔
1231
  }
1232

1233
  public MetadataCascadePoliciesManager getMetadataCascadePolicies() {
1234
    return metadataCascadePolicies;
1 ✔
1235
  }
1236

1237
  public SearchManager getSearch() {
1238
    return search;
1 ✔
1239
  }
1240

1241
  public UserCollaborationsManager getUserCollaborations() {
1242
    return userCollaborations;
1 ✔
1243
  }
1244

1245
  public TaskAssignmentsManager getTaskAssignments() {
1246
    return taskAssignments;
1 ✔
1247
  }
1248

1249
  public SharedLinksFilesManager getSharedLinksFiles() {
1250
    return sharedLinksFiles;
1 ✔
1251
  }
1252

1253
  public SharedLinksFoldersManager getSharedLinksFolders() {
1254
    return sharedLinksFolders;
1 ✔
1255
  }
1256

1257
  public WebLinksManager getWebLinks() {
1258
    return webLinks;
1 ✔
1259
  }
1260

1261
  public TrashedWebLinksManager getTrashedWebLinks() {
1262
    return trashedWebLinks;
1 ✔
1263
  }
1264

1265
  public SharedLinksWebLinksManager getSharedLinksWebLinks() {
1266
    return sharedLinksWebLinks;
1 ✔
1267
  }
1268

1269
  public SharedLinksAppItemsManager getSharedLinksAppItems() {
1270
    return sharedLinksAppItems;
1 ✔
1271
  }
1272

1273
  public UsersManager getUsers() {
1274
    return users;
1 ✔
1275
  }
1276

1277
  public SessionTerminationManager getSessionTermination() {
1278
    return sessionTermination;
1 ✔
1279
  }
1280

1281
  public AvatarsManager getAvatars() {
1282
    return avatars;
1 ✔
1283
  }
1284

1285
  public TransferManager getTransfer() {
UNCOV
1286
    return transfer;
×
1287
  }
1288

1289
  public EmailAliasesManager getEmailAliases() {
1290
    return emailAliases;
1 ✔
1291
  }
1292

1293
  public MembershipsManager getMemberships() {
1294
    return memberships;
1 ✔
1295
  }
1296

1297
  public InvitesManager getInvites() {
1298
    return invites;
1 ✔
1299
  }
1300

1301
  public GroupsManager getGroups() {
1302
    return groups;
1 ✔
1303
  }
1304

1305
  public WebhooksManager getWebhooks() {
1306
    return webhooks;
1 ✔
1307
  }
1308

1309
  public EventsManager getEvents() {
1310
    return events;
1 ✔
1311
  }
1312

1313
  public CollectionsManager getCollections() {
UNCOV
1314
    return collections;
×
1315
  }
1316

1317
  public RecentItemsManager getRecentItems() {
1318
    return recentItems;
1 ✔
1319
  }
1320

1321
  public RetentionPoliciesManager getRetentionPolicies() {
1322
    return retentionPolicies;
1 ✔
1323
  }
1324

1325
  public RetentionPolicyAssignmentsManager getRetentionPolicyAssignments() {
1326
    return retentionPolicyAssignments;
1 ✔
1327
  }
1328

1329
  public LegalHoldPoliciesManager getLegalHoldPolicies() {
1330
    return legalHoldPolicies;
1 ✔
1331
  }
1332

1333
  public LegalHoldPolicyAssignmentsManager getLegalHoldPolicyAssignments() {
1334
    return legalHoldPolicyAssignments;
1 ✔
1335
  }
1336

1337
  public FileVersionRetentionsManager getFileVersionRetentions() {
1338
    return fileVersionRetentions;
1 ✔
1339
  }
1340

1341
  public FileVersionLegalHoldsManager getFileVersionLegalHolds() {
1342
    return fileVersionLegalHolds;
1 ✔
1343
  }
1344

1345
  public ShieldInformationBarriersManager getShieldInformationBarriers() {
1346
    return shieldInformationBarriers;
1 ✔
1347
  }
1348

1349
  public ShieldInformationBarrierReportsManager getShieldInformationBarrierReports() {
1350
    return shieldInformationBarrierReports;
1 ✔
1351
  }
1352

1353
  public ShieldInformationBarrierSegmentsManager getShieldInformationBarrierSegments() {
1354
    return shieldInformationBarrierSegments;
1 ✔
1355
  }
1356

1357
  public ShieldInformationBarrierSegmentMembersManager getShieldInformationBarrierSegmentMembers() {
1358
    return shieldInformationBarrierSegmentMembers;
1 ✔
1359
  }
1360

1361
  public ShieldInformationBarrierSegmentRestrictionsManager
1362
      getShieldInformationBarrierSegmentRestrictions() {
1363
    return shieldInformationBarrierSegmentRestrictions;
1 ✔
1364
  }
1365

1366
  public DevicePinnersManager getDevicePinners() {
1367
    return devicePinners;
1 ✔
1368
  }
1369

1370
  public TermsOfServicesManager getTermsOfServices() {
1371
    return termsOfServices;
1 ✔
1372
  }
1373

1374
  public TermsOfServiceUserStatusesManager getTermsOfServiceUserStatuses() {
1375
    return termsOfServiceUserStatuses;
1 ✔
1376
  }
1377

1378
  public CollaborationAllowlistEntriesManager getCollaborationAllowlistEntries() {
1379
    return collaborationAllowlistEntries;
1 ✔
1380
  }
1381

1382
  public CollaborationAllowlistExemptTargetsManager getCollaborationAllowlistExemptTargets() {
1383
    return collaborationAllowlistExemptTargets;
1 ✔
1384
  }
1385

1386
  public StoragePoliciesManager getStoragePolicies() {
1387
    return storagePolicies;
1 ✔
1388
  }
1389

1390
  public StoragePolicyAssignmentsManager getStoragePolicyAssignments() {
1391
    return storagePolicyAssignments;
1 ✔
1392
  }
1393

1394
  public ZipDownloadsManager getZipDownloads() {
1395
    return zipDownloads;
1 ✔
1396
  }
1397

1398
  public SignRequestsManager getSignRequests() {
1399
    return signRequests;
1 ✔
1400
  }
1401

1402
  public WorkflowsManager getWorkflows() {
1403
    return workflows;
1 ✔
1404
  }
1405

1406
  public SignTemplatesManager getSignTemplates() {
1407
    return signTemplates;
1 ✔
1408
  }
1409

1410
  public IntegrationMappingsManager getIntegrationMappings() {
UNCOV
1411
    return integrationMappings;
×
1412
  }
1413

1414
  public AiManager getAi() {
1415
    return ai;
1 ✔
1416
  }
1417

1418
  public AiStudioManager getAiStudio() {
1419
    return aiStudio;
1 ✔
1420
  }
1421

1422
  public MetadataTaxonomiesManager getMetadataTaxonomies() {
1423
    return metadataTaxonomies;
1 ✔
1424
  }
1425

1426
  public DocgenTemplateManager getDocgenTemplate() {
1427
    return docgenTemplate;
1 ✔
1428
  }
1429

1430
  public DocgenManager getDocgen() {
1431
    return docgen;
1 ✔
1432
  }
1433

1434
  public EnterpriseConfigurationsManager getEnterpriseConfigurations() {
1435
    return enterpriseConfigurations;
1 ✔
1436
  }
1437

1438
  public HubsManager getHubs() {
1439
    return hubs;
1 ✔
1440
  }
1441

1442
  public HubCollaborationsManager getHubCollaborations() {
UNCOV
1443
    return hubCollaborations;
×
1444
  }
1445

1446
  public HubItemsManager getHubItems() {
UNCOV
1447
    return hubItems;
×
1448
  }
1449

1450
  public HubDocumentManager getHubDocument() {
1451
    return hubDocument;
1 ✔
1452
  }
1453

1454
  public ShieldListsManager getShieldLists() {
1455
    return shieldLists;
1 ✔
1456
  }
1457

1458
  public ArchivesManager getArchives() {
1459
    return archives;
1 ✔
1460
  }
1461

1462
  public ExternalUsersManager getExternalUsers() {
1463
    return externalUsers;
1 ✔
1464
  }
1465

1466
  public AutomateWorkflowsManager getAutomateWorkflows() {
1467
    return automateWorkflows;
1 ✔
1468
  }
1469

1470
  public NotesManager getNotes() {
1471
    return notes;
1 ✔
1472
  }
1473

1474
  public DocumentSplitManager getDocumentSplit() {
NEW
1475
    return documentSplit;
×
1476
  }
1477

1478
  public QueryManager getQuery() {
1479
    return query;
1 ✔
1480
  }
1481

1482
  public static class Builder {
1483

1484
    protected final Authentication auth;
1485

1486
    protected NetworkSession networkSession;
1487

1488
    public Builder(Authentication auth) {
1 ✔
1489
      this.auth = auth;
1 ✔
1490
    }
1 ✔
1491

1492
    public Builder networkSession(NetworkSession networkSession) {
1493
      this.networkSession = networkSession;
1 ✔
1494
      return this;
1 ✔
1495
    }
1496

1497
    public BoxClient build() {
1498
      if (this.networkSession == null) {
1 ✔
UNCOV
1499
        this.networkSession = new NetworkSession.Builder().baseUrls(new BaseUrls()).build();
×
1500
      }
1501
      return new BoxClient(this);
1 ✔
1502
    }
1503
  }
1504
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc