• 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

8.96
/src/main/java/com/box/sdkgen/schemas/shieldinformationbarrier/ShieldInformationBarrier.java
1
package com.box.sdkgen.schemas.shieldinformationbarrier;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.internal.utils.DateTimeUtils;
5
import com.box.sdkgen.schemas.enterprisebase.EnterpriseBase;
6
import com.box.sdkgen.schemas.userbase.UserBase;
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 ShieldInformationBarrier extends SerializableObject {
15

16
  protected String id;
17

18
  @JsonDeserialize(
19
      using = ShieldInformationBarrierTypeField.ShieldInformationBarrierTypeFieldDeserializer.class)
20
  @JsonSerialize(
21
      using = ShieldInformationBarrierTypeField.ShieldInformationBarrierTypeFieldSerializer.class)
22
  protected EnumWrapper<ShieldInformationBarrierTypeField> type;
23

24
  protected EnterpriseBase enterprise;
25

26
  @JsonDeserialize(
27
      using =
28
          ShieldInformationBarrierStatusField.ShieldInformationBarrierStatusFieldDeserializer.class)
29
  @JsonSerialize(
30
      using =
31
          ShieldInformationBarrierStatusField.ShieldInformationBarrierStatusFieldSerializer.class)
32
  protected EnumWrapper<ShieldInformationBarrierStatusField> status;
33

34
  @JsonProperty("created_at")
35
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
36
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
37
  protected Date createdAt;
38

39
  @JsonProperty("created_by")
40
  protected UserBase createdBy;
41

42
  @JsonProperty("updated_at")
43
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
44
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
45
  protected Date updatedAt;
46

47
  @JsonProperty("updated_by")
48
  protected UserBase updatedBy;
49

50
  @JsonProperty("enabled_at")
51
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
52
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
53
  protected Date enabledAt;
54

55
  @JsonProperty("enabled_by")
56
  protected UserBase enabledBy;
57

58
  public ShieldInformationBarrier() {
59
    super();
1✔
60
  }
1✔
61

62
  protected ShieldInformationBarrier(Builder builder) {
63
    super();
×
64
    this.id = builder.id;
×
65
    this.type = builder.type;
×
66
    this.enterprise = builder.enterprise;
×
67
    this.status = builder.status;
×
68
    this.createdAt = builder.createdAt;
×
69
    this.createdBy = builder.createdBy;
×
70
    this.updatedAt = builder.updatedAt;
×
71
    this.updatedBy = builder.updatedBy;
×
72
    this.enabledAt = builder.enabledAt;
×
73
    this.enabledBy = builder.enabledBy;
×
74
  }
×
75

76
  public String getId() {
77
    return id;
1✔
78
  }
79

80
  public EnumWrapper<ShieldInformationBarrierTypeField> getType() {
81
    return type;
1✔
82
  }
83

84
  public EnterpriseBase getEnterprise() {
85
    return enterprise;
1✔
86
  }
87

88
  public EnumWrapper<ShieldInformationBarrierStatusField> getStatus() {
89
    return status;
1✔
90
  }
91

92
  public Date getCreatedAt() {
93
    return createdAt;
×
94
  }
95

96
  public UserBase getCreatedBy() {
97
    return createdBy;
×
98
  }
99

100
  public Date getUpdatedAt() {
101
    return updatedAt;
×
102
  }
103

104
  public UserBase getUpdatedBy() {
105
    return updatedBy;
×
106
  }
107

108
  public Date getEnabledAt() {
109
    return enabledAt;
×
110
  }
111

112
  public UserBase getEnabledBy() {
113
    return enabledBy;
×
114
  }
115

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

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

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

NEW
197
  public static class Builder {
×
198

199
    protected String id;
200

201
    protected EnumWrapper<ShieldInformationBarrierTypeField> type;
202

203
    protected EnterpriseBase enterprise;
204

205
    protected EnumWrapper<ShieldInformationBarrierStatusField> status;
206

207
    protected Date createdAt;
208

209
    protected UserBase createdBy;
210

211
    protected Date updatedAt;
212

213
    protected UserBase updatedBy;
214

215
    protected Date enabledAt;
216

217
    protected UserBase enabledBy;
218

219
    public Builder id(String id) {
220
      this.id = id;
×
221
      return this;
×
222
    }
223

224
    public Builder type(ShieldInformationBarrierTypeField type) {
225
      this.type = new EnumWrapper<ShieldInformationBarrierTypeField>(type);
×
226
      return this;
×
227
    }
228

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

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

239
    public Builder status(ShieldInformationBarrierStatusField status) {
240
      this.status = new EnumWrapper<ShieldInformationBarrierStatusField>(status);
×
241
      return this;
×
242
    }
243

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

249
    public Builder createdAt(Date createdAt) {
250
      this.createdAt = createdAt;
×
251
      return this;
×
252
    }
253

254
    public Builder createdBy(UserBase createdBy) {
255
      this.createdBy = createdBy;
×
256
      return this;
×
257
    }
258

259
    public Builder updatedAt(Date updatedAt) {
260
      this.updatedAt = updatedAt;
×
261
      return this;
×
262
    }
263

264
    public Builder updatedBy(UserBase updatedBy) {
265
      this.updatedBy = updatedBy;
×
266
      return this;
×
267
    }
268

269
    public Builder enabledAt(Date enabledAt) {
270
      this.enabledAt = enabledAt;
×
271
      return this;
×
272
    }
273

274
    public Builder enabledBy(UserBase enabledBy) {
275
      this.enabledBy = enabledBy;
×
276
      return this;
×
277
    }
278

279
    public ShieldInformationBarrier build() {
280
      return new ShieldInformationBarrier(this);
×
281
    }
282
  }
283
}
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