• 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

3.03
/src/main/java/com/box/sdkgen/schemas/trashfolderrestored/TrashFolderRestored.java
1
package com.box.sdkgen.schemas.trashfolderrestored;
2

3
import com.box.sdkgen.internal.Nullable;
4
import com.box.sdkgen.internal.NullableFieldTracker;
5
import com.box.sdkgen.internal.SerializableObject;
6
import com.box.sdkgen.internal.utils.DateTimeUtils;
7
import com.box.sdkgen.schemas.foldermini.FolderMini;
8
import com.box.sdkgen.schemas.usermini.UserMini;
9
import com.box.sdkgen.serialization.json.EnumWrapper;
10
import com.fasterxml.jackson.annotation.JsonFilter;
11
import com.fasterxml.jackson.annotation.JsonProperty;
12
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
13
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
14
import java.util.Date;
15
import java.util.Objects;
16

17
@JsonFilter("nullablePropertyFilter")
18
public class TrashFolderRestored extends SerializableObject {
19

20
  protected String id;
21

22
  @Nullable protected String etag;
23

24
  @JsonDeserialize(
25
      using = TrashFolderRestoredTypeField.TrashFolderRestoredTypeFieldDeserializer.class)
26
  @JsonSerialize(using = TrashFolderRestoredTypeField.TrashFolderRestoredTypeFieldSerializer.class)
27
  protected EnumWrapper<TrashFolderRestoredTypeField> type;
28

29
  @JsonProperty("sequence_id")
30
  protected String sequenceId;
31

32
  protected String name;
33

34
  @JsonProperty("created_at")
35
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
36
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
37
  @Nullable
38
  protected Date createdAt;
39

40
  @JsonProperty("modified_at")
41
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
42
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
43
  @Nullable
44
  protected Date modifiedAt;
45

46
  protected String description;
47

48
  protected Long size;
49

50
  @JsonProperty("path_collection")
51
  protected TrashFolderRestoredPathCollectionField pathCollection;
52

53
  @JsonProperty("created_by")
54
  protected UserMini createdBy;
55

56
  @JsonProperty("modified_by")
57
  protected UserMini modifiedBy;
58

59
  @JsonProperty("trashed_at")
60
  @Nullable
61
  protected String trashedAt;
62

63
  @JsonProperty("purged_at")
64
  @Nullable
65
  protected String purgedAt;
66

67
  @JsonProperty("content_created_at")
68
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
69
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
70
  @Nullable
71
  protected Date contentCreatedAt;
72

73
  @JsonProperty("content_modified_at")
74
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
75
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
76
  @Nullable
77
  protected Date contentModifiedAt;
78

79
  @JsonProperty("owned_by")
80
  protected UserMini ownedBy;
81

82
  @JsonProperty("shared_link")
83
  @Nullable
84
  protected String sharedLink;
85

86
  @JsonProperty("folder_upload_email")
87
  @Nullable
88
  protected String folderUploadEmail;
89

90
  protected FolderMini parent;
91

92
  @JsonDeserialize(
93
      using =
94
          TrashFolderRestoredItemStatusField.TrashFolderRestoredItemStatusFieldDeserializer.class)
95
  @JsonSerialize(
96
      using = TrashFolderRestoredItemStatusField.TrashFolderRestoredItemStatusFieldSerializer.class)
97
  @JsonProperty("item_status")
98
  protected EnumWrapper<TrashFolderRestoredItemStatusField> itemStatus;
99

100
  public TrashFolderRestored() {
101
    super();
1✔
102
  }
1✔
103

104
  protected TrashFolderRestored(Builder builder) {
105
    super();
×
106
    this.id = builder.id;
×
107
    this.etag = builder.etag;
×
108
    this.type = builder.type;
×
109
    this.sequenceId = builder.sequenceId;
×
110
    this.name = builder.name;
×
111
    this.createdAt = builder.createdAt;
×
112
    this.modifiedAt = builder.modifiedAt;
×
113
    this.description = builder.description;
×
114
    this.size = builder.size;
×
115
    this.pathCollection = builder.pathCollection;
×
UNCOV
116
    this.createdBy = builder.createdBy;
×
UNCOV
117
    this.modifiedBy = builder.modifiedBy;
×
UNCOV
118
    this.trashedAt = builder.trashedAt;
×
UNCOV
119
    this.purgedAt = builder.purgedAt;
×
UNCOV
120
    this.contentCreatedAt = builder.contentCreatedAt;
×
UNCOV
121
    this.contentModifiedAt = builder.contentModifiedAt;
×
122
    this.ownedBy = builder.ownedBy;
×
UNCOV
123
    this.sharedLink = builder.sharedLink;
×
UNCOV
124
    this.folderUploadEmail = builder.folderUploadEmail;
×
UNCOV
125
    this.parent = builder.parent;
×
126
    this.itemStatus = builder.itemStatus;
×
UNCOV
127
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
128
  }
×
129

130
  public String getId() {
131
    return id;
1✔
132
  }
133

134
  public String getEtag() {
UNCOV
135
    return etag;
×
136
  }
137

138
  public EnumWrapper<TrashFolderRestoredTypeField> getType() {
UNCOV
139
    return type;
×
140
  }
141

142
  public String getSequenceId() {
UNCOV
143
    return sequenceId;
×
144
  }
145

146
  public String getName() {
147
    return name;
1✔
148
  }
149

150
  public Date getCreatedAt() {
UNCOV
151
    return createdAt;
×
152
  }
153

154
  public Date getModifiedAt() {
UNCOV
155
    return modifiedAt;
×
156
  }
157

158
  public String getDescription() {
UNCOV
159
    return description;
×
160
  }
161

162
  public Long getSize() {
UNCOV
163
    return size;
×
164
  }
165

166
  public TrashFolderRestoredPathCollectionField getPathCollection() {
UNCOV
167
    return pathCollection;
×
168
  }
169

170
  public UserMini getCreatedBy() {
UNCOV
171
    return createdBy;
×
172
  }
173

174
  public UserMini getModifiedBy() {
UNCOV
175
    return modifiedBy;
×
176
  }
177

178
  public String getTrashedAt() {
UNCOV
179
    return trashedAt;
×
180
  }
181

182
  public String getPurgedAt() {
UNCOV
183
    return purgedAt;
×
184
  }
185

186
  public Date getContentCreatedAt() {
UNCOV
187
    return contentCreatedAt;
×
188
  }
189

190
  public Date getContentModifiedAt() {
UNCOV
191
    return contentModifiedAt;
×
192
  }
193

194
  public UserMini getOwnedBy() {
UNCOV
195
    return ownedBy;
×
196
  }
197

198
  public String getSharedLink() {
UNCOV
199
    return sharedLink;
×
200
  }
201

202
  public String getFolderUploadEmail() {
203
    return folderUploadEmail;
×
204
  }
205

206
  public FolderMini getParent() {
207
    return parent;
×
208
  }
209

210
  public EnumWrapper<TrashFolderRestoredItemStatusField> getItemStatus() {
211
    return itemStatus;
×
212
  }
213

214
  @Override
215
  public boolean equals(Object o) {
216
    if (this == o) {
×
217
      return true;
×
218
    }
219
    if (o == null || getClass() != o.getClass()) {
×
220
      return false;
×
221
    }
222
    TrashFolderRestored casted = (TrashFolderRestored) o;
×
223
    return Objects.equals(id, casted.id)
×
224
        && Objects.equals(etag, casted.etag)
×
225
        && Objects.equals(type, casted.type)
×
226
        && Objects.equals(sequenceId, casted.sequenceId)
×
227
        && Objects.equals(name, casted.name)
×
228
        && Objects.equals(createdAt, casted.createdAt)
×
229
        && Objects.equals(modifiedAt, casted.modifiedAt)
×
230
        && Objects.equals(description, casted.description)
×
UNCOV
231
        && Objects.equals(size, casted.size)
×
UNCOV
232
        && Objects.equals(pathCollection, casted.pathCollection)
×
UNCOV
233
        && Objects.equals(createdBy, casted.createdBy)
×
UNCOV
234
        && Objects.equals(modifiedBy, casted.modifiedBy)
×
235
        && Objects.equals(trashedAt, casted.trashedAt)
×
UNCOV
236
        && Objects.equals(purgedAt, casted.purgedAt)
×
UNCOV
237
        && Objects.equals(contentCreatedAt, casted.contentCreatedAt)
×
UNCOV
238
        && Objects.equals(contentModifiedAt, casted.contentModifiedAt)
×
UNCOV
239
        && Objects.equals(ownedBy, casted.ownedBy)
×
UNCOV
240
        && Objects.equals(sharedLink, casted.sharedLink)
×
UNCOV
241
        && Objects.equals(folderUploadEmail, casted.folderUploadEmail)
×
UNCOV
242
        && Objects.equals(parent, casted.parent)
×
UNCOV
243
        && Objects.equals(itemStatus, casted.itemStatus);
×
244
  }
245

246
  @Override
247
  public int hashCode() {
UNCOV
248
    return Objects.hash(
×
249
        id,
250
        etag,
251
        type,
252
        sequenceId,
253
        name,
254
        createdAt,
255
        modifiedAt,
256
        description,
257
        size,
258
        pathCollection,
259
        createdBy,
260
        modifiedBy,
261
        trashedAt,
262
        purgedAt,
263
        contentCreatedAt,
264
        contentModifiedAt,
265
        ownedBy,
266
        sharedLink,
267
        folderUploadEmail,
268
        parent,
269
        itemStatus);
270
  }
271

272
  @Override
273
  public String toString() {
UNCOV
274
    return "TrashFolderRestored{"
×
275
        + "id='"
276
        + id
277
        + '\''
278
        + ", "
279
        + "etag='"
280
        + etag
281
        + '\''
282
        + ", "
283
        + "type='"
284
        + type
285
        + '\''
286
        + ", "
287
        + "sequenceId='"
288
        + sequenceId
289
        + '\''
290
        + ", "
291
        + "name='"
292
        + name
293
        + '\''
294
        + ", "
295
        + "createdAt='"
296
        + createdAt
297
        + '\''
298
        + ", "
299
        + "modifiedAt='"
300
        + modifiedAt
301
        + '\''
302
        + ", "
303
        + "description='"
304
        + description
305
        + '\''
306
        + ", "
307
        + "size='"
308
        + size
309
        + '\''
310
        + ", "
311
        + "pathCollection='"
312
        + pathCollection
313
        + '\''
314
        + ", "
315
        + "createdBy='"
316
        + createdBy
317
        + '\''
318
        + ", "
319
        + "modifiedBy='"
320
        + modifiedBy
321
        + '\''
322
        + ", "
323
        + "trashedAt='"
324
        + trashedAt
325
        + '\''
326
        + ", "
327
        + "purgedAt='"
328
        + purgedAt
329
        + '\''
330
        + ", "
331
        + "contentCreatedAt='"
332
        + contentCreatedAt
333
        + '\''
334
        + ", "
335
        + "contentModifiedAt='"
336
        + contentModifiedAt
337
        + '\''
338
        + ", "
339
        + "ownedBy='"
340
        + ownedBy
341
        + '\''
342
        + ", "
343
        + "sharedLink='"
344
        + sharedLink
345
        + '\''
346
        + ", "
347
        + "folderUploadEmail='"
348
        + folderUploadEmail
349
        + '\''
350
        + ", "
351
        + "parent='"
352
        + parent
353
        + '\''
354
        + ", "
355
        + "itemStatus='"
356
        + itemStatus
357
        + '\''
358
        + "}";
359
  }
360

UNCOV
361
  public static class Builder extends NullableFieldTracker {
×
362

363
    protected String id;
364

365
    protected String etag;
366

367
    protected EnumWrapper<TrashFolderRestoredTypeField> type;
368

369
    protected String sequenceId;
370

371
    protected String name;
372

373
    protected Date createdAt;
374

375
    protected Date modifiedAt;
376

377
    protected String description;
378

379
    protected Long size;
380

381
    protected TrashFolderRestoredPathCollectionField pathCollection;
382

383
    protected UserMini createdBy;
384

385
    protected UserMini modifiedBy;
386

387
    protected String trashedAt;
388

389
    protected String purgedAt;
390

391
    protected Date contentCreatedAt;
392

393
    protected Date contentModifiedAt;
394

395
    protected UserMini ownedBy;
396

397
    protected String sharedLink;
398

399
    protected String folderUploadEmail;
400

401
    protected FolderMini parent;
402

403
    protected EnumWrapper<TrashFolderRestoredItemStatusField> itemStatus;
404

405
    public Builder id(String id) {
UNCOV
406
      this.id = id;
×
UNCOV
407
      return this;
×
408
    }
409

410
    public Builder etag(String etag) {
UNCOV
411
      this.etag = etag;
×
UNCOV
412
      this.markNullableFieldAsSet("etag");
×
413
      return this;
×
414
    }
415

416
    public Builder type(TrashFolderRestoredTypeField type) {
UNCOV
417
      this.type = new EnumWrapper<TrashFolderRestoredTypeField>(type);
×
418
      return this;
×
419
    }
420

421
    public Builder type(EnumWrapper<TrashFolderRestoredTypeField> type) {
UNCOV
422
      this.type = type;
×
423
      return this;
×
424
    }
425

426
    public Builder sequenceId(String sequenceId) {
UNCOV
427
      this.sequenceId = sequenceId;
×
428
      return this;
×
429
    }
430

431
    public Builder name(String name) {
UNCOV
432
      this.name = name;
×
433
      return this;
×
434
    }
435

436
    public Builder createdAt(Date createdAt) {
UNCOV
437
      this.createdAt = createdAt;
×
438
      this.markNullableFieldAsSet("created_at");
×
439
      return this;
×
440
    }
441

442
    public Builder modifiedAt(Date modifiedAt) {
443
      this.modifiedAt = modifiedAt;
×
444
      this.markNullableFieldAsSet("modified_at");
×
UNCOV
445
      return this;
×
446
    }
447

448
    public Builder description(String description) {
449
      this.description = description;
×
UNCOV
450
      return this;
×
451
    }
452

453
    public Builder size(Long size) {
454
      this.size = size;
×
UNCOV
455
      return this;
×
456
    }
457

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

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

468
    public Builder modifiedBy(UserMini modifiedBy) {
469
      this.modifiedBy = modifiedBy;
×
UNCOV
470
      return this;
×
471
    }
472

473
    public Builder trashedAt(String trashedAt) {
474
      this.trashedAt = trashedAt;
×
UNCOV
475
      this.markNullableFieldAsSet("trashed_at");
×
UNCOV
476
      return this;
×
477
    }
478

479
    public Builder purgedAt(String purgedAt) {
UNCOV
480
      this.purgedAt = purgedAt;
×
UNCOV
481
      this.markNullableFieldAsSet("purged_at");
×
UNCOV
482
      return this;
×
483
    }
484

485
    public Builder contentCreatedAt(Date contentCreatedAt) {
UNCOV
486
      this.contentCreatedAt = contentCreatedAt;
×
UNCOV
487
      this.markNullableFieldAsSet("content_created_at");
×
488
      return this;
×
489
    }
490

491
    public Builder contentModifiedAt(Date contentModifiedAt) {
UNCOV
492
      this.contentModifiedAt = contentModifiedAt;
×
493
      this.markNullableFieldAsSet("content_modified_at");
×
494
      return this;
×
495
    }
496

497
    public Builder ownedBy(UserMini ownedBy) {
498
      this.ownedBy = ownedBy;
×
499
      return this;
×
500
    }
501

502
    public Builder sharedLink(String sharedLink) {
503
      this.sharedLink = sharedLink;
×
504
      this.markNullableFieldAsSet("shared_link");
×
UNCOV
505
      return this;
×
506
    }
507

508
    public Builder folderUploadEmail(String folderUploadEmail) {
UNCOV
509
      this.folderUploadEmail = folderUploadEmail;
×
UNCOV
510
      this.markNullableFieldAsSet("folder_upload_email");
×
UNCOV
511
      return this;
×
512
    }
513

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

519
    public Builder itemStatus(TrashFolderRestoredItemStatusField itemStatus) {
UNCOV
520
      this.itemStatus = new EnumWrapper<TrashFolderRestoredItemStatusField>(itemStatus);
×
UNCOV
521
      return this;
×
522
    }
523

524
    public Builder itemStatus(EnumWrapper<TrashFolderRestoredItemStatusField> itemStatus) {
UNCOV
525
      this.itemStatus = itemStatus;
×
UNCOV
526
      return this;
×
527
    }
528

529
    public TrashFolderRestored build() {
UNCOV
530
      return new TrashFolderRestored(this);
×
531
    }
532
  }
533
}
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