• 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

45.71
/src/main/java/com/box/sdkgen/managers/folders/UpdateFolderByIdRequestBody.java
1
package com.box.sdkgen.managers.folders;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.serialization.json.EnumWrapper;
5
import com.fasterxml.jackson.annotation.JsonProperty;
6
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
7
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
8
import java.util.List;
9
import java.util.Objects;
10

11
public class UpdateFolderByIdRequestBody extends SerializableObject {
12

13
  protected String name;
14

15
  protected String description;
16

17
  @JsonDeserialize(
18
      using =
19
          UpdateFolderByIdRequestBodySyncStateField
20
              .UpdateFolderByIdRequestBodySyncStateFieldDeserializer.class)
21
  @JsonSerialize(
22
      using =
23
          UpdateFolderByIdRequestBodySyncStateField
24
              .UpdateFolderByIdRequestBodySyncStateFieldSerializer.class)
25
  @JsonProperty("sync_state")
26
  protected EnumWrapper<UpdateFolderByIdRequestBodySyncStateField> syncState;
27

28
  @JsonProperty("can_non_owners_invite")
29
  protected Boolean canNonOwnersInvite;
30

31
  protected UpdateFolderByIdRequestBodyParentField parent;
32

33
  @JsonProperty("shared_link")
34
  protected UpdateFolderByIdRequestBodySharedLinkField sharedLink;
35

36
  @JsonProperty("folder_upload_email")
37
  protected UpdateFolderByIdRequestBodyFolderUploadEmailField folderUploadEmail;
38

39
  protected List<String> tags;
40

41
  @JsonProperty("is_collaboration_restricted_to_enterprise")
42
  protected Boolean isCollaborationRestrictedToEnterprise;
43

44
  protected List<UpdateFolderByIdRequestBodyCollectionsField> collections;
45

46
  @JsonProperty("can_non_owners_view_collaborators")
47
  protected Boolean canNonOwnersViewCollaborators;
48

49
  public UpdateFolderByIdRequestBody() {
50
    super();
×
51
  }
×
52

53
  protected UpdateFolderByIdRequestBody(Builder builder) {
54
    super();
1✔
55
    this.name = builder.name;
1✔
56
    this.description = builder.description;
1✔
57
    this.syncState = builder.syncState;
1✔
58
    this.canNonOwnersInvite = builder.canNonOwnersInvite;
1✔
59
    this.parent = builder.parent;
1✔
60
    this.sharedLink = builder.sharedLink;
1✔
61
    this.folderUploadEmail = builder.folderUploadEmail;
1✔
62
    this.tags = builder.tags;
1✔
63
    this.isCollaborationRestrictedToEnterprise = builder.isCollaborationRestrictedToEnterprise;
1✔
64
    this.collections = builder.collections;
1✔
65
    this.canNonOwnersViewCollaborators = builder.canNonOwnersViewCollaborators;
1✔
66
  }
1✔
67

68
  public String getName() {
69
    return name;
1✔
70
  }
71

72
  public String getDescription() {
73
    return description;
1✔
74
  }
75

76
  public EnumWrapper<UpdateFolderByIdRequestBodySyncStateField> getSyncState() {
77
    return syncState;
1✔
78
  }
79

80
  public Boolean getCanNonOwnersInvite() {
81
    return canNonOwnersInvite;
1✔
82
  }
83

84
  public UpdateFolderByIdRequestBodyParentField getParent() {
85
    return parent;
1✔
86
  }
87

88
  public UpdateFolderByIdRequestBodySharedLinkField getSharedLink() {
89
    return sharedLink;
1✔
90
  }
91

92
  public UpdateFolderByIdRequestBodyFolderUploadEmailField getFolderUploadEmail() {
93
    return folderUploadEmail;
1✔
94
  }
95

96
  public List<String> getTags() {
97
    return tags;
1✔
98
  }
99

100
  public Boolean getIsCollaborationRestrictedToEnterprise() {
101
    return isCollaborationRestrictedToEnterprise;
1✔
102
  }
103

104
  public List<UpdateFolderByIdRequestBodyCollectionsField> getCollections() {
105
    return collections;
1✔
106
  }
107

108
  public Boolean getCanNonOwnersViewCollaborators() {
109
    return canNonOwnersViewCollaborators;
1✔
110
  }
111

112
  @Override
113
  public boolean equals(Object o) {
114
    if (this == o) {
×
115
      return true;
×
116
    }
117
    if (o == null || getClass() != o.getClass()) {
×
118
      return false;
×
119
    }
120
    UpdateFolderByIdRequestBody casted = (UpdateFolderByIdRequestBody) o;
×
121
    return Objects.equals(name, casted.name)
×
122
        && Objects.equals(description, casted.description)
×
123
        && Objects.equals(syncState, casted.syncState)
×
124
        && Objects.equals(canNonOwnersInvite, casted.canNonOwnersInvite)
×
125
        && Objects.equals(parent, casted.parent)
×
126
        && Objects.equals(sharedLink, casted.sharedLink)
×
127
        && Objects.equals(folderUploadEmail, casted.folderUploadEmail)
×
128
        && Objects.equals(tags, casted.tags)
×
129
        && Objects.equals(
×
130
            isCollaborationRestrictedToEnterprise, casted.isCollaborationRestrictedToEnterprise)
131
        && Objects.equals(collections, casted.collections)
×
132
        && Objects.equals(canNonOwnersViewCollaborators, casted.canNonOwnersViewCollaborators);
×
133
  }
134

135
  @Override
136
  public int hashCode() {
137
    return Objects.hash(
×
138
        name,
139
        description,
140
        syncState,
141
        canNonOwnersInvite,
142
        parent,
143
        sharedLink,
144
        folderUploadEmail,
145
        tags,
146
        isCollaborationRestrictedToEnterprise,
147
        collections,
148
        canNonOwnersViewCollaborators);
149
  }
150

151
  @Override
152
  public String toString() {
153
    return "UpdateFolderByIdRequestBody{"
×
154
        + "name='"
155
        + name
156
        + '\''
157
        + ", "
158
        + "description='"
159
        + description
160
        + '\''
161
        + ", "
162
        + "syncState='"
163
        + syncState
164
        + '\''
165
        + ", "
166
        + "canNonOwnersInvite='"
167
        + canNonOwnersInvite
168
        + '\''
169
        + ", "
170
        + "parent='"
171
        + parent
172
        + '\''
173
        + ", "
174
        + "sharedLink='"
175
        + sharedLink
176
        + '\''
177
        + ", "
178
        + "folderUploadEmail='"
179
        + folderUploadEmail
180
        + '\''
181
        + ", "
182
        + "tags='"
183
        + tags
184
        + '\''
185
        + ", "
186
        + "isCollaborationRestrictedToEnterprise='"
187
        + isCollaborationRestrictedToEnterprise
188
        + '\''
189
        + ", "
190
        + "collections='"
191
        + collections
192
        + '\''
193
        + ", "
194
        + "canNonOwnersViewCollaborators='"
195
        + canNonOwnersViewCollaborators
196
        + '\''
197
        + "}";
198
  }
199

200
  public static class Builder {
1✔
201

202
    protected String name;
203

204
    protected String description;
205

206
    protected EnumWrapper<UpdateFolderByIdRequestBodySyncStateField> syncState;
207

208
    protected Boolean canNonOwnersInvite;
209

210
    protected UpdateFolderByIdRequestBodyParentField parent;
211

212
    protected UpdateFolderByIdRequestBodySharedLinkField sharedLink;
213

214
    protected UpdateFolderByIdRequestBodyFolderUploadEmailField folderUploadEmail;
215

216
    protected List<String> tags;
217

218
    protected Boolean isCollaborationRestrictedToEnterprise;
219

220
    protected List<UpdateFolderByIdRequestBodyCollectionsField> collections;
221

222
    protected Boolean canNonOwnersViewCollaborators;
223

224
    public Builder name(String name) {
225
      this.name = name;
1✔
226
      return this;
1✔
227
    }
228

229
    public Builder description(String description) {
230
      this.description = description;
1✔
231
      return this;
1✔
232
    }
233

234
    public Builder syncState(UpdateFolderByIdRequestBodySyncStateField syncState) {
UNCOV
235
      this.syncState = new EnumWrapper<UpdateFolderByIdRequestBodySyncStateField>(syncState);
×
236
      return this;
×
237
    }
238

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

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

249
    public Builder parent(UpdateFolderByIdRequestBodyParentField parent) {
250
      this.parent = parent;
1✔
251
      return this;
1✔
252
    }
253

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

259
    public Builder folderUploadEmail(
260
        UpdateFolderByIdRequestBodyFolderUploadEmailField folderUploadEmail) {
261
      this.folderUploadEmail = folderUploadEmail;
×
262
      return this;
×
263
    }
264

265
    public Builder tags(List<String> tags) {
266
      this.tags = tags;
×
267
      return this;
×
268
    }
269

270
    public Builder isCollaborationRestrictedToEnterprise(
271
        Boolean isCollaborationRestrictedToEnterprise) {
272
      this.isCollaborationRestrictedToEnterprise = isCollaborationRestrictedToEnterprise;
×
273
      return this;
×
274
    }
275

276
    public Builder collections(List<UpdateFolderByIdRequestBodyCollectionsField> collections) {
UNCOV
277
      this.collections = collections;
×
278
      return this;
×
279
    }
280

281
    public Builder canNonOwnersViewCollaborators(Boolean canNonOwnersViewCollaborators) {
UNCOV
282
      this.canNonOwnersViewCollaborators = canNonOwnersViewCollaborators;
×
283
      return this;
×
284
    }
285

286
    public UpdateFolderByIdRequestBody build() {
287
      return new UpdateFolderByIdRequestBody(this);
1✔
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