001package com.box.sdkgen.managers.memberships;
002
003public class GetUserMembershipsQueryParams {
004
005  /** The maximum number of items to return per page. */
006  public Long limit;
007
008  /**
009   * The offset of the item at which to begin the response.
010   *
011   * <p>Queries with offset parameter value exceeding 10000 will be rejected with a 400 response.
012   */
013  public Long offset;
014
015  public GetUserMembershipsQueryParams() {}
016
017  protected GetUserMembershipsQueryParams(Builder builder) {
018    this.limit = builder.limit;
019    this.offset = builder.offset;
020  }
021
022  public Long getLimit() {
023    return limit;
024  }
025
026  public Long getOffset() {
027    return offset;
028  }
029
030  public static class Builder {
031
032    protected Long limit;
033
034    protected Long offset;
035
036    public Builder limit(Long limit) {
037      this.limit = limit;
038      return this;
039    }
040
041    public Builder offset(Long offset) {
042      this.offset = offset;
043      return this;
044    }
045
046    public GetUserMembershipsQueryParams build() {
047      return new GetUserMembershipsQueryParams(this);
048    }
049  }
050}