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

box / box-java-sdk-gen / #293

24 Jun 2025 01:20PM UTC coverage: 35.661% (+0.03%) from 35.632%
#293

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%)

11794 existing lines in 627 files now uncovered.

16937 of 47495 relevant lines covered (35.66%)

0.36 hits per line

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

48.39
/src/main/java/com/box/sdkgen/managers/files/UpdateFileByIdRequestBody.java
1
package com.box.sdkgen.managers.files;
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.internal.utils.DateTimeUtils;
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.Date;
12
import java.util.List;
13
import java.util.Objects;
14

15
@JsonFilter("nullablePropertyFilter")
16
public class UpdateFileByIdRequestBody extends SerializableObject {
17

18
  protected String name;
19

20
  protected String description;
21

22
  protected UpdateFileByIdRequestBodyParentField parent;
23

24
  @JsonProperty("shared_link")
25
  @Nullable
26
  protected UpdateFileByIdRequestBodySharedLinkField sharedLink;
27

28
  @Nullable protected UpdateFileByIdRequestBodyLockField lock;
29

30
  @JsonProperty("disposition_at")
31
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
32
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
33
  protected Date dispositionAt;
34

35
  protected UpdateFileByIdRequestBodyPermissionsField permissions;
36

37
  @Nullable protected List<UpdateFileByIdRequestBodyCollectionsField> collections;
38

39
  protected List<String> tags;
40

41
  public UpdateFileByIdRequestBody() {
UNCOV
42
    super();
×
UNCOV
43
  }
×
44

45
  protected UpdateFileByIdRequestBody(Builder builder) {
46
    super();
1✔
47
    this.name = builder.name;
1✔
48
    this.description = builder.description;
1✔
49
    this.parent = builder.parent;
1✔
50
    this.sharedLink = builder.sharedLink;
1✔
51
    this.lock = builder.lock;
1✔
52
    this.dispositionAt = builder.dispositionAt;
1✔
53
    this.permissions = builder.permissions;
1✔
54
    this.collections = builder.collections;
1✔
55
    this.tags = builder.tags;
1✔
56
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
57
  }
1✔
58

59
  public String getName() {
60
    return name;
1✔
61
  }
62

63
  public String getDescription() {
64
    return description;
1✔
65
  }
66

67
  public UpdateFileByIdRequestBodyParentField getParent() {
68
    return parent;
1✔
69
  }
70

71
  public UpdateFileByIdRequestBodySharedLinkField getSharedLink() {
72
    return sharedLink;
1✔
73
  }
74

75
  public UpdateFileByIdRequestBodyLockField getLock() {
76
    return lock;
1✔
77
  }
78

79
  public Date getDispositionAt() {
80
    return dispositionAt;
1✔
81
  }
82

83
  public UpdateFileByIdRequestBodyPermissionsField getPermissions() {
84
    return permissions;
1✔
85
  }
86

87
  public List<UpdateFileByIdRequestBodyCollectionsField> getCollections() {
88
    return collections;
1✔
89
  }
90

91
  public List<String> getTags() {
92
    return tags;
1✔
93
  }
94

95
  @Override
96
  public boolean equals(Object o) {
97
    if (this == o) {
×
98
      return true;
×
99
    }
100
    if (o == null || getClass() != o.getClass()) {
×
101
      return false;
×
102
    }
103
    UpdateFileByIdRequestBody casted = (UpdateFileByIdRequestBody) o;
×
104
    return Objects.equals(name, casted.name)
×
105
        && Objects.equals(description, casted.description)
×
106
        && Objects.equals(parent, casted.parent)
×
UNCOV
107
        && Objects.equals(sharedLink, casted.sharedLink)
×
UNCOV
108
        && Objects.equals(lock, casted.lock)
×
UNCOV
109
        && Objects.equals(dispositionAt, casted.dispositionAt)
×
UNCOV
110
        && Objects.equals(permissions, casted.permissions)
×
111
        && Objects.equals(collections, casted.collections)
×
UNCOV
112
        && Objects.equals(tags, casted.tags);
×
113
  }
114

115
  @Override
116
  public int hashCode() {
117
    return Objects.hash(
×
118
        name, description, parent, sharedLink, lock, dispositionAt, permissions, collections, tags);
119
  }
120

121
  @Override
122
  public String toString() {
UNCOV
123
    return "UpdateFileByIdRequestBody{"
×
124
        + "name='"
125
        + name
126
        + '\''
127
        + ", "
128
        + "description='"
129
        + description
130
        + '\''
131
        + ", "
132
        + "parent='"
133
        + parent
134
        + '\''
135
        + ", "
136
        + "sharedLink='"
137
        + sharedLink
138
        + '\''
139
        + ", "
140
        + "lock='"
141
        + lock
142
        + '\''
143
        + ", "
144
        + "dispositionAt='"
145
        + dispositionAt
146
        + '\''
147
        + ", "
148
        + "permissions='"
149
        + permissions
150
        + '\''
151
        + ", "
152
        + "collections='"
153
        + collections
154
        + '\''
155
        + ", "
156
        + "tags='"
157
        + tags
158
        + '\''
159
        + "}";
160
  }
161

162
  public static class Builder extends NullableFieldTracker {
1✔
163

164
    protected String name;
165

166
    protected String description;
167

168
    protected UpdateFileByIdRequestBodyParentField parent;
169

170
    protected UpdateFileByIdRequestBodySharedLinkField sharedLink;
171

172
    protected UpdateFileByIdRequestBodyLockField lock;
173

174
    protected Date dispositionAt;
175

176
    protected UpdateFileByIdRequestBodyPermissionsField permissions;
177

178
    protected List<UpdateFileByIdRequestBodyCollectionsField> collections;
179

180
    protected List<String> tags;
181

182
    public Builder name(String name) {
183
      this.name = name;
1✔
184
      return this;
1✔
185
    }
186

187
    public Builder description(String description) {
188
      this.description = description;
1✔
189
      return this;
1✔
190
    }
191

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

197
    public Builder sharedLink(UpdateFileByIdRequestBodySharedLinkField sharedLink) {
UNCOV
198
      this.sharedLink = sharedLink;
×
UNCOV
199
      this.markNullableFieldAsSet("shared_link");
×
UNCOV
200
      return this;
×
201
    }
202

203
    public Builder lock(UpdateFileByIdRequestBodyLockField lock) {
204
      this.lock = lock;
1✔
205
      this.markNullableFieldAsSet("lock");
1✔
206
      return this;
1✔
207
    }
208

209
    public Builder dispositionAt(Date dispositionAt) {
UNCOV
210
      this.dispositionAt = dispositionAt;
×
UNCOV
211
      return this;
×
212
    }
213

214
    public Builder permissions(UpdateFileByIdRequestBodyPermissionsField permissions) {
UNCOV
215
      this.permissions = permissions;
×
UNCOV
216
      return this;
×
217
    }
218

219
    public Builder collections(List<UpdateFileByIdRequestBodyCollectionsField> collections) {
UNCOV
220
      this.collections = collections;
×
UNCOV
221
      this.markNullableFieldAsSet("collections");
×
UNCOV
222
      return this;
×
223
    }
224

225
    public Builder tags(List<String> tags) {
UNCOV
226
      this.tags = tags;
×
UNCOV
227
      return this;
×
228
    }
229

230
    public UpdateFileByIdRequestBody build() {
231
      return new UpdateFileByIdRequestBody(this);
1✔
232
    }
233
  }
234
}
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