• 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

39.34
/src/main/java/com/box/sdkgen/managers/users/UpdateUserByIdRequestBody.java
1
package com.box.sdkgen.managers.users;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.schemas.trackingcode.TrackingCode;
5
import com.box.sdkgen.serialization.json.EnumWrapper;
6
import com.fasterxml.jackson.annotation.JsonProperty;
7
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
8
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
9
import java.util.List;
10
import java.util.Objects;
11

12
public class UpdateUserByIdRequestBody extends SerializableObject {
13

14
  protected String enterprise;
15

16
  protected Boolean notify;
17

18
  protected String name;
19

20
  protected String login;
21

22
  @JsonDeserialize(
23
      using =
24
          UpdateUserByIdRequestBodyRoleField.UpdateUserByIdRequestBodyRoleFieldDeserializer.class)
25
  @JsonSerialize(
26
      using = UpdateUserByIdRequestBodyRoleField.UpdateUserByIdRequestBodyRoleFieldSerializer.class)
27
  protected EnumWrapper<UpdateUserByIdRequestBodyRoleField> role;
28

29
  protected String language;
30

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

34
  @JsonProperty("job_title")
35
  protected String jobTitle;
36

37
  protected String phone;
38

39
  protected String address;
40

41
  @JsonProperty("tracking_codes")
42
  protected List<TrackingCode> trackingCodes;
43

44
  @JsonProperty("can_see_managed_users")
45
  protected Boolean canSeeManagedUsers;
46

47
  protected String timezone;
48

49
  @JsonProperty("is_external_collab_restricted")
50
  protected Boolean isExternalCollabRestricted;
51

52
  @JsonProperty("is_exempt_from_device_limits")
53
  protected Boolean isExemptFromDeviceLimits;
54

55
  @JsonProperty("is_exempt_from_login_verification")
56
  protected Boolean isExemptFromLoginVerification;
57

58
  @JsonProperty("is_password_reset_required")
59
  protected Boolean isPasswordResetRequired;
60

61
  @JsonDeserialize(
62
      using =
63
          UpdateUserByIdRequestBodyStatusField.UpdateUserByIdRequestBodyStatusFieldDeserializer
64
              .class)
65
  @JsonSerialize(
66
      using =
67
          UpdateUserByIdRequestBodyStatusField.UpdateUserByIdRequestBodyStatusFieldSerializer.class)
68
  protected EnumWrapper<UpdateUserByIdRequestBodyStatusField> status;
69

70
  @JsonProperty("space_amount")
71
  protected Long spaceAmount;
72

73
  @JsonProperty("notification_email")
74
  protected UpdateUserByIdRequestBodyNotificationEmailField notificationEmail;
75

76
  @JsonProperty("external_app_user_id")
77
  protected String externalAppUserId;
78

79
  public UpdateUserByIdRequestBody() {
80
    super();
×
81
  }
×
82

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

108
  public String getEnterprise() {
109
    return enterprise;
1✔
110
  }
111

112
  public Boolean getNotify() {
113
    return notify;
1✔
114
  }
115

116
  public String getName() {
117
    return name;
1✔
118
  }
119

120
  public String getLogin() {
121
    return login;
1✔
122
  }
123

124
  public EnumWrapper<UpdateUserByIdRequestBodyRoleField> getRole() {
125
    return role;
1✔
126
  }
127

128
  public String getLanguage() {
129
    return language;
1✔
130
  }
131

132
  public Boolean getIsSyncEnabled() {
133
    return isSyncEnabled;
1✔
134
  }
135

136
  public String getJobTitle() {
137
    return jobTitle;
1✔
138
  }
139

140
  public String getPhone() {
141
    return phone;
1✔
142
  }
143

144
  public String getAddress() {
145
    return address;
1✔
146
  }
147

148
  public List<TrackingCode> getTrackingCodes() {
149
    return trackingCodes;
1✔
150
  }
151

152
  public Boolean getCanSeeManagedUsers() {
153
    return canSeeManagedUsers;
1✔
154
  }
155

156
  public String getTimezone() {
157
    return timezone;
1✔
158
  }
159

160
  public Boolean getIsExternalCollabRestricted() {
161
    return isExternalCollabRestricted;
1✔
162
  }
163

164
  public Boolean getIsExemptFromDeviceLimits() {
165
    return isExemptFromDeviceLimits;
1✔
166
  }
167

168
  public Boolean getIsExemptFromLoginVerification() {
169
    return isExemptFromLoginVerification;
1✔
170
  }
171

172
  public Boolean getIsPasswordResetRequired() {
173
    return isPasswordResetRequired;
1✔
174
  }
175

176
  public EnumWrapper<UpdateUserByIdRequestBodyStatusField> getStatus() {
177
    return status;
1✔
178
  }
179

180
  public Long getSpaceAmount() {
181
    return spaceAmount;
1✔
182
  }
183

184
  public UpdateUserByIdRequestBodyNotificationEmailField getNotificationEmail() {
185
    return notificationEmail;
1✔
186
  }
187

188
  public String getExternalAppUserId() {
189
    return externalAppUserId;
1✔
190
  }
191

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

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

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

339
  public static class Builder {
1✔
340

341
    protected String enterprise;
342

343
    protected Boolean notify;
344

345
    protected String name;
346

347
    protected String login;
348

349
    protected EnumWrapper<UpdateUserByIdRequestBodyRoleField> role;
350

351
    protected String language;
352

353
    protected Boolean isSyncEnabled;
354

355
    protected String jobTitle;
356

357
    protected String phone;
358

359
    protected String address;
360

361
    protected List<TrackingCode> trackingCodes;
362

363
    protected Boolean canSeeManagedUsers;
364

365
    protected String timezone;
366

367
    protected Boolean isExternalCollabRestricted;
368

369
    protected Boolean isExemptFromDeviceLimits;
370

371
    protected Boolean isExemptFromLoginVerification;
372

373
    protected Boolean isPasswordResetRequired;
374

375
    protected EnumWrapper<UpdateUserByIdRequestBodyStatusField> status;
376

377
    protected Long spaceAmount;
378

379
    protected UpdateUserByIdRequestBodyNotificationEmailField notificationEmail;
380

381
    protected String externalAppUserId;
382

383
    public Builder enterprise(String enterprise) {
384
      this.enterprise = enterprise;
×
385
      return this;
×
386
    }
387

388
    public Builder notify(Boolean notify) {
389
      this.notify = notify;
×
390
      return this;
×
391
    }
392

393
    public Builder name(String name) {
394
      this.name = name;
1✔
395
      return this;
1✔
396
    }
397

398
    public Builder login(String login) {
399
      this.login = login;
×
400
      return this;
×
401
    }
402

403
    public Builder role(UpdateUserByIdRequestBodyRoleField role) {
404
      this.role = new EnumWrapper<UpdateUserByIdRequestBodyRoleField>(role);
×
405
      return this;
×
406
    }
407

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

413
    public Builder language(String language) {
414
      this.language = language;
×
415
      return this;
×
416
    }
417

418
    public Builder isSyncEnabled(Boolean isSyncEnabled) {
419
      this.isSyncEnabled = isSyncEnabled;
×
420
      return this;
×
421
    }
422

423
    public Builder jobTitle(String jobTitle) {
424
      this.jobTitle = jobTitle;
×
425
      return this;
×
426
    }
427

428
    public Builder phone(String phone) {
429
      this.phone = phone;
×
430
      return this;
×
431
    }
432

433
    public Builder address(String address) {
434
      this.address = address;
×
435
      return this;
×
436
    }
437

438
    public Builder trackingCodes(List<TrackingCode> trackingCodes) {
439
      this.trackingCodes = trackingCodes;
×
440
      return this;
×
441
    }
442

443
    public Builder canSeeManagedUsers(Boolean canSeeManagedUsers) {
444
      this.canSeeManagedUsers = canSeeManagedUsers;
×
445
      return this;
×
446
    }
447

448
    public Builder timezone(String timezone) {
449
      this.timezone = timezone;
×
450
      return this;
×
451
    }
452

453
    public Builder isExternalCollabRestricted(Boolean isExternalCollabRestricted) {
UNCOV
454
      this.isExternalCollabRestricted = isExternalCollabRestricted;
×
455
      return this;
×
456
    }
457

458
    public Builder isExemptFromDeviceLimits(Boolean isExemptFromDeviceLimits) {
UNCOV
459
      this.isExemptFromDeviceLimits = isExemptFromDeviceLimits;
×
460
      return this;
×
461
    }
462

463
    public Builder isExemptFromLoginVerification(Boolean isExemptFromLoginVerification) {
UNCOV
464
      this.isExemptFromLoginVerification = isExemptFromLoginVerification;
×
465
      return this;
×
466
    }
467

468
    public Builder isPasswordResetRequired(Boolean isPasswordResetRequired) {
UNCOV
469
      this.isPasswordResetRequired = isPasswordResetRequired;
×
470
      return this;
×
471
    }
472

473
    public Builder status(UpdateUserByIdRequestBodyStatusField status) {
474
      this.status = new EnumWrapper<UpdateUserByIdRequestBodyStatusField>(status);
×
475
      return this;
×
476
    }
477

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

483
    public Builder spaceAmount(Long spaceAmount) {
484
      this.spaceAmount = spaceAmount;
×
485
      return this;
×
486
    }
487

488
    public Builder notificationEmail(
489
        UpdateUserByIdRequestBodyNotificationEmailField notificationEmail) {
490
      this.notificationEmail = notificationEmail;
×
491
      return this;
×
492
    }
493

494
    public Builder externalAppUserId(String externalAppUserId) {
495
      this.externalAppUserId = externalAppUserId;
×
496
      return this;
×
497
    }
498

499
    public UpdateUserByIdRequestBody build() {
500
      return new UpdateUserByIdRequestBody(this);
1✔
501
    }
502
  }
503
}
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