• 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

23.08
/src/main/java/com/box/sdkgen/managers/users/GetUsersQueryParams.java
1
package com.box.sdkgen.managers.users;
2

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

6
public class GetUsersQueryParams {
7

8
  /**
9
   * Limits the results to only users who's `name` or `login` start with the search term.
10
   *
11
   * <p>For externally managed users, the search term needs to completely match the in order to find
12
   * the user, and it will only return one user at a time.
13
   */
14
  public String filterTerm;
15

16
  /**
17
   * Limits the results to the kind of user specified.
18
   *
19
   * <p>* `all` returns every kind of user for whom the `login` or `name` partially matches the
20
   * `filter_term`. It will only return an external user if the login matches the `filter_term`
21
   * completely, and in that case it will only return that user. * `managed` returns all managed and
22
   * app users for whom the `login` or `name` partially matches the `filter_term`. * `external`
23
   * returns all external users for whom the `login` matches the `filter_term` exactly.
24
   */
25
  public EnumWrapper<GetUsersQueryParamsUserTypeField> userType;
26

27
  /**
28
   * Limits the results to app users with the given `external_app_user_id` value.
29
   *
30
   * <p>When creating an app user, an `external_app_user_id` value can be set. This value can then
31
   * be used in this endpoint to find any users that match that `external_app_user_id` value.
32
   */
33
  public String externalAppUserId;
34

35
  /**
36
   * A comma-separated list of attributes to include in the response. This can be used to request
37
   * fields that are not normally returned in a standard response.
38
   *
39
   * <p>Be aware that specifying this parameter will have the effect that none of the standard
40
   * fields are returned in the response unless explicitly specified, instead only fields for the
41
   * mini representation are returned, additional to the fields requested.
42
   */
43
  public List<String> fields;
44

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

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

55
  /**
56
   * Specifies whether to use marker-based pagination instead of offset-based pagination. Only one
57
   * pagination method can be used at a time.
58
   *
59
   * <p>By setting this value to true, the API will return a `marker` field that can be passed as a
60
   * parameter to this endpoint to get the next page of the response.
61
   */
62
  public Boolean usemarker;
63

64
  /**
65
   * Defines the position marker at which to begin returning results. This is used when paginating
66
   * using marker-based pagination.
67
   *
68
   * <p>This requires `usemarker` to be set to `true`.
69
   */
70
  public String marker;
71

72
  public GetUsersQueryParams() {}
1✔
73

74
  protected GetUsersQueryParams(Builder builder) {
×
75
    this.filterTerm = builder.filterTerm;
×
76
    this.userType = builder.userType;
×
77
    this.externalAppUserId = builder.externalAppUserId;
×
78
    this.fields = builder.fields;
×
79
    this.offset = builder.offset;
×
80
    this.limit = builder.limit;
×
81
    this.usemarker = builder.usemarker;
×
82
    this.marker = builder.marker;
×
83
  }
×
84

85
  public String getFilterTerm() {
86
    return filterTerm;
1✔
87
  }
88

89
  public EnumWrapper<GetUsersQueryParamsUserTypeField> getUserType() {
90
    return userType;
1✔
91
  }
92

93
  public String getExternalAppUserId() {
94
    return externalAppUserId;
1✔
95
  }
96

97
  public List<String> getFields() {
98
    return fields;
1✔
99
  }
100

101
  public Long getOffset() {
102
    return offset;
1✔
103
  }
104

105
  public Long getLimit() {
106
    return limit;
1✔
107
  }
108

109
  public Boolean getUsemarker() {
110
    return usemarker;
1✔
111
  }
112

113
  public String getMarker() {
114
    return marker;
1✔
115
  }
116

117
  public static class Builder {
×
118

119
    protected String filterTerm;
120

121
    protected EnumWrapper<GetUsersQueryParamsUserTypeField> userType;
122

123
    protected String externalAppUserId;
124

125
    protected List<String> fields;
126

127
    protected Long offset;
128

129
    protected Long limit;
130

131
    protected Boolean usemarker;
132

133
    protected String marker;
134

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

140
    public Builder userType(GetUsersQueryParamsUserTypeField userType) {
141
      this.userType = new EnumWrapper<GetUsersQueryParamsUserTypeField>(userType);
×
142
      return this;
×
143
    }
144

145
    public Builder userType(EnumWrapper<GetUsersQueryParamsUserTypeField> userType) {
146
      this.userType = userType;
×
147
      return this;
×
148
    }
149

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

155
    public Builder fields(List<String> fields) {
156
      this.fields = fields;
×
157
      return this;
×
158
    }
159

160
    public Builder offset(Long offset) {
161
      this.offset = offset;
×
162
      return this;
×
163
    }
164

165
    public Builder limit(Long limit) {
166
      this.limit = limit;
×
167
      return this;
×
168
    }
169

170
    public Builder usemarker(Boolean usemarker) {
171
      this.usemarker = usemarker;
×
172
      return this;
×
173
    }
174

175
    public Builder marker(String marker) {
176
      this.marker = marker;
×
177
      return this;
×
178
    }
179

180
    public GetUsersQueryParams build() {
181
      return new GetUsersQueryParams(this);
×
182
    }
183
  }
184
}
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