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

box / box-java-sdk-gen / #182

03 Jun 2025 09:42AM UTC coverage: 34.762% (-0.9%) from 35.631%
#182

Pull #326

github

web-flow
Merge b909d9ac7 into 28f2ec7f8
Pull Request #326: chore: Release Java SDK to Maven Central (box/box-codegen#735)

15770 of 45365 relevant lines covered (34.76%)

0.35 hits per line

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

28.57
/src/main/java/com/box/sdkgen/managers/uploads/UploadFileVersionHeaders.java
1
package com.box.sdkgen.managers.uploads;
2

3
import static com.box.sdkgen.internal.utils.UtilsManager.mapOf;
4

5
import java.util.Map;
6

7
public class UploadFileVersionHeaders {
8

9
  public String ifMatch;
10

11
  public String contentMd5;
12

13
  public Map<String, String> extraHeaders;
14

15
  public UploadFileVersionHeaders() {
1✔
16
    this.extraHeaders = mapOf();
1✔
17
  }
1✔
18

19
  protected UploadFileVersionHeaders(UploadFileVersionHeadersBuilder builder) {
×
20
    this.ifMatch = builder.ifMatch;
×
21
    this.contentMd5 = builder.contentMd5;
×
22
    this.extraHeaders = builder.extraHeaders;
×
23
  }
×
24

25
  public String getIfMatch() {
26
    return ifMatch;
1✔
27
  }
28

29
  public String getContentMd5() {
30
    return contentMd5;
1✔
31
  }
32

33
  public Map<String, String> getExtraHeaders() {
34
    return extraHeaders;
1✔
35
  }
36

37
  public static class UploadFileVersionHeadersBuilder {
38

39
    protected String ifMatch;
40

41
    protected String contentMd5;
42

43
    protected Map<String, String> extraHeaders;
44

45
    public UploadFileVersionHeadersBuilder() {
×
46
      this.extraHeaders = mapOf();
×
47
    }
×
48

49
    public UploadFileVersionHeadersBuilder ifMatch(String ifMatch) {
50
      this.ifMatch = ifMatch;
×
51
      return this;
×
52
    }
53

54
    public UploadFileVersionHeadersBuilder contentMd5(String contentMd5) {
55
      this.contentMd5 = contentMd5;
×
56
      return this;
×
57
    }
58

59
    public UploadFileVersionHeadersBuilder extraHeaders(Map<String, String> extraHeaders) {
60
      this.extraHeaders = extraHeaders;
×
61
      return this;
×
62
    }
63

64
    public UploadFileVersionHeaders build() {
65
      return new UploadFileVersionHeaders(this);
×
66
    }
67
  }
68
}
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