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

3
import com.box.sdkgen.internal.utils.DateTimeUtils;
4
import com.box.sdkgen.schemas.foldermini.FolderMini;
5
import com.box.sdkgen.schemas.integrationmappingbase.IntegrationMappingBase;
6
import com.box.sdkgen.schemas.integrationmappingbase.IntegrationMappingBaseTypeField;
7
import com.box.sdkgen.schemas.integrationmappingpartneritemslackunion.IntegrationMappingPartnerItemSlackUnion;
8
import com.box.sdkgen.schemas.integrationmappingslackoptions.IntegrationMappingSlackOptions;
9
import com.box.sdkgen.schemas.userintegrationmappings.UserIntegrationMappings;
10
import com.box.sdkgen.serialization.json.EnumWrapper;
11
import com.fasterxml.jackson.annotation.JsonProperty;
12
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
13
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
14
import java.util.Date;
15
import java.util.Objects;
16

17
public class IntegrationMapping extends IntegrationMappingBase {
18

19
  @JsonDeserialize(
20
      using =
21
          IntegrationMappingIntegrationTypeField.IntegrationMappingIntegrationTypeFieldDeserializer
22
              .class)
23
  @JsonSerialize(
24
      using =
25
          IntegrationMappingIntegrationTypeField.IntegrationMappingIntegrationTypeFieldSerializer
26
              .class)
27
  @JsonProperty("integration_type")
28
  protected EnumWrapper<IntegrationMappingIntegrationTypeField> integrationType;
29

30
  @JsonProperty("is_manually_created")
31
  protected Boolean isManuallyCreated;
32

33
  protected IntegrationMappingSlackOptions options;
34

35
  @JsonProperty("created_by")
36
  protected UserIntegrationMappings createdBy;
37

38
  @JsonProperty("modified_by")
39
  protected UserIntegrationMappings modifiedBy;
40

41
  @JsonProperty("partner_item")
42
  protected final IntegrationMappingPartnerItemSlackUnion partnerItem;
43

44
  @JsonProperty("box_item")
45
  protected final FolderMini boxItem;
46

47
  @JsonProperty("created_at")
48
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
49
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
50
  protected Date createdAt;
51

52
  @JsonProperty("modified_at")
53
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
54
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
55
  protected Date modifiedAt;
56

57
  public IntegrationMapping(
58
      @JsonProperty("id") String id,
59
      @JsonProperty("partner_item") IntegrationMappingPartnerItemSlackUnion partnerItem,
60
      @JsonProperty("box_item") FolderMini boxItem) {
61
    super(id);
1✔
62
    this.partnerItem = partnerItem;
1✔
63
    this.boxItem = boxItem;
1✔
64
  }
1✔
65

66
  protected IntegrationMapping(Builder builder) {
67
    super(builder);
×
68
    this.integrationType = builder.integrationType;
×
69
    this.isManuallyCreated = builder.isManuallyCreated;
×
70
    this.options = builder.options;
×
71
    this.createdBy = builder.createdBy;
×
72
    this.modifiedBy = builder.modifiedBy;
×
73
    this.partnerItem = builder.partnerItem;
×
74
    this.boxItem = builder.boxItem;
×
75
    this.createdAt = builder.createdAt;
×
76
    this.modifiedAt = builder.modifiedAt;
×
77
  }
×
78

79
  public EnumWrapper<IntegrationMappingIntegrationTypeField> getIntegrationType() {
80
    return integrationType;
1✔
81
  }
82

83
  public Boolean getIsManuallyCreated() {
84
    return isManuallyCreated;
×
85
  }
86

87
  public IntegrationMappingSlackOptions getOptions() {
88
    return options;
×
89
  }
90

91
  public UserIntegrationMappings getCreatedBy() {
92
    return createdBy;
×
93
  }
94

95
  public UserIntegrationMappings getModifiedBy() {
96
    return modifiedBy;
×
97
  }
98

99
  public IntegrationMappingPartnerItemSlackUnion getPartnerItem() {
100
    return partnerItem;
×
101
  }
102

103
  public FolderMini getBoxItem() {
104
    return boxItem;
1✔
105
  }
106

107
  public Date getCreatedAt() {
108
    return createdAt;
×
109
  }
110

111
  public Date getModifiedAt() {
112
    return modifiedAt;
×
113
  }
114

115
  @Override
116
  public boolean equals(Object o) {
117
    if (this == o) {
×
118
      return true;
×
119
    }
120
    if (o == null || getClass() != o.getClass()) {
×
121
      return false;
×
122
    }
123
    IntegrationMapping casted = (IntegrationMapping) o;
×
124
    return Objects.equals(id, casted.id)
×
125
        && Objects.equals(type, casted.type)
×
126
        && Objects.equals(integrationType, casted.integrationType)
×
127
        && Objects.equals(isManuallyCreated, casted.isManuallyCreated)
×
128
        && Objects.equals(options, casted.options)
×
129
        && Objects.equals(createdBy, casted.createdBy)
×
130
        && Objects.equals(modifiedBy, casted.modifiedBy)
×
131
        && Objects.equals(partnerItem, casted.partnerItem)
×
132
        && Objects.equals(boxItem, casted.boxItem)
×
133
        && Objects.equals(createdAt, casted.createdAt)
×
134
        && Objects.equals(modifiedAt, casted.modifiedAt);
×
135
  }
136

137
  @Override
138
  public int hashCode() {
139
    return Objects.hash(
×
140
        id,
141
        type,
142
        integrationType,
143
        isManuallyCreated,
144
        options,
145
        createdBy,
146
        modifiedBy,
147
        partnerItem,
148
        boxItem,
149
        createdAt,
150
        modifiedAt);
151
  }
152

153
  @Override
154
  public String toString() {
155
    return "IntegrationMapping{"
×
156
        + "id='"
157
        + id
158
        + '\''
159
        + ", "
160
        + "type='"
161
        + type
162
        + '\''
163
        + ", "
164
        + "integrationType='"
165
        + integrationType
166
        + '\''
167
        + ", "
168
        + "isManuallyCreated='"
169
        + isManuallyCreated
170
        + '\''
171
        + ", "
172
        + "options='"
173
        + options
174
        + '\''
175
        + ", "
176
        + "createdBy='"
177
        + createdBy
178
        + '\''
179
        + ", "
180
        + "modifiedBy='"
181
        + modifiedBy
182
        + '\''
183
        + ", "
184
        + "partnerItem='"
185
        + partnerItem
186
        + '\''
187
        + ", "
188
        + "boxItem='"
189
        + boxItem
190
        + '\''
191
        + ", "
192
        + "createdAt='"
193
        + createdAt
194
        + '\''
195
        + ", "
196
        + "modifiedAt='"
197
        + modifiedAt
198
        + '\''
199
        + "}";
200
  }
201

202
  public static class Builder extends IntegrationMappingBase.Builder {
203

204
    protected EnumWrapper<IntegrationMappingIntegrationTypeField> integrationType;
205

206
    protected Boolean isManuallyCreated;
207

208
    protected IntegrationMappingSlackOptions options;
209

210
    protected UserIntegrationMappings createdBy;
211

212
    protected UserIntegrationMappings modifiedBy;
213

214
    protected final IntegrationMappingPartnerItemSlackUnion partnerItem;
215

216
    protected final FolderMini boxItem;
217

218
    protected Date createdAt;
219

220
    protected Date modifiedAt;
221

222
    public Builder(
223
        String id, IntegrationMappingPartnerItemSlackUnion partnerItem, FolderMini boxItem) {
224
      super(id);
×
225
      this.partnerItem = partnerItem;
×
226
      this.boxItem = boxItem;
×
227
    }
×
228

229
    public Builder integrationType(IntegrationMappingIntegrationTypeField integrationType) {
UNCOV
230
      this.integrationType =
×
231
          new EnumWrapper<IntegrationMappingIntegrationTypeField>(integrationType);
232
      return this;
×
233
    }
234

235
    public Builder integrationType(
236
        EnumWrapper<IntegrationMappingIntegrationTypeField> integrationType) {
237
      this.integrationType = integrationType;
×
238
      return this;
×
239
    }
240

241
    public Builder isManuallyCreated(Boolean isManuallyCreated) {
242
      this.isManuallyCreated = isManuallyCreated;
×
243
      return this;
×
244
    }
245

246
    public Builder options(IntegrationMappingSlackOptions options) {
247
      this.options = options;
×
248
      return this;
×
249
    }
250

251
    public Builder createdBy(UserIntegrationMappings createdBy) {
252
      this.createdBy = createdBy;
×
253
      return this;
×
254
    }
255

256
    public Builder modifiedBy(UserIntegrationMappings modifiedBy) {
257
      this.modifiedBy = modifiedBy;
×
258
      return this;
×
259
    }
260

261
    public Builder createdAt(Date createdAt) {
262
      this.createdAt = createdAt;
×
263
      return this;
×
264
    }
265

266
    public Builder modifiedAt(Date modifiedAt) {
267
      this.modifiedAt = modifiedAt;
×
268
      return this;
×
269
    }
270

271
    @Override
272
    public Builder type(IntegrationMappingBaseTypeField type) {
273
      this.type = new EnumWrapper<IntegrationMappingBaseTypeField>(type);
×
274
      return this;
×
275
    }
276

277
    @Override
278
    public Builder type(EnumWrapper<IntegrationMappingBaseTypeField> type) {
279
      this.type = type;
×
280
      return this;
×
281
    }
282

283
    public IntegrationMapping build() {
284
      return new IntegrationMapping(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