• 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

5.56
/src/main/java/com/box/sdkgen/schemas/trashweblinkrestored/TrashWebLinkRestored.java
1
package com.box.sdkgen.schemas.trashweblinkrestored;
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 TrashWebLinkRestored extends SerializableObject {
15

16
  @JsonDeserialize(
17
      using = TrashWebLinkRestoredTypeField.TrashWebLinkRestoredTypeFieldDeserializer.class)
18
  @JsonSerialize(
19
      using = TrashWebLinkRestoredTypeField.TrashWebLinkRestoredTypeFieldSerializer.class)
20
  protected EnumWrapper<TrashWebLinkRestoredTypeField> type;
21

22
  protected String id;
23

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

27
  protected String etag;
28

29
  protected String name;
30

31
  protected String url;
32

33
  protected FolderMini parent;
34

35
  protected String description;
36

37
  @JsonProperty("path_collection")
38
  protected final TrashWebLinkRestoredPathCollectionField pathCollection;
39

40
  @JsonProperty("created_at")
41
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
42
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
43
  protected Date createdAt;
44

45
  @JsonProperty("modified_at")
46
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
47
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
48
  protected Date modifiedAt;
49

50
  @JsonProperty("trashed_at")
51
  protected String trashedAt;
52

53
  @JsonProperty("purged_at")
54
  protected String purgedAt;
55

56
  @JsonProperty("created_by")
57
  protected UserMini createdBy;
58

59
  @JsonProperty("modified_by")
60
  protected UserMini modifiedBy;
61

62
  @JsonProperty("owned_by")
63
  protected UserMini ownedBy;
64

65
  @JsonProperty("shared_link")
66
  protected String sharedLink;
67

68
  @JsonDeserialize(
69
      using =
70
          TrashWebLinkRestoredItemStatusField.TrashWebLinkRestoredItemStatusFieldDeserializer.class)
71
  @JsonSerialize(
72
      using =
73
          TrashWebLinkRestoredItemStatusField.TrashWebLinkRestoredItemStatusFieldSerializer.class)
74
  @JsonProperty("item_status")
75
  protected EnumWrapper<TrashWebLinkRestoredItemStatusField> itemStatus;
76

77
  public TrashWebLinkRestored(
78
      @JsonProperty("sequence_id") String sequenceId,
79
      @JsonProperty("path_collection") TrashWebLinkRestoredPathCollectionField pathCollection) {
80
    super();
1✔
81
    this.sequenceId = sequenceId;
1✔
82
    this.pathCollection = pathCollection;
1✔
83
  }
1✔
84

85
  protected TrashWebLinkRestored(Builder builder) {
86
    super();
×
87
    this.type = builder.type;
×
88
    this.id = builder.id;
×
89
    this.sequenceId = builder.sequenceId;
×
90
    this.etag = builder.etag;
×
91
    this.name = builder.name;
×
92
    this.url = builder.url;
×
93
    this.parent = builder.parent;
×
94
    this.description = builder.description;
×
95
    this.pathCollection = builder.pathCollection;
×
96
    this.createdAt = builder.createdAt;
×
97
    this.modifiedAt = builder.modifiedAt;
×
98
    this.trashedAt = builder.trashedAt;
×
99
    this.purgedAt = builder.purgedAt;
×
100
    this.createdBy = builder.createdBy;
×
101
    this.modifiedBy = builder.modifiedBy;
×
102
    this.ownedBy = builder.ownedBy;
×
103
    this.sharedLink = builder.sharedLink;
×
104
    this.itemStatus = builder.itemStatus;
×
105
  }
×
106

107
  public EnumWrapper<TrashWebLinkRestoredTypeField> getType() {
108
    return type;
×
109
  }
110

111
  public String getId() {
112
    return id;
1✔
113
  }
114

115
  public String getSequenceId() {
116
    return sequenceId;
×
117
  }
118

119
  public String getEtag() {
120
    return etag;
×
121
  }
122

123
  public String getName() {
124
    return name;
1✔
125
  }
126

127
  public String getUrl() {
128
    return url;
×
129
  }
130

131
  public FolderMini getParent() {
132
    return parent;
×
133
  }
134

135
  public String getDescription() {
136
    return description;
×
137
  }
138

139
  public TrashWebLinkRestoredPathCollectionField getPathCollection() {
140
    return pathCollection;
×
141
  }
142

143
  public Date getCreatedAt() {
144
    return createdAt;
×
145
  }
146

147
  public Date getModifiedAt() {
148
    return modifiedAt;
×
149
  }
150

151
  public String getTrashedAt() {
152
    return trashedAt;
×
153
  }
154

155
  public String getPurgedAt() {
156
    return purgedAt;
×
157
  }
158

159
  public UserMini getCreatedBy() {
160
    return createdBy;
×
161
  }
162

163
  public UserMini getModifiedBy() {
164
    return modifiedBy;
×
165
  }
166

167
  public UserMini getOwnedBy() {
168
    return ownedBy;
×
169
  }
170

171
  public String getSharedLink() {
172
    return sharedLink;
×
173
  }
174

175
  public EnumWrapper<TrashWebLinkRestoredItemStatusField> getItemStatus() {
176
    return itemStatus;
×
177
  }
178

179
  @Override
180
  public boolean equals(Object o) {
181
    if (this == o) {
×
182
      return true;
×
183
    }
184
    if (o == null || getClass() != o.getClass()) {
×
185
      return false;
×
186
    }
187
    TrashWebLinkRestored casted = (TrashWebLinkRestored) o;
×
188
    return Objects.equals(type, casted.type)
×
189
        && Objects.equals(id, casted.id)
×
190
        && Objects.equals(sequenceId, casted.sequenceId)
×
191
        && Objects.equals(etag, casted.etag)
×
192
        && Objects.equals(name, casted.name)
×
193
        && Objects.equals(url, casted.url)
×
194
        && Objects.equals(parent, casted.parent)
×
195
        && Objects.equals(description, casted.description)
×
196
        && Objects.equals(pathCollection, casted.pathCollection)
×
197
        && Objects.equals(createdAt, casted.createdAt)
×
198
        && Objects.equals(modifiedAt, casted.modifiedAt)
×
199
        && Objects.equals(trashedAt, casted.trashedAt)
×
200
        && Objects.equals(purgedAt, casted.purgedAt)
×
201
        && Objects.equals(createdBy, casted.createdBy)
×
202
        && Objects.equals(modifiedBy, casted.modifiedBy)
×
203
        && Objects.equals(ownedBy, casted.ownedBy)
×
204
        && Objects.equals(sharedLink, casted.sharedLink)
×
205
        && Objects.equals(itemStatus, casted.itemStatus);
×
206
  }
207

208
  @Override
209
  public int hashCode() {
210
    return Objects.hash(
×
211
        type,
212
        id,
213
        sequenceId,
214
        etag,
215
        name,
216
        url,
217
        parent,
218
        description,
219
        pathCollection,
220
        createdAt,
221
        modifiedAt,
222
        trashedAt,
223
        purgedAt,
224
        createdBy,
225
        modifiedBy,
226
        ownedBy,
227
        sharedLink,
228
        itemStatus);
229
  }
230

231
  @Override
232
  public String toString() {
233
    return "TrashWebLinkRestored{"
×
234
        + "type='"
235
        + type
236
        + '\''
237
        + ", "
238
        + "id='"
239
        + id
240
        + '\''
241
        + ", "
242
        + "sequenceId='"
243
        + sequenceId
244
        + '\''
245
        + ", "
246
        + "etag='"
247
        + etag
248
        + '\''
249
        + ", "
250
        + "name='"
251
        + name
252
        + '\''
253
        + ", "
254
        + "url='"
255
        + url
256
        + '\''
257
        + ", "
258
        + "parent='"
259
        + parent
260
        + '\''
261
        + ", "
262
        + "description='"
263
        + description
264
        + '\''
265
        + ", "
266
        + "pathCollection='"
267
        + pathCollection
268
        + '\''
269
        + ", "
270
        + "createdAt='"
271
        + createdAt
272
        + '\''
273
        + ", "
274
        + "modifiedAt='"
275
        + modifiedAt
276
        + '\''
277
        + ", "
278
        + "trashedAt='"
279
        + trashedAt
280
        + '\''
281
        + ", "
282
        + "purgedAt='"
283
        + purgedAt
284
        + '\''
285
        + ", "
286
        + "createdBy='"
287
        + createdBy
288
        + '\''
289
        + ", "
290
        + "modifiedBy='"
291
        + modifiedBy
292
        + '\''
293
        + ", "
294
        + "ownedBy='"
295
        + ownedBy
296
        + '\''
297
        + ", "
298
        + "sharedLink='"
299
        + sharedLink
300
        + '\''
301
        + ", "
302
        + "itemStatus='"
303
        + itemStatus
304
        + '\''
305
        + "}";
306
  }
307

308
  public static class Builder {
309

310
    protected EnumWrapper<TrashWebLinkRestoredTypeField> type;
311

312
    protected String id;
313

314
    protected final String sequenceId;
315

316
    protected String etag;
317

318
    protected String name;
319

320
    protected String url;
321

322
    protected FolderMini parent;
323

324
    protected String description;
325

326
    protected final TrashWebLinkRestoredPathCollectionField pathCollection;
327

328
    protected Date createdAt;
329

330
    protected Date modifiedAt;
331

332
    protected String trashedAt;
333

334
    protected String purgedAt;
335

336
    protected UserMini createdBy;
337

338
    protected UserMini modifiedBy;
339

340
    protected UserMini ownedBy;
341

342
    protected String sharedLink;
343

344
    protected EnumWrapper<TrashWebLinkRestoredItemStatusField> itemStatus;
345

NEW
346
    public Builder(String sequenceId, TrashWebLinkRestoredPathCollectionField pathCollection) {
×
347
      this.sequenceId = sequenceId;
×
348
      this.pathCollection = pathCollection;
×
349
    }
×
350

351
    public Builder type(TrashWebLinkRestoredTypeField type) {
352
      this.type = new EnumWrapper<TrashWebLinkRestoredTypeField>(type);
×
353
      return this;
×
354
    }
355

356
    public Builder type(EnumWrapper<TrashWebLinkRestoredTypeField> type) {
357
      this.type = type;
×
358
      return this;
×
359
    }
360

361
    public Builder id(String id) {
362
      this.id = id;
×
363
      return this;
×
364
    }
365

366
    public Builder etag(String etag) {
367
      this.etag = etag;
×
368
      return this;
×
369
    }
370

371
    public Builder name(String name) {
372
      this.name = name;
×
373
      return this;
×
374
    }
375

376
    public Builder url(String url) {
377
      this.url = url;
×
378
      return this;
×
379
    }
380

381
    public Builder parent(FolderMini parent) {
382
      this.parent = parent;
×
383
      return this;
×
384
    }
385

386
    public Builder description(String description) {
387
      this.description = description;
×
388
      return this;
×
389
    }
390

391
    public Builder createdAt(Date createdAt) {
392
      this.createdAt = createdAt;
×
393
      return this;
×
394
    }
395

396
    public Builder modifiedAt(Date modifiedAt) {
397
      this.modifiedAt = modifiedAt;
×
398
      return this;
×
399
    }
400

401
    public Builder trashedAt(String trashedAt) {
402
      this.trashedAt = trashedAt;
×
403
      return this;
×
404
    }
405

406
    public Builder purgedAt(String purgedAt) {
407
      this.purgedAt = purgedAt;
×
408
      return this;
×
409
    }
410

411
    public Builder createdBy(UserMini createdBy) {
412
      this.createdBy = createdBy;
×
413
      return this;
×
414
    }
415

416
    public Builder modifiedBy(UserMini modifiedBy) {
417
      this.modifiedBy = modifiedBy;
×
418
      return this;
×
419
    }
420

421
    public Builder ownedBy(UserMini ownedBy) {
422
      this.ownedBy = ownedBy;
×
423
      return this;
×
424
    }
425

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

431
    public Builder itemStatus(TrashWebLinkRestoredItemStatusField itemStatus) {
432
      this.itemStatus = new EnumWrapper<TrashWebLinkRestoredItemStatusField>(itemStatus);
×
433
      return this;
×
434
    }
435

436
    public Builder itemStatus(EnumWrapper<TrashWebLinkRestoredItemStatusField> itemStatus) {
UNCOV
437
      this.itemStatus = itemStatus;
×
438
      return this;
×
439
    }
440

441
    public TrashWebLinkRestored build() {
442
      return new TrashWebLinkRestored(this);
×
443
    }
444
  }
445
}
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