001package com.box.sdkgen.networking.proxyconfig;
002
003public class ProxyConfig {
004
005  public final String url;
006
007  public String username;
008
009  public String password;
010
011  public ProxyConfig(String url) {
012    this.url = url;
013  }
014
015  protected ProxyConfig(Builder builder) {
016    this.url = builder.url;
017    this.username = builder.username;
018    this.password = builder.password;
019  }
020
021  public String getUrl() {
022    return url;
023  }
024
025  public String getUsername() {
026    return username;
027  }
028
029  public String getPassword() {
030    return password;
031  }
032
033  public static class Builder {
034
035    protected final String url;
036
037    protected String username;
038
039    protected String password;
040
041    public Builder(String url) {
042      this.url = url;
043    }
044
045    public Builder username(String username) {
046      this.username = username;
047      return this;
048    }
049
050    public Builder password(String password) {
051      this.password = password;
052      return this;
053    }
054
055    public ProxyConfig build() {
056      return new ProxyConfig(this);
057    }
058  }
059}