• 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

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.SerializableObject;
4
import com.box.sdkgen.internal.utils.DateTimeUtils;
5
import com.box.sdkgen.schemas.event.Event;
6
import com.box.sdkgen.schemas.fileorfolder.FileOrFolder;
7
import com.box.sdkgen.serialization.json.EnumWrapper;
8
import com.fasterxml.jackson.annotation.JsonProperty;
9
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
10
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
11
import java.util.Date;
12
import java.util.Objects;
13

14
public class SkillInvocation extends SerializableObject {
15

16
  @JsonDeserialize(using = SkillInvocationTypeField.SkillInvocationTypeFieldDeserializer.class)
17
  @JsonSerialize(using = SkillInvocationTypeField.SkillInvocationTypeFieldSerializer.class)
18
  protected EnumWrapper<SkillInvocationTypeField> type;
19

20
  protected String id;
21

22
  protected SkillInvocationSkillField skill;
23

24
  protected SkillInvocationTokenField token;
25

26
  protected SkillInvocationStatusField status;
27

28
  @JsonProperty("created_at")
29
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
30
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
31
  protected Date createdAt;
32

33
  protected String trigger;
34

35
  protected SkillInvocationEnterpriseField enterprise;
36

37
  protected FileOrFolder source;
38

39
  protected Event event;
40

41
  public SkillInvocation() {
42
    super();
×
43
  }
×
44

45
  protected SkillInvocation(Builder builder) {
46
    super();
×
47
    this.type = builder.type;
×
48
    this.id = builder.id;
×
49
    this.skill = builder.skill;
×
50
    this.token = builder.token;
×
51
    this.status = builder.status;
×
52
    this.createdAt = builder.createdAt;
×
53
    this.trigger = builder.trigger;
×
54
    this.enterprise = builder.enterprise;
×
55
    this.source = builder.source;
×
56
    this.event = builder.event;
×
57
  }
×
58

59
  public EnumWrapper<SkillInvocationTypeField> getType() {
60
    return type;
×
61
  }
62

63
  public String getId() {
64
    return id;
×
65
  }
66

67
  public SkillInvocationSkillField getSkill() {
68
    return skill;
×
69
  }
70

71
  public SkillInvocationTokenField getToken() {
72
    return token;
×
73
  }
74

75
  public SkillInvocationStatusField getStatus() {
76
    return status;
×
77
  }
78

79
  public Date getCreatedAt() {
80
    return createdAt;
×
81
  }
82

83
  public String getTrigger() {
84
    return trigger;
×
85
  }
86

87
  public SkillInvocationEnterpriseField getEnterprise() {
88
    return enterprise;
×
89
  }
90

91
  public FileOrFolder getSource() {
92
    return source;
×
93
  }
94

95
  public Event getEvent() {
96
    return event;
×
97
  }
98

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

120
  @Override
121
  public int hashCode() {
122
    return Objects.hash(
×
123
        type, id, skill, token, status, createdAt, trigger, enterprise, source, event);
124
  }
125

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

NEW
171
  public static class Builder {
×
172

173
    protected EnumWrapper<SkillInvocationTypeField> type;
174

175
    protected String id;
176

177
    protected SkillInvocationSkillField skill;
178

179
    protected SkillInvocationTokenField token;
180

181
    protected SkillInvocationStatusField status;
182

183
    protected Date createdAt;
184

185
    protected String trigger;
186

187
    protected SkillInvocationEnterpriseField enterprise;
188

189
    protected FileOrFolder source;
190

191
    protected Event event;
192

193
    public Builder type(SkillInvocationTypeField type) {
194
      this.type = new EnumWrapper<SkillInvocationTypeField>(type);
×
195
      return this;
×
196
    }
197

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

203
    public Builder id(String id) {
204
      this.id = id;
×
205
      return this;
×
206
    }
207

208
    public Builder skill(SkillInvocationSkillField skill) {
209
      this.skill = skill;
×
210
      return this;
×
211
    }
212

213
    public Builder token(SkillInvocationTokenField token) {
214
      this.token = token;
×
215
      return this;
×
216
    }
217

218
    public Builder status(SkillInvocationStatusField status) {
219
      this.status = status;
×
220
      return this;
×
221
    }
222

223
    public Builder createdAt(Date createdAt) {
224
      this.createdAt = createdAt;
×
225
      return this;
×
226
    }
227

228
    public Builder trigger(String trigger) {
229
      this.trigger = trigger;
×
230
      return this;
×
231
    }
232

233
    public Builder enterprise(SkillInvocationEnterpriseField enterprise) {
234
      this.enterprise = enterprise;
×
235
      return this;
×
236
    }
237

238
    public Builder source(FileOrFolder source) {
239
      this.source = source;
×
240
      return this;
×
241
    }
242

243
    public Builder event(Event event) {
244
      this.event = event;
×
245
      return this;
×
246
    }
247

248
    public SkillInvocation build() {
249
      return new SkillInvocation(this);
×
250
    }
251
  }
252
}
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