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

box / box-java-sdk-gen / #155

30 May 2025 01:03PM UTC coverage: 35.646% (+0.3%) from 35.311%
#155

push

github

web-flow
fix: Fix downscope token to use `retrieveToken` method for token retrieval (box/box-codegen#731) (#320)

4 of 4 new or added lines in 4 files covered. (100.0%)

2952 existing lines in 99 files now uncovered.

15628 of 43842 relevant lines covered (35.65%)

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() {
UNCOV
37
    super();
×
UNCOV
38
  }
×
39

40
  protected UpdateFileByIdRequestBody(UpdateFileByIdRequestBodyBuilder 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)
×
UNCOV
101
        && Objects.equals(sharedLink, casted.sharedLink)
×
UNCOV
102
        && Objects.equals(lock, casted.lock)
×
UNCOV
103
        && Objects.equals(dispositionAt, casted.dispositionAt)
×
UNCOV
104
        && Objects.equals(permissions, casted.permissions)
×
105
        && Objects.equals(collections, casted.collections)
×
UNCOV
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() {
UNCOV
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 UpdateFileByIdRequestBodyBuilder {
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 UpdateFileByIdRequestBodyBuilder name(String name) {
177
      this.name = name;
1✔
178
      return this;
1✔
179
    }
180

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

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

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

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

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

207
    public UpdateFileByIdRequestBodyBuilder permissions(
208
        UpdateFileByIdRequestBodyPermissionsField permissions) {
209
      this.permissions = permissions;
×
210
      return this;
×
211
    }
212

213
    public UpdateFileByIdRequestBodyBuilder collections(
214
        List<UpdateFileByIdRequestBodyCollectionsField> collections) {
215
      this.collections = collections;
×
UNCOV
216
      return this;
×
217
    }
218

219
    public UpdateFileByIdRequestBodyBuilder tags(List<String> tags) {
UNCOV
220
      this.tags = tags;
×
UNCOV
221
      return this;
×
222
    }
223

224
    public UpdateFileByIdRequestBody build() {
225
      return new UpdateFileByIdRequestBody(this);
1✔
226
    }
227
  }
228
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc