• 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

0.0
/src/main/java/com/box/sdkgen/schemas/appitemeventsource/AppItemEventSource.java
1
package com.box.sdkgen.schemas.appitemeventsource;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.schemas.groupmini.GroupMini;
6
import com.box.sdkgen.schemas.usermini.UserMini;
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.Objects;
13

14
@JsonFilter("nullablePropertyFilter")
15
public class AppItemEventSource extends SerializableObject {
16

17
  protected final String id;
18

19
  @JsonDeserialize(
20
      using = AppItemEventSourceTypeField.AppItemEventSourceTypeFieldDeserializer.class)
21
  @JsonSerialize(using = AppItemEventSourceTypeField.AppItemEventSourceTypeFieldSerializer.class)
22
  protected EnumWrapper<AppItemEventSourceTypeField> type;
23

24
  @JsonProperty("app_item_type")
25
  protected final String appItemType;
26

27
  protected UserMini user;
28

29
  protected GroupMini group;
30

31
  public AppItemEventSource(
32
      @JsonProperty("id") String id, @JsonProperty("app_item_type") String appItemType) {
33
    super();
×
34
    this.id = id;
×
UNCOV
35
    this.appItemType = appItemType;
×
UNCOV
36
    this.type = new EnumWrapper<AppItemEventSourceTypeField>(AppItemEventSourceTypeField.APP_ITEM);
×
37
  }
×
38

39
  protected AppItemEventSource(Builder builder) {
40
    super();
×
41
    this.id = builder.id;
×
42
    this.type = builder.type;
×
43
    this.appItemType = builder.appItemType;
×
UNCOV
44
    this.user = builder.user;
×
UNCOV
45
    this.group = builder.group;
×
46
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
47
  }
×
48

49
  public String getId() {
50
    return id;
×
51
  }
52

53
  public EnumWrapper<AppItemEventSourceTypeField> getType() {
54
    return type;
×
55
  }
56

57
  public String getAppItemType() {
58
    return appItemType;
×
59
  }
60

61
  public UserMini getUser() {
62
    return user;
×
63
  }
64

65
  public GroupMini getGroup() {
UNCOV
66
    return group;
×
67
  }
68

69
  @Override
70
  public boolean equals(Object o) {
71
    if (this == o) {
×
UNCOV
72
      return true;
×
73
    }
74
    if (o == null || getClass() != o.getClass()) {
×
75
      return false;
×
76
    }
77
    AppItemEventSource casted = (AppItemEventSource) o;
×
78
    return Objects.equals(id, casted.id)
×
UNCOV
79
        && Objects.equals(type, casted.type)
×
UNCOV
80
        && Objects.equals(appItemType, casted.appItemType)
×
UNCOV
81
        && Objects.equals(user, casted.user)
×
UNCOV
82
        && Objects.equals(group, casted.group);
×
83
  }
84

85
  @Override
86
  public int hashCode() {
UNCOV
87
    return Objects.hash(id, type, appItemType, user, group);
×
88
  }
89

90
  @Override
91
  public String toString() {
UNCOV
92
    return "AppItemEventSource{"
×
93
        + "id='"
94
        + id
95
        + '\''
96
        + ", "
97
        + "type='"
98
        + type
99
        + '\''
100
        + ", "
101
        + "appItemType='"
102
        + appItemType
103
        + '\''
104
        + ", "
105
        + "user='"
106
        + user
107
        + '\''
108
        + ", "
109
        + "group='"
110
        + group
111
        + '\''
112
        + "}";
113
  }
114

115
  public static class Builder extends NullableFieldTracker {
116

117
    protected final String id;
118

119
    protected EnumWrapper<AppItemEventSourceTypeField> type;
120

121
    protected final String appItemType;
122

123
    protected UserMini user;
124

125
    protected GroupMini group;
126

127
    public Builder(String id, String appItemType) {
128
      super();
×
UNCOV
129
      this.id = id;
×
UNCOV
130
      this.appItemType = appItemType;
×
131
      this.type =
×
132
          new EnumWrapper<AppItemEventSourceTypeField>(AppItemEventSourceTypeField.APP_ITEM);
UNCOV
133
    }
×
134

135
    public Builder type(AppItemEventSourceTypeField type) {
136
      this.type = new EnumWrapper<AppItemEventSourceTypeField>(type);
×
137
      return this;
×
138
    }
139

140
    public Builder type(EnumWrapper<AppItemEventSourceTypeField> type) {
141
      this.type = type;
×
142
      return this;
×
143
    }
144

145
    public Builder user(UserMini user) {
146
      this.user = user;
×
147
      return this;
×
148
    }
149

150
    public Builder group(GroupMini group) {
151
      this.group = group;
×
UNCOV
152
      return this;
×
153
    }
154

155
    public AppItemEventSource build() {
UNCOV
156
      return new AppItemEventSource(this);
×
157
    }
158
  }
159
}
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