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

box / box-java-sdk-gen / #295

24 Jun 2025 01:20PM UTC coverage: 35.661% (+0.03%) from 35.632%
#295

Pull #347

github

web-flow
Merge 2c100d09c into d8480ee6c
Pull Request #347: feat: Add Webhook Validation In Java (box/box-codegen#745)

68 of 82 new or added lines in 2 files covered. (82.93%)

11794 existing lines in 627 files now uncovered.

16937 of 47495 relevant lines covered (35.66%)

0.36 hits per line

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

5.19
/src/main/java/com/box/sdkgen/schemas/folderfull/FolderFull.java
1
package com.box.sdkgen.schemas.folderfull;
2

3
import com.box.sdkgen.schemas.folder.Folder;
4
import com.box.sdkgen.schemas.folder.FolderFolderUploadEmailField;
5
import com.box.sdkgen.schemas.folder.FolderItemStatusField;
6
import com.box.sdkgen.schemas.folder.FolderPathCollectionField;
7
import com.box.sdkgen.schemas.folder.FolderSharedLinkField;
8
import com.box.sdkgen.schemas.folderbase.FolderBaseTypeField;
9
import com.box.sdkgen.schemas.foldermini.FolderMini;
10
import com.box.sdkgen.schemas.items.Items;
11
import com.box.sdkgen.schemas.usermini.UserMini;
12
import com.box.sdkgen.serialization.json.EnumWrapper;
13
import com.box.sdkgen.serialization.json.Valuable;
14
import com.fasterxml.jackson.annotation.JsonFilter;
15
import com.fasterxml.jackson.annotation.JsonProperty;
16
import com.fasterxml.jackson.core.JsonGenerator;
17
import com.fasterxml.jackson.core.JsonParser;
18
import com.fasterxml.jackson.databind.DeserializationContext;
19
import com.fasterxml.jackson.databind.JsonDeserializer;
20
import com.fasterxml.jackson.databind.JsonNode;
21
import com.fasterxml.jackson.databind.JsonSerializer;
22
import com.fasterxml.jackson.databind.SerializerProvider;
23
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
24
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
25
import java.io.IOException;
26
import java.util.ArrayList;
27
import java.util.Date;
28
import java.util.List;
29
import java.util.Objects;
30

31
@JsonFilter("nullablePropertyFilter")
32
public class FolderFull extends Folder {
33

34
  @JsonDeserialize(using = FolderFullSyncStateField.FolderFullSyncStateFieldDeserializer.class)
35
  @JsonSerialize(using = FolderFullSyncStateField.FolderFullSyncStateFieldSerializer.class)
36
  @JsonProperty("sync_state")
37
  protected EnumWrapper<FolderFullSyncStateField> syncState;
38

39
  @JsonProperty("has_collaborations")
40
  protected Boolean hasCollaborations;
41

42
  protected FolderFullPermissionsField permissions;
43

44
  protected List<String> tags;
45

46
  @JsonProperty("can_non_owners_invite")
47
  protected Boolean canNonOwnersInvite;
48

49
  @JsonProperty("is_externally_owned")
50
  protected Boolean isExternallyOwned;
51

52
  protected FolderFullMetadataField metadata;
53

54
  @JsonProperty("is_collaboration_restricted_to_enterprise")
55
  protected Boolean isCollaborationRestrictedToEnterprise;
56

57
  @JsonDeserialize(using = AllowedSharedLinkAccessLevelsDeserializer.class)
58
  @JsonSerialize(using = AllowedSharedLinkAccessLevelsSerializer.class)
59
  @JsonProperty("allowed_shared_link_access_levels")
60
  protected List<EnumWrapper<FolderFullAllowedSharedLinkAccessLevelsField>>
61
      allowedSharedLinkAccessLevels;
62

63
  @JsonDeserialize(using = AllowedInviteeRolesDeserializer.class)
64
  @JsonSerialize(using = AllowedInviteeRolesSerializer.class)
65
  @JsonProperty("allowed_invitee_roles")
66
  protected List<EnumWrapper<FolderFullAllowedInviteeRolesField>> allowedInviteeRoles;
67

68
  @JsonProperty("watermark_info")
69
  protected FolderFullWatermarkInfoField watermarkInfo;
70

71
  @JsonProperty("is_accessible_via_shared_link")
72
  protected Boolean isAccessibleViaSharedLink;
73

74
  @JsonProperty("can_non_owners_view_collaborators")
75
  protected Boolean canNonOwnersViewCollaborators;
76

77
  protected FolderFullClassificationField classification;
78

79
  @JsonProperty("is_associated_with_app_item")
80
  protected Boolean isAssociatedWithAppItem;
81

82
  public FolderFull(@JsonProperty("id") String id) {
83
    super(id);
1✔
84
  }
1✔
85

86
  protected FolderFull(Builder builder) {
87
    super(builder);
×
88
    this.syncState = builder.syncState;
×
89
    this.hasCollaborations = builder.hasCollaborations;
×
90
    this.permissions = builder.permissions;
×
91
    this.tags = builder.tags;
×
92
    this.canNonOwnersInvite = builder.canNonOwnersInvite;
×
93
    this.isExternallyOwned = builder.isExternallyOwned;
×
94
    this.metadata = builder.metadata;
×
95
    this.isCollaborationRestrictedToEnterprise = builder.isCollaborationRestrictedToEnterprise;
×
96
    this.allowedSharedLinkAccessLevels = builder.allowedSharedLinkAccessLevels;
×
97
    this.allowedInviteeRoles = builder.allowedInviteeRoles;
×
98
    this.watermarkInfo = builder.watermarkInfo;
×
99
    this.isAccessibleViaSharedLink = builder.isAccessibleViaSharedLink;
×
100
    this.canNonOwnersViewCollaborators = builder.canNonOwnersViewCollaborators;
×
101
    this.classification = builder.classification;
×
UNCOV
102
    this.isAssociatedWithAppItem = builder.isAssociatedWithAppItem;
×
UNCOV
103
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
104
  }
×
105

106
  public EnumWrapper<FolderFullSyncStateField> getSyncState() {
UNCOV
107
    return syncState;
×
108
  }
109

110
  public Boolean getHasCollaborations() {
111
    return hasCollaborations;
1✔
112
  }
113

114
  public FolderFullPermissionsField getPermissions() {
UNCOV
115
    return permissions;
×
116
  }
117

118
  public List<String> getTags() {
119
    return tags;
1✔
120
  }
121

122
  public Boolean getCanNonOwnersInvite() {
UNCOV
123
    return canNonOwnersInvite;
×
124
  }
125

126
  public Boolean getIsExternallyOwned() {
UNCOV
127
    return isExternallyOwned;
×
128
  }
129

130
  public FolderFullMetadataField getMetadata() {
UNCOV
131
    return metadata;
×
132
  }
133

134
  public Boolean getIsCollaborationRestrictedToEnterprise() {
UNCOV
135
    return isCollaborationRestrictedToEnterprise;
×
136
  }
137

138
  public List<EnumWrapper<FolderFullAllowedSharedLinkAccessLevelsField>>
139
      getAllowedSharedLinkAccessLevels() {
UNCOV
140
    return allowedSharedLinkAccessLevels;
×
141
  }
142

143
  public List<EnumWrapper<FolderFullAllowedInviteeRolesField>> getAllowedInviteeRoles() {
UNCOV
144
    return allowedInviteeRoles;
×
145
  }
146

147
  public FolderFullWatermarkInfoField getWatermarkInfo() {
UNCOV
148
    return watermarkInfo;
×
149
  }
150

151
  public Boolean getIsAccessibleViaSharedLink() {
UNCOV
152
    return isAccessibleViaSharedLink;
×
153
  }
154

155
  public Boolean getCanNonOwnersViewCollaborators() {
UNCOV
156
    return canNonOwnersViewCollaborators;
×
157
  }
158

159
  public FolderFullClassificationField getClassification() {
UNCOV
160
    return classification;
×
161
  }
162

163
  public Boolean getIsAssociatedWithAppItem() {
164
    return isAssociatedWithAppItem;
1✔
165
  }
166

167
  @Override
168
  public boolean equals(Object o) {
169
    if (this == o) {
×
170
      return true;
×
171
    }
172
    if (o == null || getClass() != o.getClass()) {
×
173
      return false;
×
174
    }
175
    FolderFull casted = (FolderFull) o;
×
176
    return Objects.equals(id, casted.id)
×
177
        && Objects.equals(etag, casted.etag)
×
178
        && Objects.equals(type, casted.type)
×
179
        && Objects.equals(sequenceId, casted.sequenceId)
×
180
        && Objects.equals(name, casted.name)
×
181
        && Objects.equals(createdAt, casted.createdAt)
×
182
        && Objects.equals(modifiedAt, casted.modifiedAt)
×
183
        && Objects.equals(description, casted.description)
×
184
        && Objects.equals(size, casted.size)
×
185
        && Objects.equals(pathCollection, casted.pathCollection)
×
186
        && Objects.equals(createdBy, casted.createdBy)
×
187
        && Objects.equals(modifiedBy, casted.modifiedBy)
×
188
        && Objects.equals(trashedAt, casted.trashedAt)
×
189
        && Objects.equals(purgedAt, casted.purgedAt)
×
190
        && Objects.equals(contentCreatedAt, casted.contentCreatedAt)
×
191
        && Objects.equals(contentModifiedAt, casted.contentModifiedAt)
×
192
        && Objects.equals(ownedBy, casted.ownedBy)
×
193
        && Objects.equals(sharedLink, casted.sharedLink)
×
194
        && Objects.equals(folderUploadEmail, casted.folderUploadEmail)
×
195
        && Objects.equals(parent, casted.parent)
×
196
        && Objects.equals(itemStatus, casted.itemStatus)
×
197
        && Objects.equals(itemCollection, casted.itemCollection)
×
198
        && Objects.equals(syncState, casted.syncState)
×
199
        && Objects.equals(hasCollaborations, casted.hasCollaborations)
×
200
        && Objects.equals(permissions, casted.permissions)
×
201
        && Objects.equals(tags, casted.tags)
×
202
        && Objects.equals(canNonOwnersInvite, casted.canNonOwnersInvite)
×
UNCOV
203
        && Objects.equals(isExternallyOwned, casted.isExternallyOwned)
×
204
        && Objects.equals(metadata, casted.metadata)
×
205
        && Objects.equals(
×
206
            isCollaborationRestrictedToEnterprise, casted.isCollaborationRestrictedToEnterprise)
207
        && Objects.equals(allowedSharedLinkAccessLevels, casted.allowedSharedLinkAccessLevels)
×
208
        && Objects.equals(allowedInviteeRoles, casted.allowedInviteeRoles)
×
209
        && Objects.equals(watermarkInfo, casted.watermarkInfo)
×
210
        && Objects.equals(isAccessibleViaSharedLink, casted.isAccessibleViaSharedLink)
×
UNCOV
211
        && Objects.equals(canNonOwnersViewCollaborators, casted.canNonOwnersViewCollaborators)
×
UNCOV
212
        && Objects.equals(classification, casted.classification)
×
UNCOV
213
        && Objects.equals(isAssociatedWithAppItem, casted.isAssociatedWithAppItem);
×
214
  }
215

216
  @Override
217
  public int hashCode() {
UNCOV
218
    return Objects.hash(
×
219
        id,
220
        etag,
221
        type,
222
        sequenceId,
223
        name,
224
        createdAt,
225
        modifiedAt,
226
        description,
227
        size,
228
        pathCollection,
229
        createdBy,
230
        modifiedBy,
231
        trashedAt,
232
        purgedAt,
233
        contentCreatedAt,
234
        contentModifiedAt,
235
        ownedBy,
236
        sharedLink,
237
        folderUploadEmail,
238
        parent,
239
        itemStatus,
240
        itemCollection,
241
        syncState,
242
        hasCollaborations,
243
        permissions,
244
        tags,
245
        canNonOwnersInvite,
246
        isExternallyOwned,
247
        metadata,
248
        isCollaborationRestrictedToEnterprise,
249
        allowedSharedLinkAccessLevels,
250
        allowedInviteeRoles,
251
        watermarkInfo,
252
        isAccessibleViaSharedLink,
253
        canNonOwnersViewCollaborators,
254
        classification,
255
        isAssociatedWithAppItem);
256
  }
257

258
  @Override
259
  public String toString() {
UNCOV
260
    return "FolderFull{"
×
261
        + "id='"
262
        + id
263
        + '\''
264
        + ", "
265
        + "etag='"
266
        + etag
267
        + '\''
268
        + ", "
269
        + "type='"
270
        + type
271
        + '\''
272
        + ", "
273
        + "sequenceId='"
274
        + sequenceId
275
        + '\''
276
        + ", "
277
        + "name='"
278
        + name
279
        + '\''
280
        + ", "
281
        + "createdAt='"
282
        + createdAt
283
        + '\''
284
        + ", "
285
        + "modifiedAt='"
286
        + modifiedAt
287
        + '\''
288
        + ", "
289
        + "description='"
290
        + description
291
        + '\''
292
        + ", "
293
        + "size='"
294
        + size
295
        + '\''
296
        + ", "
297
        + "pathCollection='"
298
        + pathCollection
299
        + '\''
300
        + ", "
301
        + "createdBy='"
302
        + createdBy
303
        + '\''
304
        + ", "
305
        + "modifiedBy='"
306
        + modifiedBy
307
        + '\''
308
        + ", "
309
        + "trashedAt='"
310
        + trashedAt
311
        + '\''
312
        + ", "
313
        + "purgedAt='"
314
        + purgedAt
315
        + '\''
316
        + ", "
317
        + "contentCreatedAt='"
318
        + contentCreatedAt
319
        + '\''
320
        + ", "
321
        + "contentModifiedAt='"
322
        + contentModifiedAt
323
        + '\''
324
        + ", "
325
        + "ownedBy='"
326
        + ownedBy
327
        + '\''
328
        + ", "
329
        + "sharedLink='"
330
        + sharedLink
331
        + '\''
332
        + ", "
333
        + "folderUploadEmail='"
334
        + folderUploadEmail
335
        + '\''
336
        + ", "
337
        + "parent='"
338
        + parent
339
        + '\''
340
        + ", "
341
        + "itemStatus='"
342
        + itemStatus
343
        + '\''
344
        + ", "
345
        + "itemCollection='"
346
        + itemCollection
347
        + '\''
348
        + ", "
349
        + "syncState='"
350
        + syncState
351
        + '\''
352
        + ", "
353
        + "hasCollaborations='"
354
        + hasCollaborations
355
        + '\''
356
        + ", "
357
        + "permissions='"
358
        + permissions
359
        + '\''
360
        + ", "
361
        + "tags='"
362
        + tags
363
        + '\''
364
        + ", "
365
        + "canNonOwnersInvite='"
366
        + canNonOwnersInvite
367
        + '\''
368
        + ", "
369
        + "isExternallyOwned='"
370
        + isExternallyOwned
371
        + '\''
372
        + ", "
373
        + "metadata='"
374
        + metadata
375
        + '\''
376
        + ", "
377
        + "isCollaborationRestrictedToEnterprise='"
378
        + isCollaborationRestrictedToEnterprise
379
        + '\''
380
        + ", "
381
        + "allowedSharedLinkAccessLevels='"
382
        + allowedSharedLinkAccessLevels
383
        + '\''
384
        + ", "
385
        + "allowedInviteeRoles='"
386
        + allowedInviteeRoles
387
        + '\''
388
        + ", "
389
        + "watermarkInfo='"
390
        + watermarkInfo
391
        + '\''
392
        + ", "
393
        + "isAccessibleViaSharedLink='"
394
        + isAccessibleViaSharedLink
395
        + '\''
396
        + ", "
397
        + "canNonOwnersViewCollaborators='"
398
        + canNonOwnersViewCollaborators
399
        + '\''
400
        + ", "
401
        + "classification='"
402
        + classification
403
        + '\''
404
        + ", "
405
        + "isAssociatedWithAppItem='"
406
        + isAssociatedWithAppItem
407
        + '\''
408
        + "}";
409
  }
410

411
  public static class Builder extends Folder.Builder {
412

413
    protected EnumWrapper<FolderFullSyncStateField> syncState;
414

415
    protected Boolean hasCollaborations;
416

417
    protected FolderFullPermissionsField permissions;
418

419
    protected List<String> tags;
420

421
    protected Boolean canNonOwnersInvite;
422

423
    protected Boolean isExternallyOwned;
424

425
    protected FolderFullMetadataField metadata;
426

427
    protected Boolean isCollaborationRestrictedToEnterprise;
428

429
    protected List<EnumWrapper<FolderFullAllowedSharedLinkAccessLevelsField>>
430
        allowedSharedLinkAccessLevels;
431

432
    protected List<EnumWrapper<FolderFullAllowedInviteeRolesField>> allowedInviteeRoles;
433

434
    protected FolderFullWatermarkInfoField watermarkInfo;
435

436
    protected Boolean isAccessibleViaSharedLink;
437

438
    protected Boolean canNonOwnersViewCollaborators;
439

440
    protected FolderFullClassificationField classification;
441

442
    protected Boolean isAssociatedWithAppItem;
443

444
    public Builder(String id) {
UNCOV
445
      super(id);
×
446
    }
×
447

448
    public Builder syncState(FolderFullSyncStateField syncState) {
UNCOV
449
      this.syncState = new EnumWrapper<FolderFullSyncStateField>(syncState);
×
UNCOV
450
      return this;
×
451
    }
452

453
    public Builder syncState(EnumWrapper<FolderFullSyncStateField> syncState) {
UNCOV
454
      this.syncState = syncState;
×
UNCOV
455
      return this;
×
456
    }
457

458
    public Builder hasCollaborations(Boolean hasCollaborations) {
UNCOV
459
      this.hasCollaborations = hasCollaborations;
×
UNCOV
460
      return this;
×
461
    }
462

463
    public Builder permissions(FolderFullPermissionsField permissions) {
UNCOV
464
      this.permissions = permissions;
×
UNCOV
465
      return this;
×
466
    }
467

468
    public Builder tags(List<String> tags) {
UNCOV
469
      this.tags = tags;
×
UNCOV
470
      return this;
×
471
    }
472

473
    public Builder canNonOwnersInvite(Boolean canNonOwnersInvite) {
UNCOV
474
      this.canNonOwnersInvite = canNonOwnersInvite;
×
UNCOV
475
      return this;
×
476
    }
477

478
    public Builder isExternallyOwned(Boolean isExternallyOwned) {
UNCOV
479
      this.isExternallyOwned = isExternallyOwned;
×
UNCOV
480
      return this;
×
481
    }
482

483
    public Builder metadata(FolderFullMetadataField metadata) {
UNCOV
484
      this.metadata = metadata;
×
UNCOV
485
      return this;
×
486
    }
487

488
    public Builder isCollaborationRestrictedToEnterprise(
489
        Boolean isCollaborationRestrictedToEnterprise) {
UNCOV
490
      this.isCollaborationRestrictedToEnterprise = isCollaborationRestrictedToEnterprise;
×
UNCOV
491
      return this;
×
492
    }
493

494
    public Builder allowedSharedLinkAccessLevels(
495
        List<? extends Valuable> allowedSharedLinkAccessLevels) {
496
      this.allowedSharedLinkAccessLevels =
×
UNCOV
497
          EnumWrapper.wrapValuableEnumList(
×
498
              allowedSharedLinkAccessLevels, FolderFullAllowedSharedLinkAccessLevelsField.class);
UNCOV
499
      return this;
×
500
    }
501

502
    public Builder allowedInviteeRoles(List<? extends Valuable> allowedInviteeRoles) {
503
      this.allowedInviteeRoles =
×
UNCOV
504
          EnumWrapper.wrapValuableEnumList(
×
505
              allowedInviteeRoles, FolderFullAllowedInviteeRolesField.class);
UNCOV
506
      return this;
×
507
    }
508

509
    public Builder watermarkInfo(FolderFullWatermarkInfoField watermarkInfo) {
UNCOV
510
      this.watermarkInfo = watermarkInfo;
×
UNCOV
511
      return this;
×
512
    }
513

514
    public Builder isAccessibleViaSharedLink(Boolean isAccessibleViaSharedLink) {
UNCOV
515
      this.isAccessibleViaSharedLink = isAccessibleViaSharedLink;
×
UNCOV
516
      return this;
×
517
    }
518

519
    public Builder canNonOwnersViewCollaborators(Boolean canNonOwnersViewCollaborators) {
UNCOV
520
      this.canNonOwnersViewCollaborators = canNonOwnersViewCollaborators;
×
UNCOV
521
      return this;
×
522
    }
523

524
    public Builder classification(FolderFullClassificationField classification) {
UNCOV
525
      this.classification = classification;
×
UNCOV
526
      return this;
×
527
    }
528

529
    public Builder isAssociatedWithAppItem(Boolean isAssociatedWithAppItem) {
UNCOV
530
      this.isAssociatedWithAppItem = isAssociatedWithAppItem;
×
UNCOV
531
      return this;
×
532
    }
533

534
    @Override
535
    public Builder etag(String etag) {
UNCOV
536
      this.etag = etag;
×
UNCOV
537
      this.markNullableFieldAsSet("etag");
×
UNCOV
538
      return this;
×
539
    }
540

541
    @Override
542
    public Builder type(FolderBaseTypeField type) {
UNCOV
543
      this.type = new EnumWrapper<FolderBaseTypeField>(type);
×
UNCOV
544
      return this;
×
545
    }
546

547
    @Override
548
    public Builder type(EnumWrapper<FolderBaseTypeField> type) {
UNCOV
549
      this.type = type;
×
UNCOV
550
      return this;
×
551
    }
552

553
    @Override
554
    public Builder sequenceId(String sequenceId) {
UNCOV
555
      this.sequenceId = sequenceId;
×
UNCOV
556
      return this;
×
557
    }
558

559
    @Override
560
    public Builder name(String name) {
UNCOV
561
      this.name = name;
×
UNCOV
562
      return this;
×
563
    }
564

565
    @Override
566
    public Builder createdAt(Date createdAt) {
UNCOV
567
      this.createdAt = createdAt;
×
UNCOV
568
      this.markNullableFieldAsSet("created_at");
×
569
      return this;
×
570
    }
571

572
    @Override
573
    public Builder modifiedAt(Date modifiedAt) {
UNCOV
574
      this.modifiedAt = modifiedAt;
×
575
      this.markNullableFieldAsSet("modified_at");
×
576
      return this;
×
577
    }
578

579
    @Override
580
    public Builder description(String description) {
581
      this.description = description;
×
582
      return this;
×
583
    }
584

585
    @Override
586
    public Builder size(Long size) {
587
      this.size = size;
×
588
      return this;
×
589
    }
590

591
    @Override
592
    public Builder pathCollection(FolderPathCollectionField pathCollection) {
593
      this.pathCollection = pathCollection;
×
594
      return this;
×
595
    }
596

597
    @Override
598
    public Builder createdBy(UserMini createdBy) {
599
      this.createdBy = createdBy;
×
600
      return this;
×
601
    }
602

603
    @Override
604
    public Builder modifiedBy(UserMini modifiedBy) {
605
      this.modifiedBy = modifiedBy;
×
606
      return this;
×
607
    }
608

609
    @Override
610
    public Builder trashedAt(Date trashedAt) {
611
      this.trashedAt = trashedAt;
×
612
      this.markNullableFieldAsSet("trashed_at");
×
UNCOV
613
      return this;
×
614
    }
615

616
    @Override
617
    public Builder purgedAt(Date purgedAt) {
618
      this.purgedAt = purgedAt;
×
UNCOV
619
      this.markNullableFieldAsSet("purged_at");
×
UNCOV
620
      return this;
×
621
    }
622

623
    @Override
624
    public Builder contentCreatedAt(Date contentCreatedAt) {
UNCOV
625
      this.contentCreatedAt = contentCreatedAt;
×
UNCOV
626
      this.markNullableFieldAsSet("content_created_at");
×
UNCOV
627
      return this;
×
628
    }
629

630
    @Override
631
    public Builder contentModifiedAt(Date contentModifiedAt) {
UNCOV
632
      this.contentModifiedAt = contentModifiedAt;
×
UNCOV
633
      this.markNullableFieldAsSet("content_modified_at");
×
UNCOV
634
      return this;
×
635
    }
636

637
    @Override
638
    public Builder ownedBy(UserMini ownedBy) {
UNCOV
639
      this.ownedBy = ownedBy;
×
UNCOV
640
      return this;
×
641
    }
642

643
    @Override
644
    public Builder sharedLink(FolderSharedLinkField sharedLink) {
UNCOV
645
      this.sharedLink = sharedLink;
×
UNCOV
646
      this.markNullableFieldAsSet("shared_link");
×
647
      return this;
×
648
    }
649

650
    @Override
651
    public Builder folderUploadEmail(FolderFolderUploadEmailField folderUploadEmail) {
UNCOV
652
      this.folderUploadEmail = folderUploadEmail;
×
653
      this.markNullableFieldAsSet("folder_upload_email");
×
654
      return this;
×
655
    }
656

657
    @Override
658
    public Builder parent(FolderMini parent) {
659
      this.parent = parent;
×
660
      this.markNullableFieldAsSet("parent");
×
UNCOV
661
      return this;
×
662
    }
663

664
    @Override
665
    public Builder itemStatus(FolderItemStatusField itemStatus) {
666
      this.itemStatus = new EnumWrapper<FolderItemStatusField>(itemStatus);
×
UNCOV
667
      return this;
×
668
    }
669

670
    @Override
671
    public Builder itemStatus(EnumWrapper<FolderItemStatusField> itemStatus) {
UNCOV
672
      this.itemStatus = itemStatus;
×
UNCOV
673
      return this;
×
674
    }
675

676
    @Override
677
    public Builder itemCollection(Items itemCollection) {
UNCOV
678
      this.itemCollection = itemCollection;
×
UNCOV
679
      return this;
×
680
    }
681

682
    public FolderFull build() {
UNCOV
683
      return new FolderFull(this);
×
684
    }
685
  }
686

687
  public static class AllowedSharedLinkAccessLevelsDeserializer
688
      extends JsonDeserializer<List<EnumWrapper<FolderFullAllowedSharedLinkAccessLevelsField>>> {
689

690
    public final JsonDeserializer<EnumWrapper<FolderFullAllowedSharedLinkAccessLevelsField>>
691
        elementDeserializer;
692

693
    public AllowedSharedLinkAccessLevelsDeserializer() {
694
      super();
1✔
695
      this.elementDeserializer =
1✔
696
          new FolderFullAllowedSharedLinkAccessLevelsField
697
              .FolderFullAllowedSharedLinkAccessLevelsFieldDeserializer();
698
    }
1✔
699

700
    @Override
701
    public List<EnumWrapper<FolderFullAllowedSharedLinkAccessLevelsField>> deserialize(
702
        JsonParser p, DeserializationContext ctxt) throws IOException {
UNCOV
703
      JsonNode node = p.getCodec().readTree(p);
×
UNCOV
704
      List<EnumWrapper<FolderFullAllowedSharedLinkAccessLevelsField>> elements = new ArrayList<>();
×
UNCOV
705
      for (JsonNode item : node) {
×
UNCOV
706
        JsonParser pa = item.traverse(p.getCodec());
×
UNCOV
707
        pa.nextToken();
×
708
        elements.add(elementDeserializer.deserialize(pa, ctxt));
×
709
      }
×
UNCOV
710
      return elements;
×
711
    }
712
  }
713

714
  public static class AllowedSharedLinkAccessLevelsSerializer
715
      extends JsonSerializer<List<EnumWrapper<FolderFullAllowedSharedLinkAccessLevelsField>>> {
716

717
    public final JsonSerializer<EnumWrapper<FolderFullAllowedSharedLinkAccessLevelsField>>
718
        elementSerializer;
719

720
    public AllowedSharedLinkAccessLevelsSerializer() {
721
      super();
×
722
      this.elementSerializer =
×
723
          new FolderFullAllowedSharedLinkAccessLevelsField
724
              .FolderFullAllowedSharedLinkAccessLevelsFieldSerializer();
725
    }
×
726

727
    @Override
728
    public void serialize(
729
        List<EnumWrapper<FolderFullAllowedSharedLinkAccessLevelsField>> value,
730
        JsonGenerator gen,
731
        SerializerProvider serializers)
732
        throws IOException {
UNCOV
733
      gen.writeStartArray();
×
UNCOV
734
      for (EnumWrapper<FolderFullAllowedSharedLinkAccessLevelsField> item : value) {
×
UNCOV
735
        elementSerializer.serialize(item, gen, serializers);
×
UNCOV
736
      }
×
UNCOV
737
      gen.writeEndArray();
×
UNCOV
738
    }
×
739
  }
740

741
  public static class AllowedInviteeRolesDeserializer
742
      extends JsonDeserializer<List<EnumWrapper<FolderFullAllowedInviteeRolesField>>> {
743

744
    public final JsonDeserializer<EnumWrapper<FolderFullAllowedInviteeRolesField>>
745
        elementDeserializer;
746

747
    public AllowedInviteeRolesDeserializer() {
748
      super();
1✔
749
      this.elementDeserializer =
1✔
750
          new FolderFullAllowedInviteeRolesField.FolderFullAllowedInviteeRolesFieldDeserializer();
751
    }
1✔
752

753
    @Override
754
    public List<EnumWrapper<FolderFullAllowedInviteeRolesField>> deserialize(
755
        JsonParser p, DeserializationContext ctxt) throws IOException {
UNCOV
756
      JsonNode node = p.getCodec().readTree(p);
×
UNCOV
757
      List<EnumWrapper<FolderFullAllowedInviteeRolesField>> elements = new ArrayList<>();
×
UNCOV
758
      for (JsonNode item : node) {
×
UNCOV
759
        JsonParser pa = item.traverse(p.getCodec());
×
760
        pa.nextToken();
×
761
        elements.add(elementDeserializer.deserialize(pa, ctxt));
×
UNCOV
762
      }
×
763
      return elements;
×
764
    }
765
  }
766

767
  public static class AllowedInviteeRolesSerializer
768
      extends JsonSerializer<List<EnumWrapper<FolderFullAllowedInviteeRolesField>>> {
769

770
    public final JsonSerializer<EnumWrapper<FolderFullAllowedInviteeRolesField>> elementSerializer;
771

772
    public AllowedInviteeRolesSerializer() {
773
      super();
×
774
      this.elementSerializer =
×
775
          new FolderFullAllowedInviteeRolesField.FolderFullAllowedInviteeRolesFieldSerializer();
776
    }
×
777

778
    @Override
779
    public void serialize(
780
        List<EnumWrapper<FolderFullAllowedInviteeRolesField>> value,
781
        JsonGenerator gen,
782
        SerializerProvider serializers)
783
        throws IOException {
UNCOV
784
      gen.writeStartArray();
×
UNCOV
785
      for (EnumWrapper<FolderFullAllowedInviteeRolesField> item : value) {
×
UNCOV
786
        elementSerializer.serialize(item, gen, serializers);
×
UNCOV
787
      }
×
UNCOV
788
      gen.writeEndArray();
×
UNCOV
789
    }
×
790
  }
791
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc