001package com.box.sdkgen.managers.collections;
002
003import java.util.List;
004
005public class GetCollectionsQueryParams {
006
007  /**
008   * A comma-separated list of attributes to include in the response. This can be used to request
009   * fields that are not normally returned in a standard response.
010   *
011   * <p>Be aware that specifying this parameter will have the effect that none of the standard
012   * fields are returned in the response unless explicitly specified, instead only fields for the
013   * mini representation are returned, additional to the fields requested.
014   */
015  public List<String> fields;
016
017  /**
018   * The offset of the item at which to begin the response.
019   *
020   * <p>Queries with offset parameter value exceeding 10000 will be rejected with a 400 response.
021   */
022  public Long offset;
023
024  /** The maximum number of items to return per page. */
025  public Long limit;
026
027  public GetCollectionsQueryParams() {}
028
029  protected GetCollectionsQueryParams(Builder builder) {
030    this.fields = builder.fields;
031    this.offset = builder.offset;
032    this.limit = builder.limit;
033  }
034
035  public List<String> getFields() {
036    return fields;
037  }
038
039  public Long getOffset() {
040    return offset;
041  }
042
043  public Long getLimit() {
044    return limit;
045  }
046
047  public static class Builder {
048
049    protected List<String> fields;
050
051    protected Long offset;
052
053    protected Long limit;
054
055    public Builder fields(List<String> fields) {
056      this.fields = fields;
057      return this;
058    }
059
060    public Builder offset(Long offset) {
061      this.offset = offset;
062      return this;
063    }
064
065    public Builder limit(Long limit) {
066      this.limit = limit;
067      return this;
068    }
069
070    public GetCollectionsQueryParams build() {
071      return new GetCollectionsQueryParams(this);
072    }
073  }
074}