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

box / box-java-sdk-gen / #295

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

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

11794 existing lines in 627 files now uncovered.

16937 of 47495 relevant lines covered (35.66%)

0.36 hits per line

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

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

20
  @JsonDeserialize(using = TrashWebLinkTypeField.TrashWebLinkTypeFieldDeserializer.class)
21
  @JsonSerialize(using = TrashWebLinkTypeField.TrashWebLinkTypeFieldSerializer.class)
22
  protected EnumWrapper<TrashWebLinkTypeField> type;
23

24
  protected String id;
25

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

29
  protected String etag;
30

31
  protected String name;
32

33
  protected String url;
34

35
  protected FolderMini parent;
36

37
  protected String description;
38

39
  @JsonProperty("path_collection")
40
  protected TrashWebLinkPathCollectionField pathCollection;
41

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

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

52
  @JsonProperty("trashed_at")
53
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
54
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
55
  @Nullable
56
  protected Date trashedAt;
57

58
  @JsonProperty("purged_at")
59
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
60
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
61
  @Nullable
62
  protected Date purgedAt;
63

64
  @JsonProperty("created_by")
65
  protected UserMini createdBy;
66

67
  @JsonProperty("modified_by")
68
  protected UserMini modifiedBy;
69

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

73
  @JsonProperty("shared_link")
74
  @Nullable
75
  protected String sharedLink;
76

77
  @JsonDeserialize(
78
      using = TrashWebLinkItemStatusField.TrashWebLinkItemStatusFieldDeserializer.class)
79
  @JsonSerialize(using = TrashWebLinkItemStatusField.TrashWebLinkItemStatusFieldSerializer.class)
80
  @JsonProperty("item_status")
81
  protected EnumWrapper<TrashWebLinkItemStatusField> itemStatus;
82

83
  public TrashWebLink() {
84
    super();
1✔
85
  }
1✔
86

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

110
  public EnumWrapper<TrashWebLinkTypeField> getType() {
111
    return type;
×
112
  }
113

114
  public String getId() {
115
    return id;
1✔
116
  }
117

118
  public String getSequenceId() {
UNCOV
119
    return sequenceId;
×
120
  }
121

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

126
  public String getName() {
127
    return name;
1✔
128
  }
129

130
  public String getUrl() {
131
    return url;
×
132
  }
133

134
  public FolderMini getParent() {
135
    return parent;
×
136
  }
137

138
  public String getDescription() {
139
    return description;
×
140
  }
141

142
  public TrashWebLinkPathCollectionField getPathCollection() {
143
    return pathCollection;
×
144
  }
145

146
  public Date getCreatedAt() {
147
    return createdAt;
×
148
  }
149

150
  public Date getModifiedAt() {
151
    return modifiedAt;
×
152
  }
153

154
  public Date getTrashedAt() {
155
    return trashedAt;
×
156
  }
157

158
  public Date getPurgedAt() {
159
    return purgedAt;
×
160
  }
161

162
  public UserMini getCreatedBy() {
163
    return createdBy;
×
164
  }
165

166
  public UserMini getModifiedBy() {
167
    return modifiedBy;
×
168
  }
169

170
  public UserMini getOwnedBy() {
171
    return ownedBy;
×
172
  }
173

174
  public String getSharedLink() {
UNCOV
175
    return sharedLink;
×
176
  }
177

178
  public EnumWrapper<TrashWebLinkItemStatusField> getItemStatus() {
179
    return itemStatus;
×
180
  }
181

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

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

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

UNCOV
311
  public static class Builder extends NullableFieldTracker {
×
312

313
    protected EnumWrapper<TrashWebLinkTypeField> type;
314

315
    protected String id;
316

317
    protected String sequenceId;
318

319
    protected String etag;
320

321
    protected String name;
322

323
    protected String url;
324

325
    protected FolderMini parent;
326

327
    protected String description;
328

329
    protected TrashWebLinkPathCollectionField pathCollection;
330

331
    protected Date createdAt;
332

333
    protected Date modifiedAt;
334

335
    protected Date trashedAt;
336

337
    protected Date purgedAt;
338

339
    protected UserMini createdBy;
340

341
    protected UserMini modifiedBy;
342

343
    protected UserMini ownedBy;
344

345
    protected String sharedLink;
346

347
    protected EnumWrapper<TrashWebLinkItemStatusField> itemStatus;
348

349
    public Builder type(TrashWebLinkTypeField type) {
UNCOV
350
      this.type = new EnumWrapper<TrashWebLinkTypeField>(type);
×
UNCOV
351
      return this;
×
352
    }
353

354
    public Builder type(EnumWrapper<TrashWebLinkTypeField> type) {
UNCOV
355
      this.type = type;
×
UNCOV
356
      return this;
×
357
    }
358

359
    public Builder id(String id) {
UNCOV
360
      this.id = id;
×
UNCOV
361
      return this;
×
362
    }
363

364
    public Builder sequenceId(String sequenceId) {
UNCOV
365
      this.sequenceId = sequenceId;
×
UNCOV
366
      return this;
×
367
    }
368

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

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

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

384
    public Builder parent(FolderMini parent) {
UNCOV
385
      this.parent = parent;
×
UNCOV
386
      return this;
×
387
    }
388

389
    public Builder description(String description) {
UNCOV
390
      this.description = description;
×
UNCOV
391
      return this;
×
392
    }
393

394
    public Builder pathCollection(TrashWebLinkPathCollectionField pathCollection) {
UNCOV
395
      this.pathCollection = pathCollection;
×
UNCOV
396
      return this;
×
397
    }
398

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

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

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

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

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

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

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

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

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

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

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