001package com.box.sdkgen.managers.hubs;
002
003import com.box.sdkgen.serialization.json.EnumWrapper;
004
005public class GetEnterpriseHubsV2025R0QueryParams {
006
007  /** The query string to search for Box Hubs. */
008  public String query;
009
010  /**
011   * The field to sort results by. Possible values include `name`, `updated_at`, `last_accessed_at`,
012   * `view_count`, and `relevance`. Default is `relevance`.
013   */
014  public String sort;
015
016  /**
017   * The direction to sort results in. This can be either in alphabetical ascending (`ASC`) or
018   * descending (`DESC`) order.
019   */
020  public EnumWrapper<GetEnterpriseHubsV2025R0QueryParamsDirectionField> direction;
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  public String marker;
027
028  /** The maximum number of items to return per page. */
029  public Long limit;
030
031  public GetEnterpriseHubsV2025R0QueryParams() {}
032
033  protected GetEnterpriseHubsV2025R0QueryParams(Builder builder) {
034    this.query = builder.query;
035    this.sort = builder.sort;
036    this.direction = builder.direction;
037    this.marker = builder.marker;
038    this.limit = builder.limit;
039  }
040
041  public String getQuery() {
042    return query;
043  }
044
045  public String getSort() {
046    return sort;
047  }
048
049  public EnumWrapper<GetEnterpriseHubsV2025R0QueryParamsDirectionField> getDirection() {
050    return direction;
051  }
052
053  public String getMarker() {
054    return marker;
055  }
056
057  public Long getLimit() {
058    return limit;
059  }
060
061  public static class Builder {
062
063    protected String query;
064
065    protected String sort;
066
067    protected EnumWrapper<GetEnterpriseHubsV2025R0QueryParamsDirectionField> direction;
068
069    protected String marker;
070
071    protected Long limit;
072
073    public Builder query(String query) {
074      this.query = query;
075      return this;
076    }
077
078    public Builder sort(String sort) {
079      this.sort = sort;
080      return this;
081    }
082
083    public Builder direction(GetEnterpriseHubsV2025R0QueryParamsDirectionField direction) {
084      this.direction =
085          new EnumWrapper<GetEnterpriseHubsV2025R0QueryParamsDirectionField>(direction);
086      return this;
087    }
088
089    public Builder direction(
090        EnumWrapper<GetEnterpriseHubsV2025R0QueryParamsDirectionField> direction) {
091      this.direction = direction;
092      return this;
093    }
094
095    public Builder marker(String marker) {
096      this.marker = marker;
097      return this;
098    }
099
100    public Builder limit(Long limit) {
101      this.limit = limit;
102      return this;
103    }
104
105    public GetEnterpriseHubsV2025R0QueryParams build() {
106      return new GetEnterpriseHubsV2025R0QueryParams(this);
107    }
108  }
109}