001package com.box.sdkgen.managers.hubitems;
002
003public class GetHubItemsV2025R0QueryParams {
004
005  /**
006   * The unique identifier that represent a hub.
007   *
008   * <p>The ID for any hub can be determined by visiting this hub in the web application and copying
009   * the ID from the URL. For example, for the URL `https://*.app.box.com/hubs/123` the `hub_id` is
010   * `123`.
011   */
012  public final String hubId;
013
014  /**
015   * The unique identifier of an item list block within the Box Hub.
016   *
017   * <p>When provided, the response will only include items that belong to the specified item list,
018   * allowing you to filter results to items on a specific page or section.
019   */
020  public String parentId;
021
022  /**
023   * Defines the position marker at which to begin returning results. This is used when paginating
024   * using marker-based pagination.
025   *
026   * <p>This requires `usemarker` to be set to `true`.
027   */
028  public String marker;
029
030  /** The maximum number of items to return per page. */
031  public Long limit;
032
033  public GetHubItemsV2025R0QueryParams(String hubId) {
034    this.hubId = hubId;
035  }
036
037  protected GetHubItemsV2025R0QueryParams(Builder builder) {
038    this.hubId = builder.hubId;
039    this.parentId = builder.parentId;
040    this.marker = builder.marker;
041    this.limit = builder.limit;
042  }
043
044  public String getHubId() {
045    return hubId;
046  }
047
048  public String getParentId() {
049    return parentId;
050  }
051
052  public String getMarker() {
053    return marker;
054  }
055
056  public Long getLimit() {
057    return limit;
058  }
059
060  public static class Builder {
061
062    protected final String hubId;
063
064    protected String parentId;
065
066    protected String marker;
067
068    protected Long limit;
069
070    public Builder(String hubId) {
071      this.hubId = hubId;
072    }
073
074    public Builder parentId(String parentId) {
075      this.parentId = parentId;
076      return this;
077    }
078
079    public Builder marker(String marker) {
080      this.marker = marker;
081      return this;
082    }
083
084    public Builder limit(Long limit) {
085      this.limit = limit;
086      return this;
087    }
088
089    public GetHubItemsV2025R0QueryParams build() {
090      return new GetHubItemsV2025R0QueryParams(this);
091    }
092  }
093}