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

box / box-java-sdk-gen / #155

30 May 2025 01:03PM UTC coverage: 35.646% (+0.3%) from 35.311%
#155

push

github

web-flow
fix: Fix downscope token to use `retrieveToken` method for token retrieval (box/box-codegen#731) (#320)

4 of 4 new or added lines in 4 files covered. (100.0%)

2952 existing lines in 99 files now uncovered.

15628 of 43842 relevant lines covered (35.65%)

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(TrashFolderRestoredBuilder 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;
×
UNCOV
106
    this.trashedAt = builder.trashedAt;
×
UNCOV
107
    this.purgedAt = builder.purgedAt;
×
UNCOV
108
    this.contentCreatedAt = builder.contentCreatedAt;
×
UNCOV
109
    this.contentModifiedAt = builder.contentModifiedAt;
×
UNCOV
110
    this.ownedBy = builder.ownedBy;
×
UNCOV
111
    this.sharedLink = builder.sharedLink;
×
112
    this.folderUploadEmail = builder.folderUploadEmail;
×
UNCOV
113
    this.parent = builder.parent;
×
UNCOV
114
    this.itemStatus = builder.itemStatus;
×
UNCOV
115
  }
×
116

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

197
  public EnumWrapper<TrashFolderRestoredItemStatusField> getItemStatus() {
UNCOV
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)
×
UNCOV
221
        && Objects.equals(modifiedBy, casted.modifiedBy)
×
UNCOV
222
        && Objects.equals(trashedAt, casted.trashedAt)
×
UNCOV
223
        && Objects.equals(purgedAt, casted.purgedAt)
×
UNCOV
224
        && Objects.equals(contentCreatedAt, casted.contentCreatedAt)
×
225
        && Objects.equals(contentModifiedAt, casted.contentModifiedAt)
×
UNCOV
226
        && Objects.equals(ownedBy, casted.ownedBy)
×
UNCOV
227
        && Objects.equals(sharedLink, casted.sharedLink)
×
UNCOV
228
        && Objects.equals(folderUploadEmail, casted.folderUploadEmail)
×
UNCOV
229
        && Objects.equals(parent, casted.parent)
×
UNCOV
230
        && Objects.equals(itemStatus, casted.itemStatus);
×
231
  }
232

233
  @Override
234
  public int hashCode() {
UNCOV
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() {
UNCOV
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

UNCOV
348
  public static class TrashFolderRestoredBuilder {
×
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 TrashFolderRestoredBuilder id(String id) {
393
      this.id = id;
×
394
      return this;
×
395
    }
396

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

493
    public TrashFolderRestoredBuilder parent(FolderMini parent) {
UNCOV
494
      this.parent = parent;
×
495
      return this;
×
496
    }
497

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

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

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