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

box / box-java-sdk-gen / #226

20 Jun 2025 03:14PM UTC coverage: 35.609% (-0.2%) from 35.816%
#226

push

github

web-flow
feat: Shorten builder names in Java (box/box-codegen#742) (#334)

367 of 1570 new or added lines in 984 files covered. (23.38%)

674 existing lines in 370 files now uncovered.

16125 of 45284 relevant lines covered (35.61%)

0.36 hits per line

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

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

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

14
public class TrashFolderRestored extends SerializableObject {
15

16
  protected String id;
17

18
  protected String etag;
19

20
  @JsonDeserialize(
21
      using = TrashFolderRestoredTypeField.TrashFolderRestoredTypeFieldDeserializer.class)
22
  @JsonSerialize(using = TrashFolderRestoredTypeField.TrashFolderRestoredTypeFieldSerializer.class)
23
  protected EnumWrapper<TrashFolderRestoredTypeField> type;
24

25
  @JsonProperty("sequence_id")
26
  protected String sequenceId;
27

28
  protected String name;
29

30
  @JsonProperty("created_at")
31
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
32
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
33
  protected Date createdAt;
34

35
  @JsonProperty("modified_at")
36
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
37
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
38
  protected Date modifiedAt;
39

40
  protected String description;
41

42
  protected Long size;
43

44
  @JsonProperty("path_collection")
45
  protected TrashFolderRestoredPathCollectionField pathCollection;
46

47
  @JsonProperty("created_by")
48
  protected UserMini createdBy;
49

50
  @JsonProperty("modified_by")
51
  protected UserMini modifiedBy;
52

53
  @JsonProperty("trashed_at")
54
  protected String trashedAt;
55

56
  @JsonProperty("purged_at")
57
  protected String purgedAt;
58

59
  @JsonProperty("content_created_at")
60
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
61
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
62
  protected Date contentCreatedAt;
63

64
  @JsonProperty("content_modified_at")
65
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
66
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
67
  protected Date contentModifiedAt;
68

69
  @JsonProperty("owned_by")
70
  protected UserMini ownedBy;
71

72
  @JsonProperty("shared_link")
73
  protected String sharedLink;
74

75
  @JsonProperty("folder_upload_email")
76
  protected String folderUploadEmail;
77

78
  protected FolderMini parent;
79

80
  @JsonDeserialize(
81
      using =
82
          TrashFolderRestoredItemStatusField.TrashFolderRestoredItemStatusFieldDeserializer.class)
83
  @JsonSerialize(
84
      using = TrashFolderRestoredItemStatusField.TrashFolderRestoredItemStatusFieldSerializer.class)
85
  @JsonProperty("item_status")
86
  protected EnumWrapper<TrashFolderRestoredItemStatusField> itemStatus;
87

88
  public TrashFolderRestored() {
89
    super();
1✔
90
  }
1✔
91

92
  protected TrashFolderRestored(Builder builder) {
93
    super();
×
94
    this.id = builder.id;
×
95
    this.etag = builder.etag;
×
96
    this.type = builder.type;
×
97
    this.sequenceId = builder.sequenceId;
×
98
    this.name = builder.name;
×
99
    this.createdAt = builder.createdAt;
×
100
    this.modifiedAt = builder.modifiedAt;
×
101
    this.description = builder.description;
×
102
    this.size = builder.size;
×
103
    this.pathCollection = builder.pathCollection;
×
104
    this.createdBy = builder.createdBy;
×
105
    this.modifiedBy = builder.modifiedBy;
×
106
    this.trashedAt = builder.trashedAt;
×
107
    this.purgedAt = builder.purgedAt;
×
108
    this.contentCreatedAt = builder.contentCreatedAt;
×
109
    this.contentModifiedAt = builder.contentModifiedAt;
×
110
    this.ownedBy = builder.ownedBy;
×
111
    this.sharedLink = builder.sharedLink;
×
112
    this.folderUploadEmail = builder.folderUploadEmail;
×
113
    this.parent = builder.parent;
×
114
    this.itemStatus = builder.itemStatus;
×
115
  }
×
116

117
  public String getId() {
118
    return id;
1✔
119
  }
120

121
  public String getEtag() {
122
    return etag;
×
123
  }
124

125
  public EnumWrapper<TrashFolderRestoredTypeField> getType() {
126
    return type;
×
127
  }
128

129
  public String getSequenceId() {
130
    return sequenceId;
×
131
  }
132

133
  public String getName() {
134
    return name;
1✔
135
  }
136

137
  public Date getCreatedAt() {
138
    return createdAt;
×
139
  }
140

141
  public Date getModifiedAt() {
142
    return modifiedAt;
×
143
  }
144

145
  public String getDescription() {
146
    return description;
×
147
  }
148

149
  public Long getSize() {
150
    return size;
×
151
  }
152

153
  public TrashFolderRestoredPathCollectionField getPathCollection() {
154
    return pathCollection;
×
155
  }
156

157
  public UserMini getCreatedBy() {
158
    return createdBy;
×
159
  }
160

161
  public UserMini getModifiedBy() {
162
    return modifiedBy;
×
163
  }
164

165
  public String getTrashedAt() {
166
    return trashedAt;
×
167
  }
168

169
  public String getPurgedAt() {
170
    return purgedAt;
×
171
  }
172

173
  public Date getContentCreatedAt() {
174
    return contentCreatedAt;
×
175
  }
176

177
  public Date getContentModifiedAt() {
178
    return contentModifiedAt;
×
179
  }
180

181
  public UserMini getOwnedBy() {
182
    return ownedBy;
×
183
  }
184

185
  public String getSharedLink() {
186
    return sharedLink;
×
187
  }
188

189
  public String getFolderUploadEmail() {
190
    return folderUploadEmail;
×
191
  }
192

193
  public FolderMini getParent() {
194
    return parent;
×
195
  }
196

197
  public EnumWrapper<TrashFolderRestoredItemStatusField> getItemStatus() {
198
    return itemStatus;
×
199
  }
200

201
  @Override
202
  public boolean equals(Object o) {
203
    if (this == o) {
×
204
      return true;
×
205
    }
206
    if (o == null || getClass() != o.getClass()) {
×
207
      return false;
×
208
    }
209
    TrashFolderRestored casted = (TrashFolderRestored) o;
×
210
    return Objects.equals(id, casted.id)
×
211
        && Objects.equals(etag, casted.etag)
×
212
        && Objects.equals(type, casted.type)
×
213
        && Objects.equals(sequenceId, casted.sequenceId)
×
214
        && Objects.equals(name, casted.name)
×
215
        && Objects.equals(createdAt, casted.createdAt)
×
216
        && Objects.equals(modifiedAt, casted.modifiedAt)
×
217
        && Objects.equals(description, casted.description)
×
218
        && Objects.equals(size, casted.size)
×
219
        && Objects.equals(pathCollection, casted.pathCollection)
×
220
        && Objects.equals(createdBy, casted.createdBy)
×
221
        && Objects.equals(modifiedBy, casted.modifiedBy)
×
222
        && Objects.equals(trashedAt, casted.trashedAt)
×
223
        && Objects.equals(purgedAt, casted.purgedAt)
×
224
        && Objects.equals(contentCreatedAt, casted.contentCreatedAt)
×
225
        && Objects.equals(contentModifiedAt, casted.contentModifiedAt)
×
226
        && Objects.equals(ownedBy, casted.ownedBy)
×
227
        && Objects.equals(sharedLink, casted.sharedLink)
×
228
        && Objects.equals(folderUploadEmail, casted.folderUploadEmail)
×
229
        && Objects.equals(parent, casted.parent)
×
230
        && Objects.equals(itemStatus, casted.itemStatus);
×
231
  }
232

233
  @Override
234
  public int hashCode() {
235
    return Objects.hash(
×
236
        id,
237
        etag,
238
        type,
239
        sequenceId,
240
        name,
241
        createdAt,
242
        modifiedAt,
243
        description,
244
        size,
245
        pathCollection,
246
        createdBy,
247
        modifiedBy,
248
        trashedAt,
249
        purgedAt,
250
        contentCreatedAt,
251
        contentModifiedAt,
252
        ownedBy,
253
        sharedLink,
254
        folderUploadEmail,
255
        parent,
256
        itemStatus);
257
  }
258

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

NEW
348
  public static class Builder {
×
349

350
    protected String id;
351

352
    protected String etag;
353

354
    protected EnumWrapper<TrashFolderRestoredTypeField> type;
355

356
    protected String sequenceId;
357

358
    protected String name;
359

360
    protected Date createdAt;
361

362
    protected Date modifiedAt;
363

364
    protected String description;
365

366
    protected Long size;
367

368
    protected TrashFolderRestoredPathCollectionField pathCollection;
369

370
    protected UserMini createdBy;
371

372
    protected UserMini modifiedBy;
373

374
    protected String trashedAt;
375

376
    protected String purgedAt;
377

378
    protected Date contentCreatedAt;
379

380
    protected Date contentModifiedAt;
381

382
    protected UserMini ownedBy;
383

384
    protected String sharedLink;
385

386
    protected String folderUploadEmail;
387

388
    protected FolderMini parent;
389

390
    protected EnumWrapper<TrashFolderRestoredItemStatusField> itemStatus;
391

392
    public Builder id(String id) {
393
      this.id = id;
×
394
      return this;
×
395
    }
396

397
    public Builder etag(String etag) {
398
      this.etag = etag;
×
399
      return this;
×
400
    }
401

402
    public Builder type(TrashFolderRestoredTypeField type) {
403
      this.type = new EnumWrapper<TrashFolderRestoredTypeField>(type);
×
404
      return this;
×
405
    }
406

407
    public Builder type(EnumWrapper<TrashFolderRestoredTypeField> type) {
408
      this.type = type;
×
409
      return this;
×
410
    }
411

412
    public Builder sequenceId(String sequenceId) {
413
      this.sequenceId = sequenceId;
×
414
      return this;
×
415
    }
416

417
    public Builder name(String name) {
418
      this.name = name;
×
419
      return this;
×
420
    }
421

422
    public Builder createdAt(Date createdAt) {
423
      this.createdAt = createdAt;
×
424
      return this;
×
425
    }
426

427
    public Builder modifiedAt(Date modifiedAt) {
428
      this.modifiedAt = modifiedAt;
×
429
      return this;
×
430
    }
431

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

437
    public Builder size(Long size) {
438
      this.size = size;
×
439
      return this;
×
440
    }
441

442
    public Builder pathCollection(TrashFolderRestoredPathCollectionField pathCollection) {
UNCOV
443
      this.pathCollection = pathCollection;
×
444
      return this;
×
445
    }
446

447
    public Builder createdBy(UserMini createdBy) {
448
      this.createdBy = createdBy;
×
449
      return this;
×
450
    }
451

452
    public Builder modifiedBy(UserMini modifiedBy) {
453
      this.modifiedBy = modifiedBy;
×
454
      return this;
×
455
    }
456

457
    public Builder trashedAt(String trashedAt) {
458
      this.trashedAt = trashedAt;
×
459
      return this;
×
460
    }
461

462
    public Builder purgedAt(String purgedAt) {
463
      this.purgedAt = purgedAt;
×
464
      return this;
×
465
    }
466

467
    public Builder contentCreatedAt(Date contentCreatedAt) {
468
      this.contentCreatedAt = contentCreatedAt;
×
469
      return this;
×
470
    }
471

472
    public Builder contentModifiedAt(Date contentModifiedAt) {
473
      this.contentModifiedAt = contentModifiedAt;
×
474
      return this;
×
475
    }
476

477
    public Builder ownedBy(UserMini ownedBy) {
478
      this.ownedBy = ownedBy;
×
479
      return this;
×
480
    }
481

482
    public Builder sharedLink(String sharedLink) {
483
      this.sharedLink = sharedLink;
×
484
      return this;
×
485
    }
486

487
    public Builder folderUploadEmail(String folderUploadEmail) {
488
      this.folderUploadEmail = folderUploadEmail;
×
489
      return this;
×
490
    }
491

492
    public Builder parent(FolderMini parent) {
493
      this.parent = parent;
×
494
      return this;
×
495
    }
496

497
    public Builder itemStatus(TrashFolderRestoredItemStatusField itemStatus) {
498
      this.itemStatus = new EnumWrapper<TrashFolderRestoredItemStatusField>(itemStatus);
×
499
      return this;
×
500
    }
501

502
    public Builder itemStatus(EnumWrapper<TrashFolderRestoredItemStatusField> itemStatus) {
UNCOV
503
      this.itemStatus = itemStatus;
×
504
      return this;
×
505
    }
506

507
    public TrashFolderRestored build() {
508
      return new TrashFolderRestored(this);
×
509
    }
510
  }
511
}
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