• 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

48.28
/src/main/java/com/box/sdkgen/managers/files/UpdateFileByIdRequestBody.java
1
package com.box.sdkgen.managers.files;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.internal.utils.DateTimeUtils;
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.Date;
9
import java.util.List;
10
import java.util.Objects;
11

12
public class UpdateFileByIdRequestBody extends SerializableObject {
13

14
  protected String name;
15

16
  protected String description;
17

18
  protected UpdateFileByIdRequestBodyParentField parent;
19

20
  @JsonProperty("shared_link")
21
  protected UpdateFileByIdRequestBodySharedLinkField sharedLink;
22

23
  protected UpdateFileByIdRequestBodyLockField lock;
24

25
  @JsonProperty("disposition_at")
26
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
27
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
28
  protected Date dispositionAt;
29

30
  protected UpdateFileByIdRequestBodyPermissionsField permissions;
31

32
  protected List<UpdateFileByIdRequestBodyCollectionsField> collections;
33

34
  protected List<String> tags;
35

36
  public UpdateFileByIdRequestBody() {
37
    super();
×
38
  }
×
39

40
  protected UpdateFileByIdRequestBody(Builder builder) {
41
    super();
1✔
42
    this.name = builder.name;
1✔
43
    this.description = builder.description;
1✔
44
    this.parent = builder.parent;
1✔
45
    this.sharedLink = builder.sharedLink;
1✔
46
    this.lock = builder.lock;
1✔
47
    this.dispositionAt = builder.dispositionAt;
1✔
48
    this.permissions = builder.permissions;
1✔
49
    this.collections = builder.collections;
1✔
50
    this.tags = builder.tags;
1✔
51
  }
1✔
52

53
  public String getName() {
54
    return name;
1✔
55
  }
56

57
  public String getDescription() {
58
    return description;
1✔
59
  }
60

61
  public UpdateFileByIdRequestBodyParentField getParent() {
62
    return parent;
1✔
63
  }
64

65
  public UpdateFileByIdRequestBodySharedLinkField getSharedLink() {
66
    return sharedLink;
1✔
67
  }
68

69
  public UpdateFileByIdRequestBodyLockField getLock() {
70
    return lock;
1✔
71
  }
72

73
  public Date getDispositionAt() {
74
    return dispositionAt;
1✔
75
  }
76

77
  public UpdateFileByIdRequestBodyPermissionsField getPermissions() {
78
    return permissions;
1✔
79
  }
80

81
  public List<UpdateFileByIdRequestBodyCollectionsField> getCollections() {
82
    return collections;
1✔
83
  }
84

85
  public List<String> getTags() {
86
    return tags;
1✔
87
  }
88

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

109
  @Override
110
  public int hashCode() {
111
    return Objects.hash(
×
112
        name, description, parent, sharedLink, lock, dispositionAt, permissions, collections, tags);
113
  }
114

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

156
  public static class Builder {
1✔
157

158
    protected String name;
159

160
    protected String description;
161

162
    protected UpdateFileByIdRequestBodyParentField parent;
163

164
    protected UpdateFileByIdRequestBodySharedLinkField sharedLink;
165

166
    protected UpdateFileByIdRequestBodyLockField lock;
167

168
    protected Date dispositionAt;
169

170
    protected UpdateFileByIdRequestBodyPermissionsField permissions;
171

172
    protected List<UpdateFileByIdRequestBodyCollectionsField> collections;
173

174
    protected List<String> tags;
175

176
    public Builder name(String name) {
177
      this.name = name;
1✔
178
      return this;
1✔
179
    }
180

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

186
    public Builder parent(UpdateFileByIdRequestBodyParentField parent) {
187
      this.parent = parent;
×
188
      return this;
×
189
    }
190

191
    public Builder sharedLink(UpdateFileByIdRequestBodySharedLinkField sharedLink) {
UNCOV
192
      this.sharedLink = sharedLink;
×
193
      return this;
×
194
    }
195

196
    public Builder lock(UpdateFileByIdRequestBodyLockField lock) {
197
      this.lock = lock;
1✔
198
      return this;
1✔
199
    }
200

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

206
    public Builder permissions(UpdateFileByIdRequestBodyPermissionsField permissions) {
UNCOV
207
      this.permissions = permissions;
×
208
      return this;
×
209
    }
210

211
    public Builder collections(List<UpdateFileByIdRequestBodyCollectionsField> collections) {
UNCOV
212
      this.collections = collections;
×
213
      return this;
×
214
    }
215

216
    public Builder tags(List<String> tags) {
217
      this.tags = tags;
×
218
      return this;
×
219
    }
220

221
    public UpdateFileByIdRequestBody build() {
222
      return new UpdateFileByIdRequestBody(this);
1✔
223
    }
224
  }
225
}
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