• 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

39.2
/src/main/java/com/box/sdkgen/managers/users/UpdateUserByIdRequestBody.java
1
package com.box.sdkgen.managers.users;
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.schemas.trackingcode.TrackingCode;
7
import com.box.sdkgen.serialization.json.EnumWrapper;
8
import com.fasterxml.jackson.annotation.JsonFilter;
9
import com.fasterxml.jackson.annotation.JsonProperty;
10
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
11
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
12
import java.util.List;
13
import java.util.Objects;
14

15
@JsonFilter("nullablePropertyFilter")
16
public class UpdateUserByIdRequestBody extends SerializableObject {
17

18
  @Nullable protected String enterprise;
19

20
  protected Boolean notify;
21

22
  protected String name;
23

24
  protected String login;
25

26
  @JsonDeserialize(
27
      using =
28
          UpdateUserByIdRequestBodyRoleField.UpdateUserByIdRequestBodyRoleFieldDeserializer.class)
29
  @JsonSerialize(
30
      using = UpdateUserByIdRequestBodyRoleField.UpdateUserByIdRequestBodyRoleFieldSerializer.class)
31
  protected EnumWrapper<UpdateUserByIdRequestBodyRoleField> role;
32

33
  protected String language;
34

35
  @JsonProperty("is_sync_enabled")
36
  protected Boolean isSyncEnabled;
37

38
  @JsonProperty("job_title")
39
  protected String jobTitle;
40

41
  protected String phone;
42

43
  protected String address;
44

45
  @JsonProperty("tracking_codes")
46
  protected List<TrackingCode> trackingCodes;
47

48
  @JsonProperty("can_see_managed_users")
49
  protected Boolean canSeeManagedUsers;
50

51
  protected String timezone;
52

53
  @JsonProperty("is_external_collab_restricted")
54
  protected Boolean isExternalCollabRestricted;
55

56
  @JsonProperty("is_exempt_from_device_limits")
57
  protected Boolean isExemptFromDeviceLimits;
58

59
  @JsonProperty("is_exempt_from_login_verification")
60
  protected Boolean isExemptFromLoginVerification;
61

62
  @JsonProperty("is_password_reset_required")
63
  protected Boolean isPasswordResetRequired;
64

65
  @JsonDeserialize(
66
      using =
67
          UpdateUserByIdRequestBodyStatusField.UpdateUserByIdRequestBodyStatusFieldDeserializer
68
              .class)
69
  @JsonSerialize(
70
      using =
71
          UpdateUserByIdRequestBodyStatusField.UpdateUserByIdRequestBodyStatusFieldSerializer.class)
72
  protected EnumWrapper<UpdateUserByIdRequestBodyStatusField> status;
73

74
  @JsonProperty("space_amount")
75
  protected Long spaceAmount;
76

77
  @JsonProperty("notification_email")
78
  @Nullable
79
  protected UpdateUserByIdRequestBodyNotificationEmailField notificationEmail;
80

81
  @JsonProperty("external_app_user_id")
82
  protected String externalAppUserId;
83

84
  public UpdateUserByIdRequestBody() {
UNCOV
85
    super();
×
UNCOV
86
  }
×
87

88
  protected UpdateUserByIdRequestBody(Builder builder) {
89
    super();
1✔
90
    this.enterprise = builder.enterprise;
1✔
91
    this.notify = builder.notify;
1✔
92
    this.name = builder.name;
1✔
93
    this.login = builder.login;
1✔
94
    this.role = builder.role;
1✔
95
    this.language = builder.language;
1✔
96
    this.isSyncEnabled = builder.isSyncEnabled;
1✔
97
    this.jobTitle = builder.jobTitle;
1✔
98
    this.phone = builder.phone;
1✔
99
    this.address = builder.address;
1✔
100
    this.trackingCodes = builder.trackingCodes;
1✔
101
    this.canSeeManagedUsers = builder.canSeeManagedUsers;
1✔
102
    this.timezone = builder.timezone;
1✔
103
    this.isExternalCollabRestricted = builder.isExternalCollabRestricted;
1✔
104
    this.isExemptFromDeviceLimits = builder.isExemptFromDeviceLimits;
1✔
105
    this.isExemptFromLoginVerification = builder.isExemptFromLoginVerification;
1✔
106
    this.isPasswordResetRequired = builder.isPasswordResetRequired;
1✔
107
    this.status = builder.status;
1✔
108
    this.spaceAmount = builder.spaceAmount;
1✔
109
    this.notificationEmail = builder.notificationEmail;
1✔
110
    this.externalAppUserId = builder.externalAppUserId;
1✔
111
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
112
  }
1✔
113

114
  public String getEnterprise() {
115
    return enterprise;
1✔
116
  }
117

118
  public Boolean getNotify() {
119
    return notify;
1✔
120
  }
121

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

126
  public String getLogin() {
127
    return login;
1✔
128
  }
129

130
  public EnumWrapper<UpdateUserByIdRequestBodyRoleField> getRole() {
131
    return role;
1✔
132
  }
133

134
  public String getLanguage() {
135
    return language;
1✔
136
  }
137

138
  public Boolean getIsSyncEnabled() {
139
    return isSyncEnabled;
1✔
140
  }
141

142
  public String getJobTitle() {
143
    return jobTitle;
1✔
144
  }
145

146
  public String getPhone() {
147
    return phone;
1✔
148
  }
149

150
  public String getAddress() {
151
    return address;
1✔
152
  }
153

154
  public List<TrackingCode> getTrackingCodes() {
155
    return trackingCodes;
1✔
156
  }
157

158
  public Boolean getCanSeeManagedUsers() {
159
    return canSeeManagedUsers;
1✔
160
  }
161

162
  public String getTimezone() {
163
    return timezone;
1✔
164
  }
165

166
  public Boolean getIsExternalCollabRestricted() {
167
    return isExternalCollabRestricted;
1✔
168
  }
169

170
  public Boolean getIsExemptFromDeviceLimits() {
171
    return isExemptFromDeviceLimits;
1✔
172
  }
173

174
  public Boolean getIsExemptFromLoginVerification() {
175
    return isExemptFromLoginVerification;
1✔
176
  }
177

178
  public Boolean getIsPasswordResetRequired() {
179
    return isPasswordResetRequired;
1✔
180
  }
181

182
  public EnumWrapper<UpdateUserByIdRequestBodyStatusField> getStatus() {
183
    return status;
1✔
184
  }
185

186
  public Long getSpaceAmount() {
187
    return spaceAmount;
1✔
188
  }
189

190
  public UpdateUserByIdRequestBodyNotificationEmailField getNotificationEmail() {
191
    return notificationEmail;
1✔
192
  }
193

194
  public String getExternalAppUserId() {
195
    return externalAppUserId;
1✔
196
  }
197

198
  @Override
199
  public boolean equals(Object o) {
200
    if (this == o) {
×
201
      return true;
×
202
    }
203
    if (o == null || getClass() != o.getClass()) {
×
204
      return false;
×
205
    }
206
    UpdateUserByIdRequestBody casted = (UpdateUserByIdRequestBody) o;
×
207
    return Objects.equals(enterprise, casted.enterprise)
×
208
        && Objects.equals(notify, casted.notify)
×
209
        && Objects.equals(name, casted.name)
×
210
        && Objects.equals(login, casted.login)
×
211
        && Objects.equals(role, casted.role)
×
212
        && Objects.equals(language, casted.language)
×
213
        && Objects.equals(isSyncEnabled, casted.isSyncEnabled)
×
214
        && Objects.equals(jobTitle, casted.jobTitle)
×
215
        && Objects.equals(phone, casted.phone)
×
216
        && Objects.equals(address, casted.address)
×
217
        && Objects.equals(trackingCodes, casted.trackingCodes)
×
218
        && Objects.equals(canSeeManagedUsers, casted.canSeeManagedUsers)
×
219
        && Objects.equals(timezone, casted.timezone)
×
220
        && Objects.equals(isExternalCollabRestricted, casted.isExternalCollabRestricted)
×
221
        && Objects.equals(isExemptFromDeviceLimits, casted.isExemptFromDeviceLimits)
×
UNCOV
222
        && Objects.equals(isExemptFromLoginVerification, casted.isExemptFromLoginVerification)
×
UNCOV
223
        && Objects.equals(isPasswordResetRequired, casted.isPasswordResetRequired)
×
UNCOV
224
        && Objects.equals(status, casted.status)
×
UNCOV
225
        && Objects.equals(spaceAmount, casted.spaceAmount)
×
226
        && Objects.equals(notificationEmail, casted.notificationEmail)
×
UNCOV
227
        && Objects.equals(externalAppUserId, casted.externalAppUserId);
×
228
  }
229

230
  @Override
231
  public int hashCode() {
UNCOV
232
    return Objects.hash(
×
233
        enterprise,
234
        notify,
235
        name,
236
        login,
237
        role,
238
        language,
239
        isSyncEnabled,
240
        jobTitle,
241
        phone,
242
        address,
243
        trackingCodes,
244
        canSeeManagedUsers,
245
        timezone,
246
        isExternalCollabRestricted,
247
        isExemptFromDeviceLimits,
248
        isExemptFromLoginVerification,
249
        isPasswordResetRequired,
250
        status,
251
        spaceAmount,
252
        notificationEmail,
253
        externalAppUserId);
254
  }
255

256
  @Override
257
  public String toString() {
UNCOV
258
    return "UpdateUserByIdRequestBody{"
×
259
        + "enterprise='"
260
        + enterprise
261
        + '\''
262
        + ", "
263
        + "notify='"
264
        + notify
265
        + '\''
266
        + ", "
267
        + "name='"
268
        + name
269
        + '\''
270
        + ", "
271
        + "login='"
272
        + login
273
        + '\''
274
        + ", "
275
        + "role='"
276
        + role
277
        + '\''
278
        + ", "
279
        + "language='"
280
        + language
281
        + '\''
282
        + ", "
283
        + "isSyncEnabled='"
284
        + isSyncEnabled
285
        + '\''
286
        + ", "
287
        + "jobTitle='"
288
        + jobTitle
289
        + '\''
290
        + ", "
291
        + "phone='"
292
        + phone
293
        + '\''
294
        + ", "
295
        + "address='"
296
        + address
297
        + '\''
298
        + ", "
299
        + "trackingCodes='"
300
        + trackingCodes
301
        + '\''
302
        + ", "
303
        + "canSeeManagedUsers='"
304
        + canSeeManagedUsers
305
        + '\''
306
        + ", "
307
        + "timezone='"
308
        + timezone
309
        + '\''
310
        + ", "
311
        + "isExternalCollabRestricted='"
312
        + isExternalCollabRestricted
313
        + '\''
314
        + ", "
315
        + "isExemptFromDeviceLimits='"
316
        + isExemptFromDeviceLimits
317
        + '\''
318
        + ", "
319
        + "isExemptFromLoginVerification='"
320
        + isExemptFromLoginVerification
321
        + '\''
322
        + ", "
323
        + "isPasswordResetRequired='"
324
        + isPasswordResetRequired
325
        + '\''
326
        + ", "
327
        + "status='"
328
        + status
329
        + '\''
330
        + ", "
331
        + "spaceAmount='"
332
        + spaceAmount
333
        + '\''
334
        + ", "
335
        + "notificationEmail='"
336
        + notificationEmail
337
        + '\''
338
        + ", "
339
        + "externalAppUserId='"
340
        + externalAppUserId
341
        + '\''
342
        + "}";
343
  }
344

345
  public static class Builder extends NullableFieldTracker {
1✔
346

347
    protected String enterprise;
348

349
    protected Boolean notify;
350

351
    protected String name;
352

353
    protected String login;
354

355
    protected EnumWrapper<UpdateUserByIdRequestBodyRoleField> role;
356

357
    protected String language;
358

359
    protected Boolean isSyncEnabled;
360

361
    protected String jobTitle;
362

363
    protected String phone;
364

365
    protected String address;
366

367
    protected List<TrackingCode> trackingCodes;
368

369
    protected Boolean canSeeManagedUsers;
370

371
    protected String timezone;
372

373
    protected Boolean isExternalCollabRestricted;
374

375
    protected Boolean isExemptFromDeviceLimits;
376

377
    protected Boolean isExemptFromLoginVerification;
378

379
    protected Boolean isPasswordResetRequired;
380

381
    protected EnumWrapper<UpdateUserByIdRequestBodyStatusField> status;
382

383
    protected Long spaceAmount;
384

385
    protected UpdateUserByIdRequestBodyNotificationEmailField notificationEmail;
386

387
    protected String externalAppUserId;
388

389
    public Builder enterprise(String enterprise) {
390
      this.enterprise = enterprise;
×
UNCOV
391
      this.markNullableFieldAsSet("enterprise");
×
UNCOV
392
      return this;
×
393
    }
394

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

400
    public Builder name(String name) {
401
      this.name = name;
1✔
402
      return this;
1✔
403
    }
404

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

410
    public Builder role(UpdateUserByIdRequestBodyRoleField role) {
UNCOV
411
      this.role = new EnumWrapper<UpdateUserByIdRequestBodyRoleField>(role);
×
UNCOV
412
      return this;
×
413
    }
414

415
    public Builder role(EnumWrapper<UpdateUserByIdRequestBodyRoleField> role) {
UNCOV
416
      this.role = role;
×
UNCOV
417
      return this;
×
418
    }
419

420
    public Builder language(String language) {
UNCOV
421
      this.language = language;
×
UNCOV
422
      return this;
×
423
    }
424

425
    public Builder isSyncEnabled(Boolean isSyncEnabled) {
UNCOV
426
      this.isSyncEnabled = isSyncEnabled;
×
UNCOV
427
      return this;
×
428
    }
429

430
    public Builder jobTitle(String jobTitle) {
UNCOV
431
      this.jobTitle = jobTitle;
×
UNCOV
432
      return this;
×
433
    }
434

435
    public Builder phone(String phone) {
UNCOV
436
      this.phone = phone;
×
UNCOV
437
      return this;
×
438
    }
439

440
    public Builder address(String address) {
UNCOV
441
      this.address = address;
×
UNCOV
442
      return this;
×
443
    }
444

445
    public Builder trackingCodes(List<TrackingCode> trackingCodes) {
UNCOV
446
      this.trackingCodes = trackingCodes;
×
UNCOV
447
      return this;
×
448
    }
449

450
    public Builder canSeeManagedUsers(Boolean canSeeManagedUsers) {
UNCOV
451
      this.canSeeManagedUsers = canSeeManagedUsers;
×
UNCOV
452
      return this;
×
453
    }
454

455
    public Builder timezone(String timezone) {
UNCOV
456
      this.timezone = timezone;
×
UNCOV
457
      return this;
×
458
    }
459

460
    public Builder isExternalCollabRestricted(Boolean isExternalCollabRestricted) {
UNCOV
461
      this.isExternalCollabRestricted = isExternalCollabRestricted;
×
UNCOV
462
      return this;
×
463
    }
464

465
    public Builder isExemptFromDeviceLimits(Boolean isExemptFromDeviceLimits) {
UNCOV
466
      this.isExemptFromDeviceLimits = isExemptFromDeviceLimits;
×
UNCOV
467
      return this;
×
468
    }
469

470
    public Builder isExemptFromLoginVerification(Boolean isExemptFromLoginVerification) {
UNCOV
471
      this.isExemptFromLoginVerification = isExemptFromLoginVerification;
×
UNCOV
472
      return this;
×
473
    }
474

475
    public Builder isPasswordResetRequired(Boolean isPasswordResetRequired) {
UNCOV
476
      this.isPasswordResetRequired = isPasswordResetRequired;
×
UNCOV
477
      return this;
×
478
    }
479

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

485
    public Builder status(EnumWrapper<UpdateUserByIdRequestBodyStatusField> status) {
UNCOV
486
      this.status = status;
×
UNCOV
487
      return this;
×
488
    }
489

490
    public Builder spaceAmount(Long spaceAmount) {
491
      this.spaceAmount = spaceAmount;
×
UNCOV
492
      return this;
×
493
    }
494

495
    public Builder notificationEmail(
496
        UpdateUserByIdRequestBodyNotificationEmailField notificationEmail) {
UNCOV
497
      this.notificationEmail = notificationEmail;
×
UNCOV
498
      this.markNullableFieldAsSet("notification_email");
×
UNCOV
499
      return this;
×
500
    }
501

502
    public Builder externalAppUserId(String externalAppUserId) {
UNCOV
503
      this.externalAppUserId = externalAppUserId;
×
UNCOV
504
      return this;
×
505
    }
506

507
    public UpdateUserByIdRequestBody build() {
508
      return new UpdateUserByIdRequestBody(this);
1✔
509
    }
510
  }
511
}
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