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

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 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/folders/GetFolderByIdHeaders.java
1
package com.box.sdkgen.managers.folders;
2

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

5
import java.util.Map;
6

7
public class GetFolderByIdHeaders {
8

9
  /**
10
   * Ensures an item is only returned if it has changed.
11
   *
12
   * <p>Pass in the item's last observed `etag` value into this header and the endpoint will fail
13
   * with a `304 Not Modified` if the item has not changed since.
14
   */
15
  public String ifNoneMatch;
16

17
  /**
18
   * The URL, and optional password, for the shared link of this item.
19
   *
20
   * <p>This header can be used to access items that have not been explicitly shared with a user.
21
   *
22
   * <p>Use the format `shared_link=[link]` or if a password is required then use
23
   * `shared_link=[link]&amp;shared_link_password=[password]`.
24
   *
25
   * <p>This header can be used on the file or folder shared, as well as on any files or folders
26
   * nested within the item.
27
   */
28
  public String boxapi;
29

30
  /** Extra headers that will be included in the HTTP request. */
31
  public Map<String, String> extraHeaders;
32

33
  public GetFolderByIdHeaders() {
1✔
34
    this.extraHeaders = mapOf();
1✔
35
  }
1✔
36

37
  protected GetFolderByIdHeaders(Builder builder) {
×
38
    this.ifNoneMatch = builder.ifNoneMatch;
×
39
    this.boxapi = builder.boxapi;
×
40
    this.extraHeaders = builder.extraHeaders;
×
41
  }
×
42

43
  public String getIfNoneMatch() {
44
    return ifNoneMatch;
1✔
45
  }
46

47
  public String getBoxapi() {
48
    return boxapi;
1✔
49
  }
50

51
  public Map<String, String> getExtraHeaders() {
52
    return extraHeaders;
1✔
53
  }
54

55
  public static class Builder {
56

57
    protected String ifNoneMatch;
58

59
    protected String boxapi;
60

61
    protected Map<String, String> extraHeaders;
62

63
    public Builder() {
×
64
      this.extraHeaders = mapOf();
×
65
    }
×
66

67
    public Builder ifNoneMatch(String ifNoneMatch) {
68
      this.ifNoneMatch = ifNoneMatch;
×
69
      return this;
×
70
    }
71

72
    public Builder boxapi(String boxapi) {
73
      this.boxapi = boxapi;
×
74
      return this;
×
75
    }
76

77
    public Builder extraHeaders(Map<String, String> extraHeaders) {
78
      this.extraHeaders = extraHeaders;
×
79
      return this;
×
80
    }
81

82
    public GetFolderByIdHeaders build() {
83
      return new GetFolderByIdHeaders(this);
×
84
    }
85
  }
86
}
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