• 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/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.JsonFilter;
12
import com.fasterxml.jackson.annotation.JsonProperty;
13
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
14
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
15
import java.util.Date;
16
import java.util.Objects;
17

18
@JsonFilter("nullablePropertyFilter")
19
public class IntegrationMapping extends IntegrationMappingBase {
20

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

32
  @JsonProperty("is_manually_created")
33
  protected Boolean isManuallyCreated;
34

35
  protected IntegrationMappingSlackOptions options;
36

37
  @JsonProperty("created_by")
38
  protected UserIntegrationMappings createdBy;
39

40
  @JsonProperty("modified_by")
41
  protected UserIntegrationMappings modifiedBy;
42

43
  @JsonProperty("partner_item")
44
  protected final IntegrationMappingPartnerItemSlackUnion partnerItem;
45

46
  @JsonProperty("box_item")
47
  protected final FolderMini boxItem;
48

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

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

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

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

82
  public EnumWrapper<IntegrationMappingIntegrationTypeField> getIntegrationType() {
83
    return integrationType;
1✔
84
  }
85

86
  public Boolean getIsManuallyCreated() {
UNCOV
87
    return isManuallyCreated;
×
88
  }
89

90
  public IntegrationMappingSlackOptions getOptions() {
UNCOV
91
    return options;
×
92
  }
93

94
  public UserIntegrationMappings getCreatedBy() {
UNCOV
95
    return createdBy;
×
96
  }
97

98
  public UserIntegrationMappings getModifiedBy() {
UNCOV
99
    return modifiedBy;
×
100
  }
101

102
  public IntegrationMappingPartnerItemSlackUnion getPartnerItem() {
UNCOV
103
    return partnerItem;
×
104
  }
105

106
  public FolderMini getBoxItem() {
107
    return boxItem;
1✔
108
  }
109

110
  public Date getCreatedAt() {
UNCOV
111
    return createdAt;
×
112
  }
113

114
  public Date getModifiedAt() {
UNCOV
115
    return modifiedAt;
×
116
  }
117

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

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

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

205
  public static class Builder extends IntegrationMappingBase.Builder {
206

207
    protected EnumWrapper<IntegrationMappingIntegrationTypeField> integrationType;
208

209
    protected Boolean isManuallyCreated;
210

211
    protected IntegrationMappingSlackOptions options;
212

213
    protected UserIntegrationMappings createdBy;
214

215
    protected UserIntegrationMappings modifiedBy;
216

217
    protected final IntegrationMappingPartnerItemSlackUnion partnerItem;
218

219
    protected final FolderMini boxItem;
220

221
    protected Date createdAt;
222

223
    protected Date modifiedAt;
224

225
    public Builder(
226
        String id, IntegrationMappingPartnerItemSlackUnion partnerItem, FolderMini boxItem) {
227
      super(id);
×
UNCOV
228
      this.partnerItem = partnerItem;
×
UNCOV
229
      this.boxItem = boxItem;
×
230
    }
×
231

232
    public Builder integrationType(IntegrationMappingIntegrationTypeField integrationType) {
UNCOV
233
      this.integrationType =
×
234
          new EnumWrapper<IntegrationMappingIntegrationTypeField>(integrationType);
UNCOV
235
      return this;
×
236
    }
237

238
    public Builder integrationType(
239
        EnumWrapper<IntegrationMappingIntegrationTypeField> integrationType) {
UNCOV
240
      this.integrationType = integrationType;
×
UNCOV
241
      return this;
×
242
    }
243

244
    public Builder isManuallyCreated(Boolean isManuallyCreated) {
UNCOV
245
      this.isManuallyCreated = isManuallyCreated;
×
UNCOV
246
      return this;
×
247
    }
248

249
    public Builder options(IntegrationMappingSlackOptions options) {
UNCOV
250
      this.options = options;
×
UNCOV
251
      return this;
×
252
    }
253

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

259
    public Builder modifiedBy(UserIntegrationMappings modifiedBy) {
UNCOV
260
      this.modifiedBy = modifiedBy;
×
UNCOV
261
      return this;
×
262
    }
263

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

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

274
    @Override
275
    public Builder type(IntegrationMappingBaseTypeField type) {
UNCOV
276
      this.type = new EnumWrapper<IntegrationMappingBaseTypeField>(type);
×
UNCOV
277
      return this;
×
278
    }
279

280
    @Override
281
    public Builder type(EnumWrapper<IntegrationMappingBaseTypeField> type) {
UNCOV
282
      this.type = type;
×
UNCOV
283
      return this;
×
284
    }
285

286
    public IntegrationMapping build() {
UNCOV
287
      return new IntegrationMapping(this);
×
288
    }
289
  }
290
}
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