• 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/trasheditems/GetTrashedItemsQueryParams.java
1
package com.box.sdkgen.managers.trasheditems;
2

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

6
public class GetTrashedItemsQueryParams {
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
  public List<String> fields;
17

18
  /** The maximum number of items to return per page. */
19
  public Long limit;
20

21
  /**
22
   * The offset of the item at which to begin the response.
23
   *
24
   * <p>Queries with offset parameter value exceeding 10000 will be rejected with a 400 response.
25
   */
26
  public Long offset;
27

28
  /**
29
   * Specifies whether to use marker-based pagination instead of offset-based pagination. Only one
30
   * pagination method can be used at a time.
31
   *
32
   * <p>By setting this value to true, the API will return a `marker` field that can be passed as a
33
   * parameter to this endpoint to get the next page of the response.
34
   */
35
  public Boolean usemarker;
36

37
  /**
38
   * Defines the position marker at which to begin returning results. This is used when paginating
39
   * using marker-based pagination.
40
   *
41
   * <p>This requires `usemarker` to be set to `true`.
42
   */
43
  public String marker;
44

45
  /**
46
   * The direction to sort results in. This can be either in alphabetical ascending (`ASC`) or
47
   * descending (`DESC`) order.
48
   */
49
  public EnumWrapper<GetTrashedItemsQueryParamsDirectionField> direction;
50

51
  /**
52
   * Defines the **second** attribute by which items are sorted.
53
   *
54
   * <p>Items are always sorted by their `type` first, with folders listed before files, and files
55
   * listed before web links.
56
   *
57
   * <p>This parameter is not supported when using marker-based pagination.
58
   */
59
  public EnumWrapper<GetTrashedItemsQueryParamsSortField> sort;
60

61
  public GetTrashedItemsQueryParams() {}
1✔
62

63
  protected GetTrashedItemsQueryParams(Builder builder) {
×
64
    this.fields = builder.fields;
×
65
    this.limit = builder.limit;
×
66
    this.offset = builder.offset;
×
67
    this.usemarker = builder.usemarker;
×
68
    this.marker = builder.marker;
×
69
    this.direction = builder.direction;
×
70
    this.sort = builder.sort;
×
71
  }
×
72

73
  public List<String> getFields() {
74
    return fields;
1✔
75
  }
76

77
  public Long getLimit() {
78
    return limit;
1✔
79
  }
80

81
  public Long getOffset() {
82
    return offset;
1✔
83
  }
84

85
  public Boolean getUsemarker() {
86
    return usemarker;
1✔
87
  }
88

89
  public String getMarker() {
90
    return marker;
1✔
91
  }
92

93
  public EnumWrapper<GetTrashedItemsQueryParamsDirectionField> getDirection() {
94
    return direction;
1✔
95
  }
96

97
  public EnumWrapper<GetTrashedItemsQueryParamsSortField> getSort() {
98
    return sort;
1✔
99
  }
100

101
  public static class Builder {
×
102

103
    protected List<String> fields;
104

105
    protected Long limit;
106

107
    protected Long offset;
108

109
    protected Boolean usemarker;
110

111
    protected String marker;
112

113
    protected EnumWrapper<GetTrashedItemsQueryParamsDirectionField> direction;
114

115
    protected EnumWrapper<GetTrashedItemsQueryParamsSortField> sort;
116

117
    public Builder fields(List<String> fields) {
118
      this.fields = fields;
×
119
      return this;
×
120
    }
121

122
    public Builder limit(Long limit) {
123
      this.limit = limit;
×
124
      return this;
×
125
    }
126

127
    public Builder offset(Long offset) {
128
      this.offset = offset;
×
129
      return this;
×
130
    }
131

132
    public Builder usemarker(Boolean usemarker) {
133
      this.usemarker = usemarker;
×
134
      return this;
×
135
    }
136

137
    public Builder marker(String marker) {
138
      this.marker = marker;
×
139
      return this;
×
140
    }
141

142
    public Builder direction(GetTrashedItemsQueryParamsDirectionField direction) {
143
      this.direction = new EnumWrapper<GetTrashedItemsQueryParamsDirectionField>(direction);
×
144
      return this;
×
145
    }
146

147
    public Builder direction(EnumWrapper<GetTrashedItemsQueryParamsDirectionField> direction) {
148
      this.direction = direction;
×
149
      return this;
×
150
    }
151

152
    public Builder sort(GetTrashedItemsQueryParamsSortField sort) {
153
      this.sort = new EnumWrapper<GetTrashedItemsQueryParamsSortField>(sort);
×
154
      return this;
×
155
    }
156

157
    public Builder sort(EnumWrapper<GetTrashedItemsQueryParamsSortField> sort) {
158
      this.sort = sort;
×
159
      return this;
×
160
    }
161

162
    public GetTrashedItemsQueryParams build() {
163
      return new GetTrashedItemsQueryParams(this);
×
164
    }
165
  }
166
}
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