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

box / box-java-sdk / #4746

19 Aug 2025 10:21AM UTC coverage: 38.831% (+0.7%) from 38.166%
#4746

push

github

web-flow
feat: Support external user deletion API

20 of 167 new or added lines in 8 files covered. (11.98%)

145 existing lines in 18 files now uncovered.

19109 of 49211 relevant lines covered (38.83%)

0.39 hits per line

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

0.0
/src/main/java/com/box/sdkgen/schemas/v2025r0/userreferencev2025r0/UserReferenceV2025R0.java
1
package com.box.sdkgen.schemas.v2025r0.userreferencev2025r0;
2

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

12
@JsonFilter("nullablePropertyFilter")
13
public class UserReferenceV2025R0 extends SerializableObject {
14

15
  @JsonDeserialize(
16
      using = UserReferenceV2025R0TypeField.UserReferenceV2025R0TypeFieldDeserializer.class)
17
  @JsonSerialize(
18
      using = UserReferenceV2025R0TypeField.UserReferenceV2025R0TypeFieldSerializer.class)
19
  protected EnumWrapper<UserReferenceV2025R0TypeField> type;
20

21
  protected final String id;
22

23
  public UserReferenceV2025R0(@JsonProperty("id") String id) {
NEW
24
    super();
×
NEW
25
    this.id = id;
×
NEW
26
    this.type = new EnumWrapper<UserReferenceV2025R0TypeField>(UserReferenceV2025R0TypeField.USER);
×
NEW
27
  }
×
28

29
  protected UserReferenceV2025R0(Builder builder) {
NEW
30
    super();
×
NEW
31
    this.type = builder.type;
×
NEW
32
    this.id = builder.id;
×
NEW
33
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
NEW
34
  }
×
35

36
  public EnumWrapper<UserReferenceV2025R0TypeField> getType() {
NEW
37
    return type;
×
38
  }
39

40
  public String getId() {
NEW
41
    return id;
×
42
  }
43

44
  @Override
45
  public boolean equals(Object o) {
NEW
46
    if (this == o) {
×
NEW
47
      return true;
×
48
    }
NEW
49
    if (o == null || getClass() != o.getClass()) {
×
NEW
50
      return false;
×
51
    }
NEW
52
    UserReferenceV2025R0 casted = (UserReferenceV2025R0) o;
×
NEW
53
    return Objects.equals(type, casted.type) && Objects.equals(id, casted.id);
×
54
  }
55

56
  @Override
57
  public int hashCode() {
NEW
58
    return Objects.hash(type, id);
×
59
  }
60

61
  @Override
62
  public String toString() {
NEW
63
    return "UserReferenceV2025R0{" + "type='" + type + '\'' + ", " + "id='" + id + '\'' + "}";
×
64
  }
65

66
  public static class Builder extends NullableFieldTracker {
67

68
    protected EnumWrapper<UserReferenceV2025R0TypeField> type;
69

70
    protected final String id;
71

72
    public Builder(String id) {
NEW
73
      super();
×
NEW
74
      this.id = id;
×
NEW
75
      this.type =
×
76
          new EnumWrapper<UserReferenceV2025R0TypeField>(UserReferenceV2025R0TypeField.USER);
NEW
77
    }
×
78

79
    public Builder type(UserReferenceV2025R0TypeField type) {
NEW
80
      this.type = new EnumWrapper<UserReferenceV2025R0TypeField>(type);
×
NEW
81
      return this;
×
82
    }
83

84
    public Builder type(EnumWrapper<UserReferenceV2025R0TypeField> type) {
NEW
85
      this.type = type;
×
NEW
86
      return this;
×
87
    }
88

89
    public UserReferenceV2025R0 build() {
NEW
90
      return new UserReferenceV2025R0(this);
×
91
    }
92
  }
93
}
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

© 2025 Coveralls, Inc