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

box / box-java-sdk-gen / #10

14 Mar 2025 01:22PM UTC coverage: 35.216%. First build
#10

Pull #249

github

web-flow
Merge c6d8adf2d into 965b357ff
Pull Request #249: feat: Support upload with preflight check (box/box-codegen#676)

69 of 141 new or added lines in 6 files covered. (48.94%)

15237 of 43267 relevant lines covered (35.22%)

0.35 hits per line

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

34.78
/src/main/java/com/box/sdkgen/managers/uploads/UploadWithPreflightCheckRequestBody.java
1
package com.box.sdkgen.managers.uploads;
2

3
import java.io.InputStream;
4

5
public class UploadWithPreflightCheckRequestBody {
6

7
  public final UploadWithPreflightCheckRequestBodyAttributesField attributes;
8

9
  public final InputStream file;
10

11
  public String fileFileName;
12

13
  public String fileContentType;
14

15
  public UploadWithPreflightCheckRequestBody(
16
      UploadWithPreflightCheckRequestBodyAttributesField attributes, InputStream file) {
1✔
17
    this.attributes = attributes;
1✔
18
    this.file = file;
1✔
19
  }
1✔
20

21
  protected UploadWithPreflightCheckRequestBody(
NEW
22
      UploadWithPreflightCheckRequestBodyBuilder builder) {
×
NEW
23
    this.attributes = builder.attributes;
×
NEW
24
    this.file = builder.file;
×
NEW
25
    this.fileFileName = builder.fileFileName;
×
NEW
26
    this.fileContentType = builder.fileContentType;
×
NEW
27
  }
×
28

29
  public UploadWithPreflightCheckRequestBodyAttributesField getAttributes() {
30
    return attributes;
1✔
31
  }
32

33
  public InputStream getFile() {
34
    return file;
1✔
35
  }
36

37
  public String getFileFileName() {
38
    return fileFileName;
1✔
39
  }
40

41
  public String getFileContentType() {
42
    return fileContentType;
1✔
43
  }
44

45
  public static class UploadWithPreflightCheckRequestBodyBuilder {
46

47
    protected final UploadWithPreflightCheckRequestBodyAttributesField attributes;
48

49
    protected final InputStream file;
50

51
    protected String fileFileName;
52

53
    protected String fileContentType;
54

55
    public UploadWithPreflightCheckRequestBodyBuilder(
NEW
56
        UploadWithPreflightCheckRequestBodyAttributesField attributes, InputStream file) {
×
NEW
57
      this.attributes = attributes;
×
NEW
58
      this.file = file;
×
NEW
59
    }
×
60

61
    public UploadWithPreflightCheckRequestBodyBuilder fileFileName(String fileFileName) {
NEW
62
      this.fileFileName = fileFileName;
×
NEW
63
      return this;
×
64
    }
65

66
    public UploadWithPreflightCheckRequestBodyBuilder fileContentType(String fileContentType) {
NEW
67
      this.fileContentType = fileContentType;
×
NEW
68
      return this;
×
69
    }
70

71
    public UploadWithPreflightCheckRequestBody build() {
NEW
72
      return new UploadWithPreflightCheckRequestBody(this);
×
73
    }
74
  }
75
}
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