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

box / box-java-sdk-gen / #294

24 Jun 2025 01:20PM UTC coverage: 35.662% (+0.03%) from 35.632%
#294

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%)

11791 existing lines in 624 files now uncovered.

16939 of 47499 relevant lines covered (35.66%)

0.36 hits per line

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

8.82
/src/main/java/com/box/sdkgen/schemas/shieldinformationbarrier/ShieldInformationBarrier.java
1
package com.box.sdkgen.schemas.shieldinformationbarrier;
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.enterprisebase.EnterpriseBase;
7
import com.box.sdkgen.schemas.userbase.UserBase;
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 ShieldInformationBarrier extends SerializableObject {
18

19
  protected String id;
20

21
  @JsonDeserialize(
22
      using = ShieldInformationBarrierTypeField.ShieldInformationBarrierTypeFieldDeserializer.class)
23
  @JsonSerialize(
24
      using = ShieldInformationBarrierTypeField.ShieldInformationBarrierTypeFieldSerializer.class)
25
  protected EnumWrapper<ShieldInformationBarrierTypeField> type;
26

27
  protected EnterpriseBase enterprise;
28

29
  @JsonDeserialize(
30
      using =
31
          ShieldInformationBarrierStatusField.ShieldInformationBarrierStatusFieldDeserializer.class)
32
  @JsonSerialize(
33
      using =
34
          ShieldInformationBarrierStatusField.ShieldInformationBarrierStatusFieldSerializer.class)
35
  protected EnumWrapper<ShieldInformationBarrierStatusField> status;
36

37
  @JsonProperty("created_at")
38
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
39
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
40
  protected Date createdAt;
41

42
  @JsonProperty("created_by")
43
  protected UserBase createdBy;
44

45
  @JsonProperty("updated_at")
46
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
47
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
48
  protected Date updatedAt;
49

50
  @JsonProperty("updated_by")
51
  protected UserBase updatedBy;
52

53
  @JsonProperty("enabled_at")
54
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
55
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
56
  protected Date enabledAt;
57

58
  @JsonProperty("enabled_by")
59
  protected UserBase enabledBy;
60

61
  public ShieldInformationBarrier() {
62
    super();
1✔
63
  }
1✔
64

65
  protected ShieldInformationBarrier(Builder builder) {
66
    super();
×
67
    this.id = builder.id;
×
68
    this.type = builder.type;
×
69
    this.enterprise = builder.enterprise;
×
70
    this.status = builder.status;
×
71
    this.createdAt = builder.createdAt;
×
72
    this.createdBy = builder.createdBy;
×
73
    this.updatedAt = builder.updatedAt;
×
74
    this.updatedBy = builder.updatedBy;
×
UNCOV
75
    this.enabledAt = builder.enabledAt;
×
UNCOV
76
    this.enabledBy = builder.enabledBy;
×
UNCOV
77
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
78
  }
×
79

80
  public String getId() {
81
    return id;
1✔
82
  }
83

84
  public EnumWrapper<ShieldInformationBarrierTypeField> getType() {
85
    return type;
1✔
86
  }
87

88
  public EnterpriseBase getEnterprise() {
89
    return enterprise;
1✔
90
  }
91

92
  public EnumWrapper<ShieldInformationBarrierStatusField> getStatus() {
93
    return status;
1✔
94
  }
95

96
  public Date getCreatedAt() {
97
    return createdAt;
×
98
  }
99

100
  public UserBase getCreatedBy() {
101
    return createdBy;
×
102
  }
103

104
  public Date getUpdatedAt() {
105
    return updatedAt;
×
106
  }
107

108
  public UserBase getUpdatedBy() {
109
    return updatedBy;
×
110
  }
111

112
  public Date getEnabledAt() {
113
    return enabledAt;
×
114
  }
115

116
  public UserBase getEnabledBy() {
UNCOV
117
    return enabledBy;
×
118
  }
119

120
  @Override
121
  public boolean equals(Object o) {
122
    if (this == o) {
×
UNCOV
123
      return true;
×
124
    }
125
    if (o == null || getClass() != o.getClass()) {
×
126
      return false;
×
127
    }
128
    ShieldInformationBarrier casted = (ShieldInformationBarrier) o;
×
129
    return Objects.equals(id, casted.id)
×
130
        && Objects.equals(type, casted.type)
×
131
        && Objects.equals(enterprise, casted.enterprise)
×
132
        && Objects.equals(status, casted.status)
×
133
        && Objects.equals(createdAt, casted.createdAt)
×
134
        && Objects.equals(createdBy, casted.createdBy)
×
UNCOV
135
        && Objects.equals(updatedAt, casted.updatedAt)
×
UNCOV
136
        && Objects.equals(updatedBy, casted.updatedBy)
×
UNCOV
137
        && Objects.equals(enabledAt, casted.enabledAt)
×
UNCOV
138
        && Objects.equals(enabledBy, casted.enabledBy);
×
139
  }
140

141
  @Override
142
  public int hashCode() {
UNCOV
143
    return Objects.hash(
×
144
        id,
145
        type,
146
        enterprise,
147
        status,
148
        createdAt,
149
        createdBy,
150
        updatedAt,
151
        updatedBy,
152
        enabledAt,
153
        enabledBy);
154
  }
155

156
  @Override
157
  public String toString() {
UNCOV
158
    return "ShieldInformationBarrier{"
×
159
        + "id='"
160
        + id
161
        + '\''
162
        + ", "
163
        + "type='"
164
        + type
165
        + '\''
166
        + ", "
167
        + "enterprise='"
168
        + enterprise
169
        + '\''
170
        + ", "
171
        + "status='"
172
        + status
173
        + '\''
174
        + ", "
175
        + "createdAt='"
176
        + createdAt
177
        + '\''
178
        + ", "
179
        + "createdBy='"
180
        + createdBy
181
        + '\''
182
        + ", "
183
        + "updatedAt='"
184
        + updatedAt
185
        + '\''
186
        + ", "
187
        + "updatedBy='"
188
        + updatedBy
189
        + '\''
190
        + ", "
191
        + "enabledAt='"
192
        + enabledAt
193
        + '\''
194
        + ", "
195
        + "enabledBy='"
196
        + enabledBy
197
        + '\''
198
        + "}";
199
  }
200

UNCOV
201
  public static class Builder extends NullableFieldTracker {
×
202

203
    protected String id;
204

205
    protected EnumWrapper<ShieldInformationBarrierTypeField> type;
206

207
    protected EnterpriseBase enterprise;
208

209
    protected EnumWrapper<ShieldInformationBarrierStatusField> status;
210

211
    protected Date createdAt;
212

213
    protected UserBase createdBy;
214

215
    protected Date updatedAt;
216

217
    protected UserBase updatedBy;
218

219
    protected Date enabledAt;
220

221
    protected UserBase enabledBy;
222

223
    public Builder id(String id) {
UNCOV
224
      this.id = id;
×
225
      return this;
×
226
    }
227

228
    public Builder type(ShieldInformationBarrierTypeField type) {
UNCOV
229
      this.type = new EnumWrapper<ShieldInformationBarrierTypeField>(type);
×
230
      return this;
×
231
    }
232

233
    public Builder type(EnumWrapper<ShieldInformationBarrierTypeField> type) {
UNCOV
234
      this.type = type;
×
235
      return this;
×
236
    }
237

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

243
    public Builder status(ShieldInformationBarrierStatusField status) {
UNCOV
244
      this.status = new EnumWrapper<ShieldInformationBarrierStatusField>(status);
×
245
      return this;
×
246
    }
247

248
    public Builder status(EnumWrapper<ShieldInformationBarrierStatusField> status) {
UNCOV
249
      this.status = status;
×
250
      return this;
×
251
    }
252

253
    public Builder createdAt(Date createdAt) {
UNCOV
254
      this.createdAt = createdAt;
×
255
      return this;
×
256
    }
257

258
    public Builder createdBy(UserBase createdBy) {
UNCOV
259
      this.createdBy = createdBy;
×
260
      return this;
×
261
    }
262

263
    public Builder updatedAt(Date updatedAt) {
UNCOV
264
      this.updatedAt = updatedAt;
×
265
      return this;
×
266
    }
267

268
    public Builder updatedBy(UserBase updatedBy) {
UNCOV
269
      this.updatedBy = updatedBy;
×
270
      return this;
×
271
    }
272

273
    public Builder enabledAt(Date enabledAt) {
UNCOV
274
      this.enabledAt = enabledAt;
×
275
      return this;
×
276
    }
277

278
    public Builder enabledBy(UserBase enabledBy) {
UNCOV
279
      this.enabledBy = enabledBy;
×
280
      return this;
×
281
    }
282

283
    public ShieldInformationBarrier build() {
UNCOV
284
      return new ShieldInformationBarrier(this);
×
285
    }
286
  }
287
}
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