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

box / box-java-sdk-gen / #541

05 Sep 2025 02:31PM UTC coverage: 7.451% (-29.2%) from 36.66%
#541

push

other

web-flow
chore: release version 0.8.1 (#437)

1 of 1 new or added line in 1 file covered. (100.0%)

14652 existing lines in 1191 files now uncovered.

3737 of 50151 relevant lines covered (7.45%)

0.07 hits per line

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

0.0
/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() {
UNCOV
101
    super();
×
UNCOV
102
  }
×
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;
×
116
    this.createdBy = builder.createdBy;
×
117
    this.modifiedBy = builder.modifiedBy;
×
118
    this.trashedAt = builder.trashedAt;
×
119
    this.purgedAt = builder.purgedAt;
×
120
    this.contentCreatedAt = builder.contentCreatedAt;
×
121
    this.contentModifiedAt = builder.contentModifiedAt;
×
122
    this.ownedBy = builder.ownedBy;
×
123
    this.sharedLink = builder.sharedLink;
×
124
    this.folderUploadEmail = builder.folderUploadEmail;
×
125
    this.parent = builder.parent;
×
126
    this.itemStatus = builder.itemStatus;
×
127
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
128
  }
×
129

130
  public String getId() {
UNCOV
131
    return id;
×
132
  }
133

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

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

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

146
  public String getName() {
UNCOV
147
    return name;
×
148
  }
149

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

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

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

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

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

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

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

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

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

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

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

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

198
  public String getSharedLink() {
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)
×
231
        && Objects.equals(size, casted.size)
×
232
        && Objects.equals(pathCollection, casted.pathCollection)
×
233
        && Objects.equals(createdBy, casted.createdBy)
×
234
        && Objects.equals(modifiedBy, casted.modifiedBy)
×
235
        && Objects.equals(trashedAt, casted.trashedAt)
×
236
        && Objects.equals(purgedAt, casted.purgedAt)
×
237
        && Objects.equals(contentCreatedAt, casted.contentCreatedAt)
×
238
        && Objects.equals(contentModifiedAt, casted.contentModifiedAt)
×
239
        && Objects.equals(ownedBy, casted.ownedBy)
×
240
        && Objects.equals(sharedLink, casted.sharedLink)
×
241
        && Objects.equals(folderUploadEmail, casted.folderUploadEmail)
×
242
        && Objects.equals(parent, casted.parent)
×
243
        && Objects.equals(itemStatus, casted.itemStatus);
×
244
  }
245

246
  @Override
247
  public int hashCode() {
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() {
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

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) {
406
      this.id = id;
×
407
      return this;
×
408
    }
409

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

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

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

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

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

436
    public Builder createdAt(Date createdAt) {
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");
×
445
      return this;
×
446
    }
447

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

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

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

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

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

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

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

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

491
    public Builder contentModifiedAt(Date contentModifiedAt) {
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");
×
505
      return this;
×
506
    }
507

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

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

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

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

529
    public TrashFolderRestored build() {
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