001package com.box.sdkgen.managers.files;
002
003import java.util.List;
004
005public class GetFileByIdQueryParams {
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   * <p>Additionally this field can be used to query any metadata applied to the file by specifying
016   * the `metadata` field as well as the scope and key of the template to retrieve, for example
017   * `?fields=metadata.enterprise_12345.contractTemplate`.
018   */
019  public List<String> fields;
020
021  public GetFileByIdQueryParams() {}
022
023  protected GetFileByIdQueryParams(Builder builder) {
024    this.fields = builder.fields;
025  }
026
027  public List<String> getFields() {
028    return fields;
029  }
030
031  public static class Builder {
032
033    protected List<String> fields;
034
035    public Builder fields(List<String> fields) {
036      this.fields = fields;
037      return this;
038    }
039
040    public GetFileByIdQueryParams build() {
041      return new GetFileByIdQueryParams(this);
042    }
043  }
044}