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

box / box-java-sdk / #4746

19 Aug 2025 10:21AM UTC coverage: 38.831% (+0.7%) from 38.166%
#4746

push

github

web-flow
feat: Support external user deletion API

20 of 167 new or added lines in 8 files covered. (11.98%)

145 existing lines in 18 files now uncovered.

19109 of 49211 relevant lines covered (38.83%)

0.39 hits per line

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

10.29
/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.integrationmappingpartneritemslack.IntegrationMappingPartnerItemSlack;
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 IntegrationMappingPartnerItemSlack 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") IntegrationMappingPartnerItemSlack 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) {
UNCOV
69
    super(builder);
×
UNCOV
70
    this.integrationType = builder.integrationType;
×
UNCOV
71
    this.isManuallyCreated = builder.isManuallyCreated;
×
UNCOV
72
    this.options = builder.options;
×
UNCOV
73
    this.createdBy = builder.createdBy;
×
UNCOV
74
    this.modifiedBy = builder.modifiedBy;
×
UNCOV
75
    this.partnerItem = builder.partnerItem;
×
UNCOV
76
    this.boxItem = builder.boxItem;
×
77
    this.createdAt = builder.createdAt;
×
78
    this.modifiedAt = builder.modifiedAt;
×
79
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
80
  }
×
81

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

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

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

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

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

102
  public IntegrationMappingPartnerItemSlack getPartnerItem() {
103
    return partnerItem;
1✔
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) {
UNCOV
120
    if (this == o) {
×
UNCOV
121
      return true;
×
122
    }
123
    if (o == null || getClass() != o.getClass()) {
×
UNCOV
124
      return false;
×
125
    }
UNCOV
126
    IntegrationMapping casted = (IntegrationMapping) o;
×
UNCOV
127
    return Objects.equals(id, casted.id)
×
128
        && Objects.equals(type, casted.type)
×
129
        && Objects.equals(integrationType, casted.integrationType)
×
UNCOV
130
        && Objects.equals(isManuallyCreated, casted.isManuallyCreated)
×
131
        && Objects.equals(options, casted.options)
×
132
        && Objects.equals(createdBy, casted.createdBy)
×
UNCOV
133
        && Objects.equals(modifiedBy, casted.modifiedBy)
×
134
        && Objects.equals(partnerItem, casted.partnerItem)
×
135
        && Objects.equals(boxItem, casted.boxItem)
×
136
        && Objects.equals(createdAt, casted.createdAt)
×
137
        && Objects.equals(modifiedAt, casted.modifiedAt);
×
138
  }
139

140
  @Override
141
  public int hashCode() {
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 IntegrationMappingPartnerItemSlack partnerItem;
218

219
    protected final FolderMini boxItem;
220

221
    protected Date createdAt;
222

223
    protected Date modifiedAt;
224

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

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

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

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

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

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

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

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

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

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

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

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

© 2025 Coveralls, Inc