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

box / box-java-sdk-gen / #293

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

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.05
/src/main/java/com/box/sdkgen/schemas/userfull/UserFull.java
1
package com.box.sdkgen.schemas.userfull;
2

3
import com.box.sdkgen.schemas.trackingcode.TrackingCode;
4
import com.box.sdkgen.schemas.user.User;
5
import com.box.sdkgen.schemas.user.UserNotificationEmailField;
6
import com.box.sdkgen.schemas.user.UserStatusField;
7
import com.box.sdkgen.schemas.userbase.UserBaseTypeField;
8
import com.box.sdkgen.serialization.json.EnumWrapper;
9
import com.fasterxml.jackson.annotation.JsonFilter;
10
import com.fasterxml.jackson.annotation.JsonProperty;
11
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
12
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
13
import java.util.Date;
14
import java.util.List;
15
import java.util.Objects;
16

17
@JsonFilter("nullablePropertyFilter")
18
public class UserFull extends User {
19

20
  @JsonDeserialize(using = UserFullRoleField.UserFullRoleFieldDeserializer.class)
21
  @JsonSerialize(using = UserFullRoleField.UserFullRoleFieldSerializer.class)
22
  protected EnumWrapper<UserFullRoleField> role;
23

24
  @JsonProperty("tracking_codes")
25
  protected List<TrackingCode> trackingCodes;
26

27
  @JsonProperty("can_see_managed_users")
28
  protected Boolean canSeeManagedUsers;
29

30
  @JsonProperty("is_sync_enabled")
31
  protected Boolean isSyncEnabled;
32

33
  @JsonProperty("is_external_collab_restricted")
34
  protected Boolean isExternalCollabRestricted;
35

36
  @JsonProperty("is_exempt_from_device_limits")
37
  protected Boolean isExemptFromDeviceLimits;
38

39
  @JsonProperty("is_exempt_from_login_verification")
40
  protected Boolean isExemptFromLoginVerification;
41

42
  protected UserFullEnterpriseField enterprise;
43

44
  @JsonProperty("my_tags")
45
  protected List<String> myTags;
46

47
  protected String hostname;
48

49
  @JsonProperty("is_platform_access_only")
50
  protected Boolean isPlatformAccessOnly;
51

52
  @JsonProperty("external_app_user_id")
53
  protected String externalAppUserId;
54

55
  public UserFull(@JsonProperty("id") String id) {
56
    super(id);
1✔
57
  }
1✔
58

59
  protected UserFull(Builder builder) {
60
    super(builder);
×
61
    this.role = builder.role;
×
62
    this.trackingCodes = builder.trackingCodes;
×
63
    this.canSeeManagedUsers = builder.canSeeManagedUsers;
×
64
    this.isSyncEnabled = builder.isSyncEnabled;
×
65
    this.isExternalCollabRestricted = builder.isExternalCollabRestricted;
×
66
    this.isExemptFromDeviceLimits = builder.isExemptFromDeviceLimits;
×
67
    this.isExemptFromLoginVerification = builder.isExemptFromLoginVerification;
×
68
    this.enterprise = builder.enterprise;
×
69
    this.myTags = builder.myTags;
×
70
    this.hostname = builder.hostname;
×
71
    this.isPlatformAccessOnly = builder.isPlatformAccessOnly;
×
UNCOV
72
    this.externalAppUserId = builder.externalAppUserId;
×
UNCOV
73
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
74
  }
×
75

76
  public EnumWrapper<UserFullRoleField> getRole() {
77
    return role;
1✔
78
  }
79

80
  public List<TrackingCode> getTrackingCodes() {
UNCOV
81
    return trackingCodes;
×
82
  }
83

84
  public Boolean getCanSeeManagedUsers() {
UNCOV
85
    return canSeeManagedUsers;
×
86
  }
87

88
  public Boolean getIsSyncEnabled() {
UNCOV
89
    return isSyncEnabled;
×
90
  }
91

92
  public Boolean getIsExternalCollabRestricted() {
UNCOV
93
    return isExternalCollabRestricted;
×
94
  }
95

96
  public Boolean getIsExemptFromDeviceLimits() {
UNCOV
97
    return isExemptFromDeviceLimits;
×
98
  }
99

100
  public Boolean getIsExemptFromLoginVerification() {
UNCOV
101
    return isExemptFromLoginVerification;
×
102
  }
103

104
  public UserFullEnterpriseField getEnterprise() {
105
    return enterprise;
1✔
106
  }
107

108
  public List<String> getMyTags() {
UNCOV
109
    return myTags;
×
110
  }
111

112
  public String getHostname() {
UNCOV
113
    return hostname;
×
114
  }
115

116
  public Boolean getIsPlatformAccessOnly() {
UNCOV
117
    return isPlatformAccessOnly;
×
118
  }
119

120
  public String getExternalAppUserId() {
UNCOV
121
    return externalAppUserId;
×
122
  }
123

124
  @Override
125
  public boolean equals(Object o) {
126
    if (this == o) {
×
127
      return true;
×
128
    }
129
    if (o == null || getClass() != o.getClass()) {
×
130
      return false;
×
131
    }
132
    UserFull casted = (UserFull) o;
×
133
    return Objects.equals(id, casted.id)
×
134
        && Objects.equals(type, casted.type)
×
135
        && Objects.equals(name, casted.name)
×
136
        && Objects.equals(login, casted.login)
×
137
        && Objects.equals(createdAt, casted.createdAt)
×
138
        && Objects.equals(modifiedAt, casted.modifiedAt)
×
139
        && Objects.equals(language, casted.language)
×
140
        && Objects.equals(timezone, casted.timezone)
×
141
        && Objects.equals(spaceAmount, casted.spaceAmount)
×
142
        && Objects.equals(spaceUsed, casted.spaceUsed)
×
143
        && Objects.equals(maxUploadSize, casted.maxUploadSize)
×
144
        && Objects.equals(status, casted.status)
×
145
        && Objects.equals(jobTitle, casted.jobTitle)
×
146
        && Objects.equals(phone, casted.phone)
×
147
        && Objects.equals(address, casted.address)
×
148
        && Objects.equals(avatarUrl, casted.avatarUrl)
×
149
        && Objects.equals(notificationEmail, casted.notificationEmail)
×
150
        && Objects.equals(role, casted.role)
×
151
        && Objects.equals(trackingCodes, casted.trackingCodes)
×
152
        && Objects.equals(canSeeManagedUsers, casted.canSeeManagedUsers)
×
153
        && Objects.equals(isSyncEnabled, casted.isSyncEnabled)
×
154
        && Objects.equals(isExternalCollabRestricted, casted.isExternalCollabRestricted)
×
155
        && Objects.equals(isExemptFromDeviceLimits, casted.isExemptFromDeviceLimits)
×
156
        && Objects.equals(isExemptFromLoginVerification, casted.isExemptFromLoginVerification)
×
157
        && Objects.equals(enterprise, casted.enterprise)
×
158
        && Objects.equals(myTags, casted.myTags)
×
UNCOV
159
        && Objects.equals(hostname, casted.hostname)
×
UNCOV
160
        && Objects.equals(isPlatformAccessOnly, casted.isPlatformAccessOnly)
×
UNCOV
161
        && Objects.equals(externalAppUserId, casted.externalAppUserId);
×
162
  }
163

164
  @Override
165
  public int hashCode() {
UNCOV
166
    return Objects.hash(
×
167
        id,
168
        type,
169
        name,
170
        login,
171
        createdAt,
172
        modifiedAt,
173
        language,
174
        timezone,
175
        spaceAmount,
176
        spaceUsed,
177
        maxUploadSize,
178
        status,
179
        jobTitle,
180
        phone,
181
        address,
182
        avatarUrl,
183
        notificationEmail,
184
        role,
185
        trackingCodes,
186
        canSeeManagedUsers,
187
        isSyncEnabled,
188
        isExternalCollabRestricted,
189
        isExemptFromDeviceLimits,
190
        isExemptFromLoginVerification,
191
        enterprise,
192
        myTags,
193
        hostname,
194
        isPlatformAccessOnly,
195
        externalAppUserId);
196
  }
197

198
  @Override
199
  public String toString() {
UNCOV
200
    return "UserFull{"
×
201
        + "id='"
202
        + id
203
        + '\''
204
        + ", "
205
        + "type='"
206
        + type
207
        + '\''
208
        + ", "
209
        + "name='"
210
        + name
211
        + '\''
212
        + ", "
213
        + "login='"
214
        + login
215
        + '\''
216
        + ", "
217
        + "createdAt='"
218
        + createdAt
219
        + '\''
220
        + ", "
221
        + "modifiedAt='"
222
        + modifiedAt
223
        + '\''
224
        + ", "
225
        + "language='"
226
        + language
227
        + '\''
228
        + ", "
229
        + "timezone='"
230
        + timezone
231
        + '\''
232
        + ", "
233
        + "spaceAmount='"
234
        + spaceAmount
235
        + '\''
236
        + ", "
237
        + "spaceUsed='"
238
        + spaceUsed
239
        + '\''
240
        + ", "
241
        + "maxUploadSize='"
242
        + maxUploadSize
243
        + '\''
244
        + ", "
245
        + "status='"
246
        + status
247
        + '\''
248
        + ", "
249
        + "jobTitle='"
250
        + jobTitle
251
        + '\''
252
        + ", "
253
        + "phone='"
254
        + phone
255
        + '\''
256
        + ", "
257
        + "address='"
258
        + address
259
        + '\''
260
        + ", "
261
        + "avatarUrl='"
262
        + avatarUrl
263
        + '\''
264
        + ", "
265
        + "notificationEmail='"
266
        + notificationEmail
267
        + '\''
268
        + ", "
269
        + "role='"
270
        + role
271
        + '\''
272
        + ", "
273
        + "trackingCodes='"
274
        + trackingCodes
275
        + '\''
276
        + ", "
277
        + "canSeeManagedUsers='"
278
        + canSeeManagedUsers
279
        + '\''
280
        + ", "
281
        + "isSyncEnabled='"
282
        + isSyncEnabled
283
        + '\''
284
        + ", "
285
        + "isExternalCollabRestricted='"
286
        + isExternalCollabRestricted
287
        + '\''
288
        + ", "
289
        + "isExemptFromDeviceLimits='"
290
        + isExemptFromDeviceLimits
291
        + '\''
292
        + ", "
293
        + "isExemptFromLoginVerification='"
294
        + isExemptFromLoginVerification
295
        + '\''
296
        + ", "
297
        + "enterprise='"
298
        + enterprise
299
        + '\''
300
        + ", "
301
        + "myTags='"
302
        + myTags
303
        + '\''
304
        + ", "
305
        + "hostname='"
306
        + hostname
307
        + '\''
308
        + ", "
309
        + "isPlatformAccessOnly='"
310
        + isPlatformAccessOnly
311
        + '\''
312
        + ", "
313
        + "externalAppUserId='"
314
        + externalAppUserId
315
        + '\''
316
        + "}";
317
  }
318

319
  public static class Builder extends User.Builder {
320

321
    protected EnumWrapper<UserFullRoleField> role;
322

323
    protected List<TrackingCode> trackingCodes;
324

325
    protected Boolean canSeeManagedUsers;
326

327
    protected Boolean isSyncEnabled;
328

329
    protected Boolean isExternalCollabRestricted;
330

331
    protected Boolean isExemptFromDeviceLimits;
332

333
    protected Boolean isExemptFromLoginVerification;
334

335
    protected UserFullEnterpriseField enterprise;
336

337
    protected List<String> myTags;
338

339
    protected String hostname;
340

341
    protected Boolean isPlatformAccessOnly;
342

343
    protected String externalAppUserId;
344

345
    public Builder(String id) {
UNCOV
346
      super(id);
×
347
    }
×
348

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

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

359
    public Builder trackingCodes(List<TrackingCode> trackingCodes) {
UNCOV
360
      this.trackingCodes = trackingCodes;
×
UNCOV
361
      return this;
×
362
    }
363

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

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

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

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

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

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

394
    public Builder myTags(List<String> myTags) {
UNCOV
395
      this.myTags = myTags;
×
UNCOV
396
      return this;
×
397
    }
398

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

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

409
    public Builder externalAppUserId(String externalAppUserId) {
UNCOV
410
      this.externalAppUserId = externalAppUserId;
×
UNCOV
411
      return this;
×
412
    }
413

414
    @Override
415
    public Builder type(UserBaseTypeField type) {
UNCOV
416
      this.type = new EnumWrapper<UserBaseTypeField>(type);
×
UNCOV
417
      return this;
×
418
    }
419

420
    @Override
421
    public Builder type(EnumWrapper<UserBaseTypeField> type) {
UNCOV
422
      this.type = type;
×
UNCOV
423
      return this;
×
424
    }
425

426
    @Override
427
    public Builder name(String name) {
UNCOV
428
      this.name = name;
×
UNCOV
429
      return this;
×
430
    }
431

432
    @Override
433
    public Builder login(String login) {
UNCOV
434
      this.login = login;
×
UNCOV
435
      return this;
×
436
    }
437

438
    @Override
439
    public Builder createdAt(Date createdAt) {
UNCOV
440
      this.createdAt = createdAt;
×
UNCOV
441
      return this;
×
442
    }
443

444
    @Override
445
    public Builder modifiedAt(Date modifiedAt) {
UNCOV
446
      this.modifiedAt = modifiedAt;
×
UNCOV
447
      return this;
×
448
    }
449

450
    @Override
451
    public Builder language(String language) {
UNCOV
452
      this.language = language;
×
UNCOV
453
      return this;
×
454
    }
455

456
    @Override
457
    public Builder timezone(String timezone) {
UNCOV
458
      this.timezone = timezone;
×
UNCOV
459
      return this;
×
460
    }
461

462
    @Override
463
    public Builder spaceAmount(Long spaceAmount) {
UNCOV
464
      this.spaceAmount = spaceAmount;
×
UNCOV
465
      return this;
×
466
    }
467

468
    @Override
469
    public Builder spaceUsed(Long spaceUsed) {
UNCOV
470
      this.spaceUsed = spaceUsed;
×
UNCOV
471
      return this;
×
472
    }
473

474
    @Override
475
    public Builder maxUploadSize(Long maxUploadSize) {
UNCOV
476
      this.maxUploadSize = maxUploadSize;
×
UNCOV
477
      return this;
×
478
    }
479

480
    @Override
481
    public Builder status(UserStatusField status) {
UNCOV
482
      this.status = new EnumWrapper<UserStatusField>(status);
×
UNCOV
483
      return this;
×
484
    }
485

486
    @Override
487
    public Builder status(EnumWrapper<UserStatusField> status) {
UNCOV
488
      this.status = status;
×
UNCOV
489
      return this;
×
490
    }
491

492
    @Override
493
    public Builder jobTitle(String jobTitle) {
UNCOV
494
      this.jobTitle = jobTitle;
×
UNCOV
495
      return this;
×
496
    }
497

498
    @Override
499
    public Builder phone(String phone) {
UNCOV
500
      this.phone = phone;
×
UNCOV
501
      return this;
×
502
    }
503

504
    @Override
505
    public Builder address(String address) {
UNCOV
506
      this.address = address;
×
UNCOV
507
      return this;
×
508
    }
509

510
    @Override
511
    public Builder avatarUrl(String avatarUrl) {
UNCOV
512
      this.avatarUrl = avatarUrl;
×
UNCOV
513
      return this;
×
514
    }
515

516
    @Override
517
    public Builder notificationEmail(UserNotificationEmailField notificationEmail) {
UNCOV
518
      this.notificationEmail = notificationEmail;
×
UNCOV
519
      this.markNullableFieldAsSet("notification_email");
×
520
      return this;
×
521
    }
522

523
    public UserFull build() {
UNCOV
524
      return new UserFull(this);
×
525
    }
526
  }
527
}
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