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

box / box-java-sdk / #4850

16 Sep 2025 01:01PM UTC coverage: 37.129% (-0.1%) from 37.227%
#4850

push

github

web-flow
feat: Add `withProxy` method to `BoxClient` (box/box-codegen#831) (#1425)

0 of 3 new or added lines in 1 file covered. (0.0%)

169 existing lines in 12 files now uncovered.

18456 of 49708 relevant lines covered (37.13%)

0.37 hits per line

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

12.24
/src/main/java/com/box/sdkgen/schemas/filerequest/FileRequest.java
1
package com.box.sdkgen.schemas.filerequest;
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.box.sdkgen.schemas.foldermini.FolderMini;
8
import com.box.sdkgen.schemas.usermini.UserMini;
9
import com.box.sdkgen.serialization.json.EnumWrapper;
10
import com.fasterxml.jackson.annotation.JsonFilter;
11
import com.fasterxml.jackson.annotation.JsonProperty;
12
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
13
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
14
import java.time.OffsetDateTime;
15
import java.util.Objects;
16

17
@JsonFilter("nullablePropertyFilter")
18
public class FileRequest extends SerializableObject {
19

20
  protected final String id;
21

22
  @JsonDeserialize(using = FileRequestTypeField.FileRequestTypeFieldDeserializer.class)
23
  @JsonSerialize(using = FileRequestTypeField.FileRequestTypeFieldSerializer.class)
24
  protected EnumWrapper<FileRequestTypeField> type;
25

26
  protected String title;
27

28
  @Nullable protected String description;
29

30
  @JsonDeserialize(using = FileRequestStatusField.FileRequestStatusFieldDeserializer.class)
31
  @JsonSerialize(using = FileRequestStatusField.FileRequestStatusFieldSerializer.class)
32
  protected EnumWrapper<FileRequestStatusField> status;
33

34
  @JsonProperty("is_email_required")
35
  protected Boolean isEmailRequired;
36

37
  @JsonProperty("is_description_required")
38
  protected Boolean isDescriptionRequired;
39

40
  @JsonProperty("expires_at")
41
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
42
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
43
  protected OffsetDateTime expiresAt;
44

45
  protected final FolderMini folder;
46

47
  protected String url;
48

49
  @Nullable protected String etag;
50

51
  @JsonProperty("created_by")
52
  protected UserMini createdBy;
53

54
  @JsonProperty("created_at")
55
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
56
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
57
  protected final OffsetDateTime createdAt;
58

59
  @JsonProperty("updated_by")
60
  protected UserMini updatedBy;
61

62
  @JsonProperty("updated_at")
63
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
64
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
65
  protected final OffsetDateTime updatedAt;
66

67
  public FileRequest(
68
      @JsonProperty("id") String id,
69
      @JsonProperty("folder") FolderMini folder,
70
      @JsonProperty("created_at") OffsetDateTime createdAt,
71
      @JsonProperty("updated_at") OffsetDateTime updatedAt) {
72
    super();
1✔
73
    this.id = id;
1✔
74
    this.folder = folder;
1✔
75
    this.createdAt = createdAt;
1✔
76
    this.updatedAt = updatedAt;
1✔
77
    this.type = new EnumWrapper<FileRequestTypeField>(FileRequestTypeField.FILE_REQUEST);
1✔
78
  }
1✔
79

80
  protected FileRequest(Builder builder) {
81
    super();
×
82
    this.id = builder.id;
×
83
    this.type = builder.type;
×
84
    this.title = builder.title;
×
85
    this.description = builder.description;
×
86
    this.status = builder.status;
×
87
    this.isEmailRequired = builder.isEmailRequired;
×
88
    this.isDescriptionRequired = builder.isDescriptionRequired;
×
89
    this.expiresAt = builder.expiresAt;
×
90
    this.folder = builder.folder;
×
91
    this.url = builder.url;
×
92
    this.etag = builder.etag;
×
93
    this.createdBy = builder.createdBy;
×
94
    this.createdAt = builder.createdAt;
×
95
    this.updatedBy = builder.updatedBy;
×
96
    this.updatedAt = builder.updatedAt;
×
97
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
98
  }
×
99

100
  public String getId() {
101
    return id;
1✔
102
  }
103

104
  public EnumWrapper<FileRequestTypeField> getType() {
105
    return type;
1✔
106
  }
107

108
  public String getTitle() {
109
    return title;
1✔
110
  }
111

112
  public String getDescription() {
113
    return description;
1✔
114
  }
115

116
  public EnumWrapper<FileRequestStatusField> getStatus() {
117
    return status;
×
118
  }
119

120
  public Boolean getIsEmailRequired() {
121
    return isEmailRequired;
×
122
  }
123

124
  public Boolean getIsDescriptionRequired() {
125
    return isDescriptionRequired;
×
126
  }
127

128
  public OffsetDateTime getExpiresAt() {
129
    return expiresAt;
×
130
  }
131

132
  public FolderMini getFolder() {
133
    return folder;
1✔
134
  }
135

136
  public String getUrl() {
137
    return url;
×
138
  }
139

140
  public String getEtag() {
141
    return etag;
×
142
  }
143

144
  public UserMini getCreatedBy() {
145
    return createdBy;
×
146
  }
147

148
  public OffsetDateTime getCreatedAt() {
149
    return createdAt;
×
150
  }
151

152
  public UserMini getUpdatedBy() {
153
    return updatedBy;
×
154
  }
155

156
  public OffsetDateTime getUpdatedAt() {
157
    return updatedAt;
×
158
  }
159

160
  @Override
161
  public boolean equals(Object o) {
162
    if (this == o) {
×
163
      return true;
×
164
    }
165
    if (o == null || getClass() != o.getClass()) {
×
166
      return false;
×
167
    }
168
    FileRequest casted = (FileRequest) o;
×
169
    return Objects.equals(id, casted.id)
×
170
        && Objects.equals(type, casted.type)
×
171
        && Objects.equals(title, casted.title)
×
172
        && Objects.equals(description, casted.description)
×
173
        && Objects.equals(status, casted.status)
×
174
        && Objects.equals(isEmailRequired, casted.isEmailRequired)
×
175
        && Objects.equals(isDescriptionRequired, casted.isDescriptionRequired)
×
176
        && Objects.equals(expiresAt, casted.expiresAt)
×
177
        && Objects.equals(folder, casted.folder)
×
178
        && Objects.equals(url, casted.url)
×
179
        && Objects.equals(etag, casted.etag)
×
180
        && Objects.equals(createdBy, casted.createdBy)
×
181
        && Objects.equals(createdAt, casted.createdAt)
×
182
        && Objects.equals(updatedBy, casted.updatedBy)
×
183
        && Objects.equals(updatedAt, casted.updatedAt);
×
184
  }
185

186
  @Override
187
  public int hashCode() {
188
    return Objects.hash(
×
189
        id,
190
        type,
191
        title,
192
        description,
193
        status,
194
        isEmailRequired,
195
        isDescriptionRequired,
196
        expiresAt,
197
        folder,
198
        url,
199
        etag,
200
        createdBy,
201
        createdAt,
202
        updatedBy,
203
        updatedAt);
204
  }
205

206
  @Override
207
  public String toString() {
208
    return "FileRequest{"
×
209
        + "id='"
210
        + id
211
        + '\''
212
        + ", "
213
        + "type='"
214
        + type
215
        + '\''
216
        + ", "
217
        + "title='"
218
        + title
219
        + '\''
220
        + ", "
221
        + "description='"
222
        + description
223
        + '\''
224
        + ", "
225
        + "status='"
226
        + status
227
        + '\''
228
        + ", "
229
        + "isEmailRequired='"
230
        + isEmailRequired
231
        + '\''
232
        + ", "
233
        + "isDescriptionRequired='"
234
        + isDescriptionRequired
235
        + '\''
236
        + ", "
237
        + "expiresAt='"
238
        + expiresAt
239
        + '\''
240
        + ", "
241
        + "folder='"
242
        + folder
243
        + '\''
244
        + ", "
245
        + "url='"
246
        + url
247
        + '\''
248
        + ", "
249
        + "etag='"
250
        + etag
251
        + '\''
252
        + ", "
253
        + "createdBy='"
254
        + createdBy
255
        + '\''
256
        + ", "
257
        + "createdAt='"
258
        + createdAt
259
        + '\''
260
        + ", "
261
        + "updatedBy='"
262
        + updatedBy
263
        + '\''
264
        + ", "
265
        + "updatedAt='"
266
        + updatedAt
267
        + '\''
268
        + "}";
269
  }
270

271
  public static class Builder extends NullableFieldTracker {
272

273
    protected final String id;
274

275
    protected EnumWrapper<FileRequestTypeField> type;
276

277
    protected String title;
278

279
    protected String description;
280

281
    protected EnumWrapper<FileRequestStatusField> status;
282

283
    protected Boolean isEmailRequired;
284

285
    protected Boolean isDescriptionRequired;
286

287
    protected OffsetDateTime expiresAt;
288

289
    protected final FolderMini folder;
290

291
    protected String url;
292

293
    protected String etag;
294

295
    protected UserMini createdBy;
296

297
    protected final OffsetDateTime createdAt;
298

299
    protected UserMini updatedBy;
300

301
    protected final OffsetDateTime updatedAt;
302

303
    public Builder(
304
        String id, FolderMini folder, OffsetDateTime createdAt, OffsetDateTime updatedAt) {
305
      super();
×
306
      this.id = id;
×
307
      this.folder = folder;
×
308
      this.createdAt = createdAt;
×
309
      this.updatedAt = updatedAt;
×
310
      this.type = new EnumWrapper<FileRequestTypeField>(FileRequestTypeField.FILE_REQUEST);
×
UNCOV
311
    }
×
312

313
    public Builder type(FileRequestTypeField type) {
314
      this.type = new EnumWrapper<FileRequestTypeField>(type);
×
UNCOV
315
      return this;
×
316
    }
317

318
    public Builder type(EnumWrapper<FileRequestTypeField> type) {
319
      this.type = type;
×
UNCOV
320
      return this;
×
321
    }
322

323
    public Builder title(String title) {
324
      this.title = title;
×
UNCOV
325
      return this;
×
326
    }
327

328
    public Builder description(String description) {
329
      this.description = description;
×
330
      this.markNullableFieldAsSet("description");
×
UNCOV
331
      return this;
×
332
    }
333

334
    public Builder status(FileRequestStatusField status) {
335
      this.status = new EnumWrapper<FileRequestStatusField>(status);
×
UNCOV
336
      return this;
×
337
    }
338

339
    public Builder status(EnumWrapper<FileRequestStatusField> status) {
340
      this.status = status;
×
UNCOV
341
      return this;
×
342
    }
343

344
    public Builder isEmailRequired(Boolean isEmailRequired) {
345
      this.isEmailRequired = isEmailRequired;
×
UNCOV
346
      return this;
×
347
    }
348

349
    public Builder isDescriptionRequired(Boolean isDescriptionRequired) {
350
      this.isDescriptionRequired = isDescriptionRequired;
×
UNCOV
351
      return this;
×
352
    }
353

354
    public Builder expiresAt(OffsetDateTime expiresAt) {
355
      this.expiresAt = expiresAt;
×
UNCOV
356
      return this;
×
357
    }
358

359
    public Builder url(String url) {
360
      this.url = url;
×
UNCOV
361
      return this;
×
362
    }
363

364
    public Builder etag(String etag) {
365
      this.etag = etag;
×
366
      this.markNullableFieldAsSet("etag");
×
UNCOV
367
      return this;
×
368
    }
369

370
    public Builder createdBy(UserMini createdBy) {
371
      this.createdBy = createdBy;
×
UNCOV
372
      return this;
×
373
    }
374

375
    public Builder updatedBy(UserMini updatedBy) {
376
      this.updatedBy = updatedBy;
×
UNCOV
377
      return this;
×
378
    }
379

380
    public FileRequest build() {
UNCOV
381
      return new FileRequest(this);
×
382
    }
383
  }
384
}
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