• 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/skillinvocation/SkillInvocation.java
1
package com.box.sdkgen.schemas.skillinvocation;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.internal.utils.DateTimeUtils;
6
import com.box.sdkgen.schemas.event.Event;
7
import com.box.sdkgen.schemas.fileorfolder.FileOrFolder;
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.Objects;
15

16
@JsonFilter("nullablePropertyFilter")
17
public class SkillInvocation extends SerializableObject {
18

19
  @JsonDeserialize(using = SkillInvocationTypeField.SkillInvocationTypeFieldDeserializer.class)
20
  @JsonSerialize(using = SkillInvocationTypeField.SkillInvocationTypeFieldSerializer.class)
21
  protected EnumWrapper<SkillInvocationTypeField> type;
22

23
  protected String id;
24

25
  protected SkillInvocationSkillField skill;
26

27
  protected SkillInvocationTokenField token;
28

29
  protected SkillInvocationStatusField status;
30

31
  @JsonProperty("created_at")
32
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
33
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
34
  protected Date createdAt;
35

36
  protected String trigger;
37

38
  protected SkillInvocationEnterpriseField enterprise;
39

40
  protected FileOrFolder source;
41

42
  protected Event event;
43

44
  public SkillInvocation() {
UNCOV
45
    super();
×
46
  }
×
47

48
  protected SkillInvocation(Builder builder) {
49
    super();
×
50
    this.type = builder.type;
×
51
    this.id = builder.id;
×
52
    this.skill = builder.skill;
×
53
    this.token = builder.token;
×
54
    this.status = builder.status;
×
55
    this.createdAt = builder.createdAt;
×
56
    this.trigger = builder.trigger;
×
57
    this.enterprise = builder.enterprise;
×
UNCOV
58
    this.source = builder.source;
×
UNCOV
59
    this.event = builder.event;
×
60
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
61
  }
×
62

63
  public EnumWrapper<SkillInvocationTypeField> getType() {
64
    return type;
×
65
  }
66

67
  public String getId() {
68
    return id;
×
69
  }
70

71
  public SkillInvocationSkillField getSkill() {
72
    return skill;
×
73
  }
74

75
  public SkillInvocationTokenField getToken() {
76
    return token;
×
77
  }
78

79
  public SkillInvocationStatusField getStatus() {
80
    return status;
×
81
  }
82

83
  public Date getCreatedAt() {
84
    return createdAt;
×
85
  }
86

87
  public String getTrigger() {
88
    return trigger;
×
89
  }
90

91
  public SkillInvocationEnterpriseField getEnterprise() {
92
    return enterprise;
×
93
  }
94

95
  public FileOrFolder getSource() {
96
    return source;
×
97
  }
98

99
  public Event getEvent() {
UNCOV
100
    return event;
×
101
  }
102

103
  @Override
104
  public boolean equals(Object o) {
105
    if (this == o) {
×
UNCOV
106
      return true;
×
107
    }
108
    if (o == null || getClass() != o.getClass()) {
×
109
      return false;
×
110
    }
111
    SkillInvocation casted = (SkillInvocation) o;
×
112
    return Objects.equals(type, casted.type)
×
113
        && Objects.equals(id, casted.id)
×
114
        && Objects.equals(skill, casted.skill)
×
115
        && Objects.equals(token, casted.token)
×
116
        && Objects.equals(status, casted.status)
×
117
        && Objects.equals(createdAt, casted.createdAt)
×
UNCOV
118
        && Objects.equals(trigger, casted.trigger)
×
UNCOV
119
        && Objects.equals(enterprise, casted.enterprise)
×
UNCOV
120
        && Objects.equals(source, casted.source)
×
UNCOV
121
        && Objects.equals(event, casted.event);
×
122
  }
123

124
  @Override
125
  public int hashCode() {
UNCOV
126
    return Objects.hash(
×
127
        type, id, skill, token, status, createdAt, trigger, enterprise, source, event);
128
  }
129

130
  @Override
131
  public String toString() {
UNCOV
132
    return "SkillInvocation{"
×
133
        + "type='"
134
        + type
135
        + '\''
136
        + ", "
137
        + "id='"
138
        + id
139
        + '\''
140
        + ", "
141
        + "skill='"
142
        + skill
143
        + '\''
144
        + ", "
145
        + "token='"
146
        + token
147
        + '\''
148
        + ", "
149
        + "status='"
150
        + status
151
        + '\''
152
        + ", "
153
        + "createdAt='"
154
        + createdAt
155
        + '\''
156
        + ", "
157
        + "trigger='"
158
        + trigger
159
        + '\''
160
        + ", "
161
        + "enterprise='"
162
        + enterprise
163
        + '\''
164
        + ", "
165
        + "source='"
166
        + source
167
        + '\''
168
        + ", "
169
        + "event='"
170
        + event
171
        + '\''
172
        + "}";
173
  }
174

UNCOV
175
  public static class Builder extends NullableFieldTracker {
×
176

177
    protected EnumWrapper<SkillInvocationTypeField> type;
178

179
    protected String id;
180

181
    protected SkillInvocationSkillField skill;
182

183
    protected SkillInvocationTokenField token;
184

185
    protected SkillInvocationStatusField status;
186

187
    protected Date createdAt;
188

189
    protected String trigger;
190

191
    protected SkillInvocationEnterpriseField enterprise;
192

193
    protected FileOrFolder source;
194

195
    protected Event event;
196

197
    public Builder type(SkillInvocationTypeField type) {
UNCOV
198
      this.type = new EnumWrapper<SkillInvocationTypeField>(type);
×
199
      return this;
×
200
    }
201

202
    public Builder type(EnumWrapper<SkillInvocationTypeField> type) {
UNCOV
203
      this.type = type;
×
204
      return this;
×
205
    }
206

207
    public Builder id(String id) {
UNCOV
208
      this.id = id;
×
209
      return this;
×
210
    }
211

212
    public Builder skill(SkillInvocationSkillField skill) {
UNCOV
213
      this.skill = skill;
×
214
      return this;
×
215
    }
216

217
    public Builder token(SkillInvocationTokenField token) {
UNCOV
218
      this.token = token;
×
219
      return this;
×
220
    }
221

222
    public Builder status(SkillInvocationStatusField status) {
UNCOV
223
      this.status = status;
×
224
      return this;
×
225
    }
226

227
    public Builder createdAt(Date createdAt) {
UNCOV
228
      this.createdAt = createdAt;
×
229
      return this;
×
230
    }
231

232
    public Builder trigger(String trigger) {
UNCOV
233
      this.trigger = trigger;
×
234
      return this;
×
235
    }
236

237
    public Builder enterprise(SkillInvocationEnterpriseField enterprise) {
UNCOV
238
      this.enterprise = enterprise;
×
239
      return this;
×
240
    }
241

242
    public Builder source(FileOrFolder source) {
UNCOV
243
      this.source = source;
×
244
      return this;
×
245
    }
246

247
    public Builder event(Event event) {
UNCOV
248
      this.event = event;
×
249
      return this;
×
250
    }
251

252
    public SkillInvocation build() {
UNCOV
253
      return new SkillInvocation(this);
×
254
    }
255
  }
256
}
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