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