001package com.box.sdkgen.managers.fileversionlegalholds;
002
003public class GetFileVersionLegalHoldsQueryParams {
004
005  /** The ID of the legal hold policy to get the file version legal holds for. */
006  public final String policyId;
007
008  /**
009   * Defines the position marker at which to begin returning results. This is used when paginating
010   * using marker-based pagination.
011   *
012   * <p>This requires `usemarker` to be set to `true`.
013   */
014  public String marker;
015
016  /** The maximum number of items to return per page. */
017  public Long limit;
018
019  public GetFileVersionLegalHoldsQueryParams(String policyId) {
020    this.policyId = policyId;
021  }
022
023  protected GetFileVersionLegalHoldsQueryParams(Builder builder) {
024    this.policyId = builder.policyId;
025    this.marker = builder.marker;
026    this.limit = builder.limit;
027  }
028
029  public String getPolicyId() {
030    return policyId;
031  }
032
033  public String getMarker() {
034    return marker;
035  }
036
037  public Long getLimit() {
038    return limit;
039  }
040
041  public static class Builder {
042
043    protected final String policyId;
044
045    protected String marker;
046
047    protected Long limit;
048
049    public Builder(String policyId) {
050      this.policyId = policyId;
051    }
052
053    public Builder marker(String marker) {
054      this.marker = marker;
055      return this;
056    }
057
058    public Builder limit(Long limit) {
059      this.limit = limit;
060      return this;
061    }
062
063    public GetFileVersionLegalHoldsQueryParams build() {
064      return new GetFileVersionLegalHoldsQueryParams(this);
065    }
066  }
067}