• 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

21.62
/src/main/java/com/box/sdkgen/managers/folders/GetFolderItemsQueryParams.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 GetFolderItemsQueryParams {
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
   * Specifies whether to use marker-based pagination instead of offset-based pagination. Only one
24
   * pagination method can be used at a time.
25
   *
26
   * <p>By setting this value to true, the API will return a `marker` field that can be passed as a
27
   * parameter to this endpoint to get the next page of the response.
28
   */
29
  public Boolean usemarker;
30

31
  /**
32
   * Defines the position marker at which to begin returning results. This is used when paginating
33
   * using marker-based pagination.
34
   *
35
   * <p>This requires `usemarker` to be set to `true`.
36
   */
37
  public String marker;
38

39
  /**
40
   * The offset of the item at which to begin the response.
41
   *
42
   * <p>Queries with offset parameter value exceeding 10000 will be rejected with a 400 response.
43
   */
44
  public Long offset;
45

46
  /** The maximum number of items to return per page. */
47
  public Long limit;
48

49
  /**
50
   * Defines the **second** attribute by which items are sorted.
51
   *
52
   * <p>The folder type affects the way the items are sorted:
53
   *
54
   * <p>* **Standard folder**: Items are always sorted by their `type` first, with folders listed
55
   * before files, and files listed before web links.
56
   *
57
   * <p>* **Root folder**: This parameter is not supported for marker-based pagination on the root
58
   * folder
59
   *
60
   * <p>(the folder with an `id` of `0`).
61
   *
62
   * <p>* **Shared folder with parent path to the associated folder visible to the collaborator**:
63
   * Items are always sorted by their `type` first, with folders listed before files, and files
64
   * listed before web links.
65
   */
66
  public EnumWrapper<GetFolderItemsQueryParamsSortField> sort;
67

68
  /**
69
   * The direction to sort results in. This can be either in alphabetical ascending (`ASC`) or
70
   * descending (`DESC`) order.
71
   */
72
  public EnumWrapper<GetFolderItemsQueryParamsDirectionField> direction;
73

74
  public GetFolderItemsQueryParams() {}
1✔
75

76
  protected GetFolderItemsQueryParams(Builder builder) {
×
77
    this.fields = builder.fields;
×
78
    this.usemarker = builder.usemarker;
×
79
    this.marker = builder.marker;
×
80
    this.offset = builder.offset;
×
81
    this.limit = builder.limit;
×
82
    this.sort = builder.sort;
×
83
    this.direction = builder.direction;
×
84
  }
×
85

86
  public List<String> getFields() {
87
    return fields;
1✔
88
  }
89

90
  public Boolean getUsemarker() {
91
    return usemarker;
1✔
92
  }
93

94
  public String getMarker() {
95
    return marker;
1✔
96
  }
97

98
  public Long getOffset() {
99
    return offset;
1✔
100
  }
101

102
  public Long getLimit() {
103
    return limit;
1✔
104
  }
105

106
  public EnumWrapper<GetFolderItemsQueryParamsSortField> getSort() {
107
    return sort;
1✔
108
  }
109

110
  public EnumWrapper<GetFolderItemsQueryParamsDirectionField> getDirection() {
111
    return direction;
1✔
112
  }
113

114
  public static class Builder {
×
115

116
    protected List<String> fields;
117

118
    protected Boolean usemarker;
119

120
    protected String marker;
121

122
    protected Long offset;
123

124
    protected Long limit;
125

126
    protected EnumWrapper<GetFolderItemsQueryParamsSortField> sort;
127

128
    protected EnumWrapper<GetFolderItemsQueryParamsDirectionField> direction;
129

130
    public Builder fields(List<String> fields) {
131
      this.fields = fields;
×
132
      return this;
×
133
    }
134

135
    public Builder usemarker(Boolean usemarker) {
136
      this.usemarker = usemarker;
×
137
      return this;
×
138
    }
139

140
    public Builder marker(String marker) {
141
      this.marker = marker;
×
142
      return this;
×
143
    }
144

145
    public Builder offset(Long offset) {
146
      this.offset = offset;
×
147
      return this;
×
148
    }
149

150
    public Builder limit(Long limit) {
151
      this.limit = limit;
×
152
      return this;
×
153
    }
154

155
    public Builder sort(GetFolderItemsQueryParamsSortField sort) {
156
      this.sort = new EnumWrapper<GetFolderItemsQueryParamsSortField>(sort);
×
157
      return this;
×
158
    }
159

160
    public Builder sort(EnumWrapper<GetFolderItemsQueryParamsSortField> sort) {
161
      this.sort = sort;
×
162
      return this;
×
163
    }
164

165
    public Builder direction(GetFolderItemsQueryParamsDirectionField direction) {
166
      this.direction = new EnumWrapper<GetFolderItemsQueryParamsDirectionField>(direction);
×
167
      return this;
×
168
    }
169

170
    public Builder direction(EnumWrapper<GetFolderItemsQueryParamsDirectionField> direction) {
171
      this.direction = direction;
×
172
      return this;
×
173
    }
174

175
    public GetFolderItemsQueryParams build() {
176
      return new GetFolderItemsQueryParams(this);
×
177
    }
178
  }
179
}
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