001package com.box.sdkgen.managers.fileversions;
002
003import java.util.List;
004
005public class GetFileVersionsQueryParams {
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  /** The maximum number of items to return per page. */
018  public Long limit;
019
020  /**
021   * The offset of the item at which to begin the response.
022   *
023   * <p>Queries with offset parameter value exceeding 10000 will be rejected with a 400 response.
024   */
025  public Long offset;
026
027  public GetFileVersionsQueryParams() {}
028
029  protected GetFileVersionsQueryParams(Builder builder) {
030    this.fields = builder.fields;
031    this.limit = builder.limit;
032    this.offset = builder.offset;
033  }
034
035  public List<String> getFields() {
036    return fields;
037  }
038
039  public Long getLimit() {
040    return limit;
041  }
042
043  public Long getOffset() {
044    return offset;
045  }
046
047  public static class Builder {
048
049    protected List<String> fields;
050
051    protected Long limit;
052
053    protected Long offset;
054
055    public Builder fields(List<String> fields) {
056      this.fields = fields;
057      return this;
058    }
059
060    public Builder limit(Long limit) {
061      this.limit = limit;
062      return this;
063    }
064
065    public Builder offset(Long offset) {
066      this.offset = offset;
067      return this;
068    }
069
070    public GetFileVersionsQueryParams build() {
071      return new GetFileVersionsQueryParams(this);
072    }
073  }
074}