001package com.box.sdkgen.managers.sharedlinksappitems;
002
003import static com.box.sdkgen.internal.utils.UtilsManager.mapOf;
004
005import java.util.Map;
006
007public class FindAppItemForSharedLinkHeaders {
008
009  /**
010   * A header containing the shared link and optional password for the shared link.
011   *
012   * <p>The format for this header is `shared_link=[link]&amp;shared_link_password=[password]`.
013   */
014  public final String boxapi;
015
016  /** Extra headers that will be included in the HTTP request. */
017  public Map<String, String> extraHeaders;
018
019  public FindAppItemForSharedLinkHeaders(String boxapi) {
020    this.boxapi = boxapi;
021    this.extraHeaders = mapOf();
022  }
023
024  protected FindAppItemForSharedLinkHeaders(Builder builder) {
025    this.boxapi = builder.boxapi;
026    this.extraHeaders = builder.extraHeaders;
027  }
028
029  public String getBoxapi() {
030    return boxapi;
031  }
032
033  public Map<String, String> getExtraHeaders() {
034    return extraHeaders;
035  }
036
037  public static class Builder {
038
039    protected final String boxapi;
040
041    protected Map<String, String> extraHeaders;
042
043    public Builder(String boxapi) {
044      this.boxapi = boxapi;
045    }
046
047    public Builder extraHeaders(Map<String, String> extraHeaders) {
048      this.extraHeaders = extraHeaders;
049      return this;
050    }
051
052    public FindAppItemForSharedLinkHeaders build() {
053      if (this.extraHeaders == null) {
054        this.extraHeaders = mapOf();
055      }
056      return new FindAppItemForSharedLinkHeaders(this);
057    }
058  }
059}