• 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

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

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

14
@JsonFilter("nullablePropertyFilter")
15
public class UpdateFolderByIdRequestBody extends SerializableObject {
16

17
  protected String name;
18

19
  protected String description;
20

21
  @JsonDeserialize(
22
      using =
23
          UpdateFolderByIdRequestBodySyncStateField
24
              .UpdateFolderByIdRequestBodySyncStateFieldDeserializer.class)
25
  @JsonSerialize(
26
      using =
27
          UpdateFolderByIdRequestBodySyncStateField
28
              .UpdateFolderByIdRequestBodySyncStateFieldSerializer.class)
29
  @JsonProperty("sync_state")
30
  protected EnumWrapper<UpdateFolderByIdRequestBodySyncStateField> syncState;
31

32
  @JsonProperty("can_non_owners_invite")
33
  protected Boolean canNonOwnersInvite;
34

35
  protected UpdateFolderByIdRequestBodyParentField parent;
36

37
  @JsonProperty("shared_link")
38
  protected UpdateFolderByIdRequestBodySharedLinkField sharedLink;
39

40
  @JsonProperty("folder_upload_email")
41
  @Nullable
42
  protected UpdateFolderByIdRequestBodyFolderUploadEmailField folderUploadEmail;
43

44
  protected List<String> tags;
45

46
  @JsonProperty("is_collaboration_restricted_to_enterprise")
47
  protected Boolean isCollaborationRestrictedToEnterprise;
48

49
  @Nullable protected List<UpdateFolderByIdRequestBodyCollectionsField> collections;
50

51
  @JsonProperty("can_non_owners_view_collaborators")
52
  protected Boolean canNonOwnersViewCollaborators;
53

54
  public UpdateFolderByIdRequestBody() {
UNCOV
55
    super();
×
UNCOV
56
  }
×
57

58
  protected UpdateFolderByIdRequestBody(Builder builder) {
59
    super();
1✔
60
    this.name = builder.name;
1✔
61
    this.description = builder.description;
1✔
62
    this.syncState = builder.syncState;
1✔
63
    this.canNonOwnersInvite = builder.canNonOwnersInvite;
1✔
64
    this.parent = builder.parent;
1✔
65
    this.sharedLink = builder.sharedLink;
1✔
66
    this.folderUploadEmail = builder.folderUploadEmail;
1✔
67
    this.tags = builder.tags;
1✔
68
    this.isCollaborationRestrictedToEnterprise = builder.isCollaborationRestrictedToEnterprise;
1✔
69
    this.collections = builder.collections;
1✔
70
    this.canNonOwnersViewCollaborators = builder.canNonOwnersViewCollaborators;
1✔
71
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
72
  }
1✔
73

74
  public String getName() {
75
    return name;
1✔
76
  }
77

78
  public String getDescription() {
79
    return description;
1✔
80
  }
81

82
  public EnumWrapper<UpdateFolderByIdRequestBodySyncStateField> getSyncState() {
83
    return syncState;
1✔
84
  }
85

86
  public Boolean getCanNonOwnersInvite() {
87
    return canNonOwnersInvite;
1✔
88
  }
89

90
  public UpdateFolderByIdRequestBodyParentField getParent() {
91
    return parent;
1✔
92
  }
93

94
  public UpdateFolderByIdRequestBodySharedLinkField getSharedLink() {
95
    return sharedLink;
1✔
96
  }
97

98
  public UpdateFolderByIdRequestBodyFolderUploadEmailField getFolderUploadEmail() {
99
    return folderUploadEmail;
1✔
100
  }
101

102
  public List<String> getTags() {
103
    return tags;
1✔
104
  }
105

106
  public Boolean getIsCollaborationRestrictedToEnterprise() {
107
    return isCollaborationRestrictedToEnterprise;
1✔
108
  }
109

110
  public List<UpdateFolderByIdRequestBodyCollectionsField> getCollections() {
111
    return collections;
1✔
112
  }
113

114
  public Boolean getCanNonOwnersViewCollaborators() {
115
    return canNonOwnersViewCollaborators;
1✔
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
    UpdateFolderByIdRequestBody casted = (UpdateFolderByIdRequestBody) o;
×
127
    return Objects.equals(name, casted.name)
×
128
        && Objects.equals(description, casted.description)
×
129
        && Objects.equals(syncState, casted.syncState)
×
UNCOV
130
        && Objects.equals(canNonOwnersInvite, casted.canNonOwnersInvite)
×
131
        && Objects.equals(parent, casted.parent)
×
132
        && Objects.equals(sharedLink, casted.sharedLink)
×
UNCOV
133
        && Objects.equals(folderUploadEmail, casted.folderUploadEmail)
×
UNCOV
134
        && Objects.equals(tags, casted.tags)
×
UNCOV
135
        && Objects.equals(
×
136
            isCollaborationRestrictedToEnterprise, casted.isCollaborationRestrictedToEnterprise)
137
        && Objects.equals(collections, casted.collections)
×
UNCOV
138
        && Objects.equals(canNonOwnersViewCollaborators, casted.canNonOwnersViewCollaborators);
×
139
  }
140

141
  @Override
142
  public int hashCode() {
UNCOV
143
    return Objects.hash(
×
144
        name,
145
        description,
146
        syncState,
147
        canNonOwnersInvite,
148
        parent,
149
        sharedLink,
150
        folderUploadEmail,
151
        tags,
152
        isCollaborationRestrictedToEnterprise,
153
        collections,
154
        canNonOwnersViewCollaborators);
155
  }
156

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

206
  public static class Builder extends NullableFieldTracker {
1✔
207

208
    protected String name;
209

210
    protected String description;
211

212
    protected EnumWrapper<UpdateFolderByIdRequestBodySyncStateField> syncState;
213

214
    protected Boolean canNonOwnersInvite;
215

216
    protected UpdateFolderByIdRequestBodyParentField parent;
217

218
    protected UpdateFolderByIdRequestBodySharedLinkField sharedLink;
219

220
    protected UpdateFolderByIdRequestBodyFolderUploadEmailField folderUploadEmail;
221

222
    protected List<String> tags;
223

224
    protected Boolean isCollaborationRestrictedToEnterprise;
225

226
    protected List<UpdateFolderByIdRequestBodyCollectionsField> collections;
227

228
    protected Boolean canNonOwnersViewCollaborators;
229

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

235
    public Builder description(String description) {
236
      this.description = description;
1✔
237
      return this;
1✔
238
    }
239

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

245
    public Builder syncState(EnumWrapper<UpdateFolderByIdRequestBodySyncStateField> syncState) {
246
      this.syncState = syncState;
×
UNCOV
247
      return this;
×
248
    }
249

250
    public Builder canNonOwnersInvite(Boolean canNonOwnersInvite) {
UNCOV
251
      this.canNonOwnersInvite = canNonOwnersInvite;
×
UNCOV
252
      return this;
×
253
    }
254

255
    public Builder parent(UpdateFolderByIdRequestBodyParentField parent) {
256
      this.parent = parent;
1✔
257
      return this;
1✔
258
    }
259

260
    public Builder sharedLink(UpdateFolderByIdRequestBodySharedLinkField sharedLink) {
261
      this.sharedLink = sharedLink;
×
262
      return this;
×
263
    }
264

265
    public Builder folderUploadEmail(
266
        UpdateFolderByIdRequestBodyFolderUploadEmailField folderUploadEmail) {
267
      this.folderUploadEmail = folderUploadEmail;
×
UNCOV
268
      this.markNullableFieldAsSet("folder_upload_email");
×
UNCOV
269
      return this;
×
270
    }
271

272
    public Builder tags(List<String> tags) {
273
      this.tags = tags;
×
UNCOV
274
      return this;
×
275
    }
276

277
    public Builder isCollaborationRestrictedToEnterprise(
278
        Boolean isCollaborationRestrictedToEnterprise) {
UNCOV
279
      this.isCollaborationRestrictedToEnterprise = isCollaborationRestrictedToEnterprise;
×
UNCOV
280
      return this;
×
281
    }
282

283
    public Builder collections(List<UpdateFolderByIdRequestBodyCollectionsField> collections) {
UNCOV
284
      this.collections = collections;
×
UNCOV
285
      this.markNullableFieldAsSet("collections");
×
UNCOV
286
      return this;
×
287
    }
288

289
    public Builder canNonOwnersViewCollaborators(Boolean canNonOwnersViewCollaborators) {
UNCOV
290
      this.canNonOwnersViewCollaborators = canNonOwnersViewCollaborators;
×
UNCOV
291
      return this;
×
292
    }
293

294
    public UpdateFolderByIdRequestBody build() {
295
      return new UpdateFolderByIdRequestBody(this);
1✔
296
    }
297
  }
298
}
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