• 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

58.62
/src/main/java/com/box/sdkgen/managers/folders/GetFolderByIdQueryParams.java
1
package com.box.sdkgen.managers.folders;
2

3
import com.box.sdkgen.serialization.json.EnumWrapper;
4
import java.util.List;
5

6
public class GetFolderByIdQueryParams {
7

8
  /**
9
   * A comma-separated list of attributes to include in the response. This can be used to request
10
   * fields that are not normally returned in a standard response.
11
   *
12
   * <p>Be aware that specifying this parameter will have the effect that none of the standard
13
   * fields are returned in the response unless explicitly specified, instead only fields for the
14
   * mini representation are returned, additional to the fields requested.
15
   *
16
   * <p>Additionally this field can be used to query any metadata applied to the file by specifying
17
   * the `metadata` field as well as the scope and key of the template to retrieve, for example
18
   * `?fields=metadata.enterprise_12345.contractTemplate`.
19
   */
20
  public List<String> fields;
21

22
  /**
23
   * Defines the **second** attribute by which items are sorted.
24
   *
25
   * <p>The folder type affects the way the items are sorted:
26
   *
27
   * <p>* **Standard folder**: Items are always sorted by their `type` first, with folders listed
28
   * before files, and files listed before web links.
29
   *
30
   * <p>* **Root folder**: This parameter is not supported for marker-based pagination on the root
31
   * folder
32
   *
33
   * <p>(the folder with an `id` of `0`).
34
   *
35
   * <p>* **Shared folder with parent path to the associated folder visible to the collaborator**:
36
   * Items are always sorted by their `type` first, with folders listed before files, and files
37
   * listed before web links.
38
   */
39
  public EnumWrapper<GetFolderByIdQueryParamsSortField> sort;
40

41
  /**
42
   * The direction to sort results in. This can be either in alphabetical ascending (`ASC`) or
43
   * descending (`DESC`) order.
44
   */
45
  public EnumWrapper<GetFolderByIdQueryParamsDirectionField> direction;
46

47
  /**
48
   * The offset of the item at which to begin the response.
49
   *
50
   * <p>Queries with offset parameter value exceeding 10000 will be rejected with a 400 response.
51
   */
52
  public Long offset;
53

54
  /** The maximum number of items to return per page. */
55
  public Long limit;
56

57
  public GetFolderByIdQueryParams() {}
1✔
58

59
  protected GetFolderByIdQueryParams(Builder builder) {
1✔
60
    this.fields = builder.fields;
1✔
61
    this.sort = builder.sort;
1✔
62
    this.direction = builder.direction;
1✔
63
    this.offset = builder.offset;
1✔
64
    this.limit = builder.limit;
1✔
65
  }
1✔
66

67
  public List<String> getFields() {
68
    return fields;
1✔
69
  }
70

71
  public EnumWrapper<GetFolderByIdQueryParamsSortField> getSort() {
72
    return sort;
1✔
73
  }
74

75
  public EnumWrapper<GetFolderByIdQueryParamsDirectionField> getDirection() {
76
    return direction;
1✔
77
  }
78

79
  public Long getOffset() {
80
    return offset;
1✔
81
  }
82

83
  public Long getLimit() {
84
    return limit;
1✔
85
  }
86

87
  public static class Builder {
1✔
88

89
    protected List<String> fields;
90

91
    protected EnumWrapper<GetFolderByIdQueryParamsSortField> sort;
92

93
    protected EnumWrapper<GetFolderByIdQueryParamsDirectionField> direction;
94

95
    protected Long offset;
96

97
    protected Long limit;
98

99
    public Builder fields(List<String> fields) {
100
      this.fields = fields;
1✔
101
      return this;
1✔
102
    }
103

104
    public Builder sort(GetFolderByIdQueryParamsSortField sort) {
105
      this.sort = new EnumWrapper<GetFolderByIdQueryParamsSortField>(sort);
×
106
      return this;
×
107
    }
108

109
    public Builder sort(EnumWrapper<GetFolderByIdQueryParamsSortField> sort) {
110
      this.sort = sort;
×
111
      return this;
×
112
    }
113

114
    public Builder direction(GetFolderByIdQueryParamsDirectionField direction) {
115
      this.direction = new EnumWrapper<GetFolderByIdQueryParamsDirectionField>(direction);
×
116
      return this;
×
117
    }
118

119
    public Builder direction(EnumWrapper<GetFolderByIdQueryParamsDirectionField> direction) {
120
      this.direction = direction;
×
121
      return this;
×
122
    }
123

124
    public Builder offset(Long offset) {
125
      this.offset = offset;
×
126
      return this;
×
127
    }
128

129
    public Builder limit(Long limit) {
130
      this.limit = limit;
×
131
      return this;
×
132
    }
133

134
    public GetFolderByIdQueryParams build() {
135
      return new GetFolderByIdQueryParams(this);
1✔
136
    }
137
  }
138
}
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