001package com.box.sdkgen.managers.metadatataxonomies;
002
003import java.util.List;
004
005public class GetMetadataTaxonomyNodesQueryParams {
006
007  /**
008   * Filters results by taxonomy level. Multiple values can be provided. Results include nodes that
009   * match any of the specified values.
010   */
011  public List<Long> level;
012
013  /**
014   * Node identifier of a direct parent node. Multiple values can be provided. Results include nodes
015   * that match any of the specified values.
016   */
017  public List<String> parent;
018
019  /**
020   * Node identifier of any ancestor node. Multiple values can be provided. Results include nodes
021   * that match any of the specified values.
022   */
023  public List<String> ancestor;
024
025  /** Query text to search for the taxonomy nodes. */
026  public String query;
027
028  /**
029   * When set to `true` this provides the total number of nodes that matched the query. The response
030   * will compute counts of up to 10,000 elements. Defaults to `false`.
031   */
032  public Boolean includeTotalResultCount;
033
034  /**
035   * Defines the position marker at which to begin returning results. This is used when paginating
036   * using marker-based pagination.
037   *
038   * <p>This requires `usemarker` to be set to `true`.
039   */
040  public String marker;
041
042  /** The maximum number of items to return per page. */
043  public Long limit;
044
045  public GetMetadataTaxonomyNodesQueryParams() {}
046
047  protected GetMetadataTaxonomyNodesQueryParams(Builder builder) {
048    this.level = builder.level;
049    this.parent = builder.parent;
050    this.ancestor = builder.ancestor;
051    this.query = builder.query;
052    this.includeTotalResultCount = builder.includeTotalResultCount;
053    this.marker = builder.marker;
054    this.limit = builder.limit;
055  }
056
057  public List<Long> getLevel() {
058    return level;
059  }
060
061  public List<String> getParent() {
062    return parent;
063  }
064
065  public List<String> getAncestor() {
066    return ancestor;
067  }
068
069  public String getQuery() {
070    return query;
071  }
072
073  public Boolean getIncludeTotalResultCount() {
074    return includeTotalResultCount;
075  }
076
077  public String getMarker() {
078    return marker;
079  }
080
081  public Long getLimit() {
082    return limit;
083  }
084
085  public static class Builder {
086
087    protected List<Long> level;
088
089    protected List<String> parent;
090
091    protected List<String> ancestor;
092
093    protected String query;
094
095    protected Boolean includeTotalResultCount;
096
097    protected String marker;
098
099    protected Long limit;
100
101    public Builder level(List<Long> level) {
102      this.level = level;
103      return this;
104    }
105
106    public Builder parent(List<String> parent) {
107      this.parent = parent;
108      return this;
109    }
110
111    public Builder ancestor(List<String> ancestor) {
112      this.ancestor = ancestor;
113      return this;
114    }
115
116    public Builder query(String query) {
117      this.query = query;
118      return this;
119    }
120
121    public Builder includeTotalResultCount(Boolean includeTotalResultCount) {
122      this.includeTotalResultCount = includeTotalResultCount;
123      return this;
124    }
125
126    public Builder marker(String marker) {
127      this.marker = marker;
128      return this;
129    }
130
131    public Builder limit(Long limit) {
132      this.limit = limit;
133      return this;
134    }
135
136    public GetMetadataTaxonomyNodesQueryParams build() {
137      return new GetMetadataTaxonomyNodesQueryParams(this);
138    }
139  }
140}