001package com.box.sdkgen.managers.legalholdpolicies;
002
003import java.util.List;
004
005public class GetLegalHoldPoliciesQueryParams {
006
007  /**
008   * Limits results to policies for which the names start with this search term. This is a
009   * case-insensitive prefix.
010   */
011  public String policyName;
012
013  /**
014   * A comma-separated list of attributes to include in the response. This can be used to request
015   * fields that are not normally returned in a standard response.
016   *
017   * <p>Be aware that specifying this parameter will have the effect that none of the standard
018   * fields are returned in the response unless explicitly specified, instead only fields for the
019   * mini representation are returned, additional to the fields requested.
020   */
021  public List<String> fields;
022
023  /**
024   * Defines the position marker at which to begin returning results. This is used when paginating
025   * using marker-based pagination.
026   *
027   * <p>This requires `usemarker` to be set to `true`.
028   */
029  public String marker;
030
031  /** The maximum number of items to return per page. */
032  public Long limit;
033
034  public GetLegalHoldPoliciesQueryParams() {}
035
036  protected GetLegalHoldPoliciesQueryParams(Builder builder) {
037    this.policyName = builder.policyName;
038    this.fields = builder.fields;
039    this.marker = builder.marker;
040    this.limit = builder.limit;
041  }
042
043  public String getPolicyName() {
044    return policyName;
045  }
046
047  public List<String> getFields() {
048    return fields;
049  }
050
051  public String getMarker() {
052    return marker;
053  }
054
055  public Long getLimit() {
056    return limit;
057  }
058
059  public static class Builder {
060
061    protected String policyName;
062
063    protected List<String> fields;
064
065    protected String marker;
066
067    protected Long limit;
068
069    public Builder policyName(String policyName) {
070      this.policyName = policyName;
071      return this;
072    }
073
074    public Builder fields(List<String> fields) {
075      this.fields = fields;
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 GetLegalHoldPoliciesQueryParams build() {
090      return new GetLegalHoldPoliciesQueryParams(this);
091    }
092  }
093}