• 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

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.integrationmappingpartneritemteamsunion.IntegrationMappingPartnerItemTeamsUnion;
8
import com.box.sdkgen.serialization.json.EnumWrapper;
9
import com.fasterxml.jackson.annotation.JsonProperty;
10
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
11
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
12
import java.util.Date;
13
import java.util.Objects;
14

15
public class IntegrationMappingTeams extends IntegrationMappingBase {
16

17
  @JsonDeserialize(
18
      using =
19
          IntegrationMappingTeamsIntegrationTypeField
20
              .IntegrationMappingTeamsIntegrationTypeFieldDeserializer.class)
21
  @JsonSerialize(
22
      using =
23
          IntegrationMappingTeamsIntegrationTypeField
24
              .IntegrationMappingTeamsIntegrationTypeFieldSerializer.class)
25
  @JsonProperty("integration_type")
26
  protected EnumWrapper<IntegrationMappingTeamsIntegrationTypeField> integrationType;
27

28
  @JsonProperty("is_overridden_by_manual_mapping")
29
  protected Boolean isOverriddenByManualMapping;
30

31
  @JsonProperty("partner_item")
32
  protected final IntegrationMappingPartnerItemTeamsUnion partnerItem;
33

34
  @JsonProperty("box_item")
35
  protected final FolderReference boxItem;
36

37
  @JsonProperty("created_at")
38
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
39
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
40
  protected Date createdAt;
41

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

47
  public IntegrationMappingTeams(
48
      @JsonProperty("id") String id,
49
      @JsonProperty("partner_item") IntegrationMappingPartnerItemTeamsUnion partnerItem,
50
      @JsonProperty("box_item") FolderReference boxItem) {
51
    super(id);
×
52
    this.partnerItem = partnerItem;
×
53
    this.boxItem = boxItem;
×
54
  }
×
55

56
  protected IntegrationMappingTeams(Builder builder) {
57
    super(builder);
×
58
    this.integrationType = builder.integrationType;
×
59
    this.isOverriddenByManualMapping = builder.isOverriddenByManualMapping;
×
60
    this.partnerItem = builder.partnerItem;
×
61
    this.boxItem = builder.boxItem;
×
62
    this.createdAt = builder.createdAt;
×
63
    this.modifiedAt = builder.modifiedAt;
×
64
  }
×
65

66
  public EnumWrapper<IntegrationMappingTeamsIntegrationTypeField> getIntegrationType() {
67
    return integrationType;
×
68
  }
69

70
  public Boolean getIsOverriddenByManualMapping() {
71
    return isOverriddenByManualMapping;
×
72
  }
73

74
  public IntegrationMappingPartnerItemTeamsUnion getPartnerItem() {
75
    return partnerItem;
×
76
  }
77

78
  public FolderReference getBoxItem() {
79
    return boxItem;
×
80
  }
81

82
  public Date getCreatedAt() {
83
    return createdAt;
×
84
  }
85

86
  public Date getModifiedAt() {
87
    return modifiedAt;
×
88
  }
89

90
  @Override
91
  public boolean equals(Object o) {
92
    if (this == o) {
×
93
      return true;
×
94
    }
95
    if (o == null || getClass() != o.getClass()) {
×
96
      return false;
×
97
    }
98
    IntegrationMappingTeams casted = (IntegrationMappingTeams) o;
×
99
    return Objects.equals(id, casted.id)
×
100
        && Objects.equals(type, casted.type)
×
101
        && Objects.equals(integrationType, casted.integrationType)
×
102
        && Objects.equals(isOverriddenByManualMapping, casted.isOverriddenByManualMapping)
×
103
        && Objects.equals(partnerItem, casted.partnerItem)
×
104
        && Objects.equals(boxItem, casted.boxItem)
×
105
        && Objects.equals(createdAt, casted.createdAt)
×
106
        && Objects.equals(modifiedAt, casted.modifiedAt);
×
107
  }
108

109
  @Override
110
  public int hashCode() {
111
    return Objects.hash(
×
112
        id,
113
        type,
114
        integrationType,
115
        isOverriddenByManualMapping,
116
        partnerItem,
117
        boxItem,
118
        createdAt,
119
        modifiedAt);
120
  }
121

122
  @Override
123
  public String toString() {
124
    return "IntegrationMappingTeams{"
×
125
        + "id='"
126
        + id
127
        + '\''
128
        + ", "
129
        + "type='"
130
        + type
131
        + '\''
132
        + ", "
133
        + "integrationType='"
134
        + integrationType
135
        + '\''
136
        + ", "
137
        + "isOverriddenByManualMapping='"
138
        + isOverriddenByManualMapping
139
        + '\''
140
        + ", "
141
        + "partnerItem='"
142
        + partnerItem
143
        + '\''
144
        + ", "
145
        + "boxItem='"
146
        + boxItem
147
        + '\''
148
        + ", "
149
        + "createdAt='"
150
        + createdAt
151
        + '\''
152
        + ", "
153
        + "modifiedAt='"
154
        + modifiedAt
155
        + '\''
156
        + "}";
157
  }
158

159
  public static class Builder extends IntegrationMappingBase.Builder {
160

161
    protected EnumWrapper<IntegrationMappingTeamsIntegrationTypeField> integrationType;
162

163
    protected Boolean isOverriddenByManualMapping;
164

165
    protected final IntegrationMappingPartnerItemTeamsUnion partnerItem;
166

167
    protected final FolderReference boxItem;
168

169
    protected Date createdAt;
170

171
    protected Date modifiedAt;
172

173
    public Builder(
174
        String id, IntegrationMappingPartnerItemTeamsUnion partnerItem, FolderReference boxItem) {
175
      super(id);
×
176
      this.partnerItem = partnerItem;
×
177
      this.boxItem = boxItem;
×
178
    }
×
179

180
    public Builder integrationType(IntegrationMappingTeamsIntegrationTypeField integrationType) {
UNCOV
181
      this.integrationType =
×
182
          new EnumWrapper<IntegrationMappingTeamsIntegrationTypeField>(integrationType);
183
      return this;
×
184
    }
185

186
    public Builder integrationType(
187
        EnumWrapper<IntegrationMappingTeamsIntegrationTypeField> integrationType) {
188
      this.integrationType = integrationType;
×
189
      return this;
×
190
    }
191

192
    public Builder isOverriddenByManualMapping(Boolean isOverriddenByManualMapping) {
UNCOV
193
      this.isOverriddenByManualMapping = isOverriddenByManualMapping;
×
194
      return this;
×
195
    }
196

197
    public Builder createdAt(Date createdAt) {
198
      this.createdAt = createdAt;
×
199
      return this;
×
200
    }
201

202
    public Builder modifiedAt(Date modifiedAt) {
203
      this.modifiedAt = modifiedAt;
×
204
      return this;
×
205
    }
206

207
    @Override
208
    public Builder type(IntegrationMappingBaseTypeField type) {
209
      this.type = new EnumWrapper<IntegrationMappingBaseTypeField>(type);
×
210
      return this;
×
211
    }
212

213
    @Override
214
    public Builder type(EnumWrapper<IntegrationMappingBaseTypeField> type) {
215
      this.type = type;
×
216
      return this;
×
217
    }
218

219
    public IntegrationMappingTeams build() {
220
      return new IntegrationMappingTeams(this);
×
221
    }
222
  }
223
}
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