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

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 hits per line

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

0.0
/src/main/java/com/box/sdkgen/schemas/integrationmappingteams/IntegrationMappingTeams.java
1
package com.box.sdkgen.schemas.integrationmappingteams;
2

3
import com.box.sdkgen.internal.utils.DateTimeUtils;
4
import com.box.sdkgen.schemas.folderreference.FolderReference;
5
import com.box.sdkgen.schemas.integrationmappingbase.IntegrationMappingBase;
6
import com.box.sdkgen.schemas.integrationmappingbase.IntegrationMappingBaseTypeField;
7
import com.box.sdkgen.schemas.integrationmappingpartneritemteams.IntegrationMappingPartnerItemTeams;
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.time.OffsetDateTime;
14
import java.util.Objects;
15

16
/** A Microsoft Teams specific representation of an integration mapping object. */
17
@JsonFilter("nullablePropertyFilter")
18
public class IntegrationMappingTeams extends IntegrationMappingBase {
19

20
  /**
21
   * Identifies the Box partner app, with which the mapping is associated. Supports Slack and Teams.
22
   * (part of the composite key together with `id`).
23
   */
24
  @JsonDeserialize(
25
      using =
26
          IntegrationMappingTeamsIntegrationTypeField
27
              .IntegrationMappingTeamsIntegrationTypeFieldDeserializer.class)
28
  @JsonSerialize(
29
      using =
30
          IntegrationMappingTeamsIntegrationTypeField
31
              .IntegrationMappingTeamsIntegrationTypeFieldSerializer.class)
32
  @JsonProperty("integration_type")
33
  protected EnumWrapper<IntegrationMappingTeamsIntegrationTypeField> integrationType;
34

35
  /**
36
   * Identifies whether the mapping has been manually set by the team owner from UI for channels (as
37
   * opposed to being automatically created).
38
   */
39
  @JsonProperty("is_overridden_by_manual_mapping")
40
  protected Boolean isOverriddenByManualMapping;
41

42
  /** Mapped item object for Teams. */
43
  @JsonProperty("partner_item")
44
  protected final IntegrationMappingPartnerItemTeams partnerItem;
45

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

49
  /** When the integration mapping object was created. */
50
  @JsonProperty("created_at")
51
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
52
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
53
  protected OffsetDateTime createdAt;
54

55
  /** When the integration mapping object was last modified. */
56
  @JsonProperty("modified_at")
57
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
58
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
59
  protected OffsetDateTime modifiedAt;
60

61
  public IntegrationMappingTeams(
62
      @JsonProperty("id") String id,
63
      @JsonProperty("partner_item") IntegrationMappingPartnerItemTeams partnerItem,
64
      @JsonProperty("box_item") FolderReference boxItem) {
65
    super(id);
×
66
    this.partnerItem = partnerItem;
×
67
    this.boxItem = boxItem;
×
68
  }
×
69

70
  protected IntegrationMappingTeams(Builder builder) {
71
    super(builder);
×
72
    this.integrationType = builder.integrationType;
×
73
    this.isOverriddenByManualMapping = builder.isOverriddenByManualMapping;
×
74
    this.partnerItem = builder.partnerItem;
×
75
    this.boxItem = builder.boxItem;
×
76
    this.createdAt = builder.createdAt;
×
77
    this.modifiedAt = builder.modifiedAt;
×
78
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
79
  }
×
80

81
  public EnumWrapper<IntegrationMappingTeamsIntegrationTypeField> getIntegrationType() {
82
    return integrationType;
×
83
  }
84

85
  public Boolean getIsOverriddenByManualMapping() {
86
    return isOverriddenByManualMapping;
×
87
  }
88

89
  public IntegrationMappingPartnerItemTeams getPartnerItem() {
90
    return partnerItem;
×
91
  }
92

93
  public FolderReference getBoxItem() {
94
    return boxItem;
×
95
  }
96

97
  public OffsetDateTime getCreatedAt() {
98
    return createdAt;
×
99
  }
100

101
  public OffsetDateTime getModifiedAt() {
102
    return modifiedAt;
×
103
  }
104

105
  @Override
106
  public boolean equals(Object o) {
107
    if (this == o) {
×
108
      return true;
×
109
    }
110
    if (o == null || getClass() != o.getClass()) {
×
111
      return false;
×
112
    }
113
    IntegrationMappingTeams casted = (IntegrationMappingTeams) o;
×
114
    return Objects.equals(id, casted.id)
×
115
        && Objects.equals(type, casted.type)
×
116
        && Objects.equals(integrationType, casted.integrationType)
×
117
        && Objects.equals(isOverriddenByManualMapping, casted.isOverriddenByManualMapping)
×
118
        && Objects.equals(partnerItem, casted.partnerItem)
×
119
        && Objects.equals(boxItem, casted.boxItem)
×
120
        && Objects.equals(createdAt, casted.createdAt)
×
121
        && Objects.equals(modifiedAt, casted.modifiedAt);
×
122
  }
123

124
  @Override
125
  public int hashCode() {
126
    return Objects.hash(
×
127
        id,
128
        type,
129
        integrationType,
130
        isOverriddenByManualMapping,
131
        partnerItem,
132
        boxItem,
133
        createdAt,
134
        modifiedAt);
135
  }
136

137
  @Override
138
  public String toString() {
139
    return "IntegrationMappingTeams{"
×
140
        + "id='"
141
        + id
142
        + '\''
143
        + ", "
144
        + "type='"
145
        + type
146
        + '\''
147
        + ", "
148
        + "integrationType='"
149
        + integrationType
150
        + '\''
151
        + ", "
152
        + "isOverriddenByManualMapping='"
153
        + isOverriddenByManualMapping
154
        + '\''
155
        + ", "
156
        + "partnerItem='"
157
        + partnerItem
158
        + '\''
159
        + ", "
160
        + "boxItem='"
161
        + boxItem
162
        + '\''
163
        + ", "
164
        + "createdAt='"
165
        + createdAt
166
        + '\''
167
        + ", "
168
        + "modifiedAt='"
169
        + modifiedAt
170
        + '\''
171
        + "}";
172
  }
173

174
  public static class Builder extends IntegrationMappingBase.Builder {
175

176
    protected EnumWrapper<IntegrationMappingTeamsIntegrationTypeField> integrationType;
177

178
    protected Boolean isOverriddenByManualMapping;
179

180
    protected final IntegrationMappingPartnerItemTeams partnerItem;
181

182
    protected final FolderReference boxItem;
183

184
    protected OffsetDateTime createdAt;
185

186
    protected OffsetDateTime modifiedAt;
187

188
    public Builder(
189
        String id, IntegrationMappingPartnerItemTeams partnerItem, FolderReference boxItem) {
190
      super(id);
×
191
      this.partnerItem = partnerItem;
×
192
      this.boxItem = boxItem;
×
193
    }
×
194

195
    public Builder integrationType(IntegrationMappingTeamsIntegrationTypeField integrationType) {
196
      this.integrationType =
×
197
          new EnumWrapper<IntegrationMappingTeamsIntegrationTypeField>(integrationType);
198
      return this;
×
199
    }
200

201
    public Builder integrationType(
202
        EnumWrapper<IntegrationMappingTeamsIntegrationTypeField> integrationType) {
203
      this.integrationType = integrationType;
×
204
      return this;
×
205
    }
206

207
    public Builder isOverriddenByManualMapping(Boolean isOverriddenByManualMapping) {
208
      this.isOverriddenByManualMapping = isOverriddenByManualMapping;
×
209
      return this;
×
210
    }
211

212
    public Builder createdAt(OffsetDateTime createdAt) {
213
      this.createdAt = createdAt;
×
214
      return this;
×
215
    }
216

217
    public Builder modifiedAt(OffsetDateTime modifiedAt) {
218
      this.modifiedAt = modifiedAt;
×
219
      return this;
×
220
    }
221

222
    @Override
223
    public Builder type(IntegrationMappingBaseTypeField type) {
224
      this.type = new EnumWrapper<IntegrationMappingBaseTypeField>(type);
×
225
      return this;
×
226
    }
227

228
    @Override
229
    public Builder type(EnumWrapper<IntegrationMappingBaseTypeField> type) {
230
      this.type = type;
×
231
      return this;
×
232
    }
233

234
    public IntegrationMappingTeams build() {
235
      return new IntegrationMappingTeams(this);
×
236
    }
237
  }
238
}
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