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

box / box-java-sdk-gen / #294

24 Jun 2025 01:20PM UTC coverage: 35.662% (+0.03%) from 35.632%
#294

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%)

11791 existing lines in 624 files now uncovered.

16939 of 47499 relevant lines covered (35.66%)

0.36 hits per line

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

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

20
  @JsonDeserialize(
21
      using = TrashWebLinkRestoredTypeField.TrashWebLinkRestoredTypeFieldDeserializer.class)
22
  @JsonSerialize(
23
      using = TrashWebLinkRestoredTypeField.TrashWebLinkRestoredTypeFieldSerializer.class)
24
  protected EnumWrapper<TrashWebLinkRestoredTypeField> type;
25

26
  protected String id;
27

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

31
  protected String etag;
32

33
  protected String name;
34

35
  protected String url;
36

37
  protected FolderMini parent;
38

39
  protected String description;
40

41
  @JsonProperty("path_collection")
42
  protected final TrashWebLinkRestoredPathCollectionField pathCollection;
43

44
  @JsonProperty("created_at")
45
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
46
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
47
  protected Date createdAt;
48

49
  @JsonProperty("modified_at")
50
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
51
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
52
  protected Date modifiedAt;
53

54
  @JsonProperty("trashed_at")
55
  @Nullable
56
  protected String trashedAt;
57

58
  @JsonProperty("purged_at")
59
  @Nullable
60
  protected String purgedAt;
61

62
  @JsonProperty("created_by")
63
  protected UserMini createdBy;
64

65
  @JsonProperty("modified_by")
66
  protected UserMini modifiedBy;
67

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

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

75
  @JsonDeserialize(
76
      using =
77
          TrashWebLinkRestoredItemStatusField.TrashWebLinkRestoredItemStatusFieldDeserializer.class)
78
  @JsonSerialize(
79
      using =
80
          TrashWebLinkRestoredItemStatusField.TrashWebLinkRestoredItemStatusFieldSerializer.class)
81
  @JsonProperty("item_status")
82
  protected EnumWrapper<TrashWebLinkRestoredItemStatusField> itemStatus;
83

84
  public TrashWebLinkRestored(
85
      @JsonProperty("sequence_id") String sequenceId,
86
      @JsonProperty("path_collection") TrashWebLinkRestoredPathCollectionField pathCollection) {
87
    super();
1✔
88
    this.sequenceId = sequenceId;
1✔
89
    this.pathCollection = pathCollection;
1✔
90
  }
1✔
91

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

115
  public EnumWrapper<TrashWebLinkRestoredTypeField> getType() {
116
    return type;
×
117
  }
118

119
  public String getId() {
120
    return id;
1✔
121
  }
122

123
  public String getSequenceId() {
UNCOV
124
    return sequenceId;
×
125
  }
126

127
  public String getEtag() {
128
    return etag;
×
129
  }
130

131
  public String getName() {
132
    return name;
1✔
133
  }
134

135
  public String getUrl() {
136
    return url;
×
137
  }
138

139
  public FolderMini getParent() {
140
    return parent;
×
141
  }
142

143
  public String getDescription() {
144
    return description;
×
145
  }
146

147
  public TrashWebLinkRestoredPathCollectionField getPathCollection() {
148
    return pathCollection;
×
149
  }
150

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

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

159
  public String getTrashedAt() {
160
    return trashedAt;
×
161
  }
162

163
  public String getPurgedAt() {
164
    return purgedAt;
×
165
  }
166

167
  public UserMini getCreatedBy() {
168
    return createdBy;
×
169
  }
170

171
  public UserMini getModifiedBy() {
172
    return modifiedBy;
×
173
  }
174

175
  public UserMini getOwnedBy() {
176
    return ownedBy;
×
177
  }
178

179
  public String getSharedLink() {
UNCOV
180
    return sharedLink;
×
181
  }
182

183
  public EnumWrapper<TrashWebLinkRestoredItemStatusField> getItemStatus() {
184
    return itemStatus;
×
185
  }
186

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

216
  @Override
217
  public int hashCode() {
UNCOV
218
    return Objects.hash(
×
219
        type,
220
        id,
221
        sequenceId,
222
        etag,
223
        name,
224
        url,
225
        parent,
226
        description,
227
        pathCollection,
228
        createdAt,
229
        modifiedAt,
230
        trashedAt,
231
        purgedAt,
232
        createdBy,
233
        modifiedBy,
234
        ownedBy,
235
        sharedLink,
236
        itemStatus);
237
  }
238

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

316
  public static class Builder extends NullableFieldTracker {
317

318
    protected EnumWrapper<TrashWebLinkRestoredTypeField> type;
319

320
    protected String id;
321

322
    protected final String sequenceId;
323

324
    protected String etag;
325

326
    protected String name;
327

328
    protected String url;
329

330
    protected FolderMini parent;
331

332
    protected String description;
333

334
    protected final TrashWebLinkRestoredPathCollectionField pathCollection;
335

336
    protected Date createdAt;
337

338
    protected Date modifiedAt;
339

340
    protected String trashedAt;
341

342
    protected String purgedAt;
343

344
    protected UserMini createdBy;
345

346
    protected UserMini modifiedBy;
347

348
    protected UserMini ownedBy;
349

350
    protected String sharedLink;
351

352
    protected EnumWrapper<TrashWebLinkRestoredItemStatusField> itemStatus;
353

354
    public Builder(String sequenceId, TrashWebLinkRestoredPathCollectionField pathCollection) {
UNCOV
355
      super();
×
UNCOV
356
      this.sequenceId = sequenceId;
×
357
      this.pathCollection = pathCollection;
×
358
    }
×
359

360
    public Builder type(TrashWebLinkRestoredTypeField type) {
UNCOV
361
      this.type = new EnumWrapper<TrashWebLinkRestoredTypeField>(type);
×
362
      return this;
×
363
    }
364

365
    public Builder type(EnumWrapper<TrashWebLinkRestoredTypeField> type) {
UNCOV
366
      this.type = type;
×
367
      return this;
×
368
    }
369

370
    public Builder id(String id) {
UNCOV
371
      this.id = id;
×
372
      return this;
×
373
    }
374

375
    public Builder etag(String etag) {
UNCOV
376
      this.etag = etag;
×
377
      return this;
×
378
    }
379

380
    public Builder name(String name) {
UNCOV
381
      this.name = name;
×
382
      return this;
×
383
    }
384

385
    public Builder url(String url) {
UNCOV
386
      this.url = url;
×
387
      return this;
×
388
    }
389

390
    public Builder parent(FolderMini parent) {
UNCOV
391
      this.parent = parent;
×
392
      return this;
×
393
    }
394

395
    public Builder description(String description) {
UNCOV
396
      this.description = description;
×
397
      return this;
×
398
    }
399

400
    public Builder createdAt(Date createdAt) {
UNCOV
401
      this.createdAt = createdAt;
×
402
      return this;
×
403
    }
404

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

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

416
    public Builder purgedAt(String purgedAt) {
417
      this.purgedAt = purgedAt;
×
418
      this.markNullableFieldAsSet("purged_at");
×
UNCOV
419
      return this;
×
420
    }
421

422
    public Builder createdBy(UserMini createdBy) {
423
      this.createdBy = createdBy;
×
UNCOV
424
      return this;
×
425
    }
426

427
    public Builder modifiedBy(UserMini modifiedBy) {
428
      this.modifiedBy = modifiedBy;
×
UNCOV
429
      return this;
×
430
    }
431

432
    public Builder ownedBy(UserMini ownedBy) {
433
      this.ownedBy = ownedBy;
×
UNCOV
434
      return this;
×
435
    }
436

437
    public Builder sharedLink(String sharedLink) {
438
      this.sharedLink = sharedLink;
×
UNCOV
439
      this.markNullableFieldAsSet("shared_link");
×
UNCOV
440
      return this;
×
441
    }
442

443
    public Builder itemStatus(TrashWebLinkRestoredItemStatusField itemStatus) {
UNCOV
444
      this.itemStatus = new EnumWrapper<TrashWebLinkRestoredItemStatusField>(itemStatus);
×
UNCOV
445
      return this;
×
446
    }
447

448
    public Builder itemStatus(EnumWrapper<TrashWebLinkRestoredItemStatusField> itemStatus) {
UNCOV
449
      this.itemStatus = itemStatus;
×
UNCOV
450
      return this;
×
451
    }
452

453
    public TrashWebLinkRestored build() {
UNCOV
454
      return new TrashWebLinkRestored(this);
×
455
    }
456
  }
457
}
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