001package com.box.sdkgen.managers.folders;
002
003import static com.box.sdkgen.internal.utils.UtilsManager.mapOf;
004
005import java.util.Map;
006
007public class GetFolderItemsHeaders {
008
009  /**
010   * The URL, and optional password, for the shared link of this item.
011   *
012   * <p>This header can be used to access items that have not been explicitly shared with a user.
013   *
014   * <p>Use the format `shared_link=[link]` or if a password is required then use
015   * `shared_link=[link]&amp;shared_link_password=[password]`.
016   *
017   * <p>This header can be used on the file or folder shared, as well as on any files or folders
018   * nested within the item.
019   */
020  public String boxapi;
021
022  /** Extra headers that will be included in the HTTP request. */
023  public Map<String, String> extraHeaders;
024
025  public GetFolderItemsHeaders() {
026    this.extraHeaders = mapOf();
027  }
028
029  protected GetFolderItemsHeaders(Builder builder) {
030    this.boxapi = builder.boxapi;
031    this.extraHeaders = builder.extraHeaders;
032  }
033
034  public String getBoxapi() {
035    return boxapi;
036  }
037
038  public Map<String, String> getExtraHeaders() {
039    return extraHeaders;
040  }
041
042  public static class Builder {
043
044    protected String boxapi;
045
046    protected Map<String, String> extraHeaders;
047
048    public Builder() {}
049
050    public Builder boxapi(String boxapi) {
051      this.boxapi = boxapi;
052      return this;
053    }
054
055    public Builder extraHeaders(Map<String, String> extraHeaders) {
056      this.extraHeaders = extraHeaders;
057      return this;
058    }
059
060    public GetFolderItemsHeaders build() {
061      if (this.extraHeaders == null) {
062        this.extraHeaders = mapOf();
063      }
064      return new GetFolderItemsHeaders(this);
065    }
066  }
067}