@@ -28,10 +28,21 @@ public class Config {
2828 protected String managementToken ;
2929 protected String branch ;
3030 protected Proxy proxy = null ;
31+ protected String [] earlyAccess = null ;
3132 protected ConnectionPool connectionPool = new ConnectionPool ();
3233
3334 protected List <ContentstackPlugin > plugins = null ;
3435
36+
37+ public String [] getEarlyAccess () {
38+ return this .earlyAccess ;
39+ }
40+
41+ public Config setEarlyAccess (String [] earlyAccess ) {
42+ this .earlyAccess = earlyAccess ;
43+ return this ;
44+ }
45+
3546 public String getBranch () {
3647 return branch ;
3748 }
@@ -43,17 +54,16 @@ public void setBranch(String branch) {
4354 /**
4455 * Proxy can be set like below.
4556 *
46- * @param proxy
47- * Proxy setting, typically a type (http, socks) and a socket address. A Proxy is an immutable object
48- * <br>
49- * <br>
50- * <b>Example:</b><br>
51- * <br>
52- * <code>
53- * java.net.Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("proxyHost", "proxyPort"));
54- * java.net.Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("sl.theproxyvpn.io", 80)); Config
55- * config = new Config(); config.setProxy(proxy);
56- * </code>
57+ * @param proxy Proxy setting, typically a type (http, socks) and a socket address. A Proxy is an immutable object
58+ * <br>
59+ * <br>
60+ * <b>Example:</b><br>
61+ * <br>
62+ * <code>
63+ * java.net.Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("proxyHost", "proxyPort"));
64+ * java.net.Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("sl.theproxyvpn.io", 80)); Config
65+ * config = new Config(); config.setProxy(proxy);
66+ * </code>
5767 */
5868 public void setProxy (Proxy proxy ) {
5969 this .proxy = proxy ;
@@ -73,12 +83,9 @@ public Proxy getProxy() {
7383 * {@link okhttp3.Address} may share a {@link okhttp3.Connection}. This class implements the policy * of which
7484 * connections to keep open for future use.
7585 *
76- * @param maxIdleConnections
77- * the maxIdleConnections default value is 5
78- * @param keepAliveDuration
79- * the keepAliveDuration default value is 5
80- * @param timeUnit
81- * the timeUnit default value is TimeUnit. MINUTES
86+ * @param maxIdleConnections the maxIdleConnections default value is 5
87+ * @param keepAliveDuration the keepAliveDuration default value is 5
88+ * @param timeUnit the timeUnit default value is TimeUnit. MINUTES
8289 * @return ConnectionPool
8390 */
8491 public ConnectionPool connectionPool (int maxIdleConnections , long keepAliveDuration , TimeUnit timeUnit ) {
@@ -98,8 +105,7 @@ public ContentstackRegion getRegion() {
98105 /**
99106 * Sets region.
100107 *
101- * @param region
102- * the region
108+ * @param region the region
103109 * @return the region
104110 */
105111 public ContentstackRegion setRegion (ContentstackRegion region ) {
@@ -131,8 +137,7 @@ public String getHost() {
131137 /**
132138 * Sets host.
133139 *
134- * @param hostName
135- * the host name
140+ * @param hostName the host name
136141 */
137142 public void setHost (String hostName ) {
138143 if (hostName != null && !hostName .isEmpty ()) {
@@ -152,8 +157,7 @@ public String getVersion() {
152157 /**
153158 * Enable live preview config.
154159 *
155- * @param enableLivePreview
156- * to enable live preview
160+ * @param enableLivePreview to enable live preview
157161 * @return the config
158162 */
159163 public Config enableLivePreview (boolean enableLivePreview ) {
@@ -164,8 +168,7 @@ public Config enableLivePreview(boolean enableLivePreview) {
164168 /**
165169 * Sets live preview host.
166170 *
167- * @param livePreviewHost
168- * the live preview host
171+ * @param livePreviewHost the live preview host
169172 * @return the live preview host
170173 */
171174 public Config setLivePreviewHost (@ NotNull String livePreviewHost ) {
@@ -181,8 +184,7 @@ protected Config setLivePreviewEntry(@NotNull JSONObject livePreviewEntry) {
181184 /**
182185 * Sets management token.
183186 *
184- * @param managementToken
185- * the management token
187+ * @param managementToken the management token
186188 * @return the management token
187189 */
188190 public Config setManagementToken (@ NotNull String managementToken ) {
0 commit comments