001package com.box.sdkgen.managers.archives;
002
003import static com.box.sdkgen.internal.utils.UtilsManager.mapOf;
004
005import com.box.sdkgen.parameters.v2025r0.boxversionheaderv2025r0.BoxVersionHeaderV2025R0;
006import com.box.sdkgen.serialization.json.EnumWrapper;
007import java.util.Map;
008
009public class CreateArchiveV2025R0Headers {
010
011  /** Version header. */
012  public EnumWrapper<BoxVersionHeaderV2025R0> boxVersion;
013
014  /** Extra headers that will be included in the HTTP request. */
015  public Map<String, String> extraHeaders;
016
017  public CreateArchiveV2025R0Headers() {
018    this.boxVersion = new EnumWrapper<BoxVersionHeaderV2025R0>(BoxVersionHeaderV2025R0._2025_0);
019    this.extraHeaders = mapOf();
020  }
021
022  protected CreateArchiveV2025R0Headers(Builder builder) {
023    this.boxVersion = builder.boxVersion;
024    this.extraHeaders = builder.extraHeaders;
025  }
026
027  public EnumWrapper<BoxVersionHeaderV2025R0> getBoxVersion() {
028    return boxVersion;
029  }
030
031  public Map<String, String> getExtraHeaders() {
032    return extraHeaders;
033  }
034
035  public static class Builder {
036
037    protected EnumWrapper<BoxVersionHeaderV2025R0> boxVersion;
038
039    protected Map<String, String> extraHeaders;
040
041    public Builder() {}
042
043    public Builder boxVersion(BoxVersionHeaderV2025R0 boxVersion) {
044      this.boxVersion = new EnumWrapper<BoxVersionHeaderV2025R0>(boxVersion);
045      return this;
046    }
047
048    public Builder boxVersion(EnumWrapper<BoxVersionHeaderV2025R0> boxVersion) {
049      this.boxVersion = boxVersion;
050      return this;
051    }
052
053    public Builder extraHeaders(Map<String, String> extraHeaders) {
054      this.extraHeaders = extraHeaders;
055      return this;
056    }
057
058    public CreateArchiveV2025R0Headers build() {
059      if (this.boxVersion == null) {
060        this.boxVersion = new EnumWrapper<BoxVersionHeaderV2025R0>(BoxVersionHeaderV2025R0._2025_0);
061      }
062      if (this.extraHeaders == null) {
063        this.extraHeaders = mapOf();
064      }
065      return new CreateArchiveV2025R0Headers(this);
066    }
067  }
068}