@@ -21,6 +21,7 @@ public class Config {
2121 protected String version = "v3" ;
2222 protected String scheme = "https://" ;
2323 protected String endpoint ;
24+ protected String [] earlyAccess ;
2425 protected boolean enableLivePreview = false ;
2526 protected String livePreviewHost ;
2627 protected JSONObject livePreviewEntry = null ;
@@ -32,6 +33,25 @@ public class Config {
3233
3334 protected List <ContentstackPlugin > plugins = null ;
3435
36+
37+ /**
38+ * Get early access
39+ * @return array of String
40+ */
41+ public String [] getEarlyAccess () {
42+ return this .earlyAccess ;
43+ }
44+
45+ /**
46+ * Get early access
47+ * @param earlyAccess type of String[]
48+ * @return instance of {@link Config}
49+ */
50+ public Config setEarlyAccess (String [] earlyAccess ) {
51+ this .earlyAccess = earlyAccess ;
52+ return this ;
53+ }
54+
3555 public String getBranch () {
3656 return branch ;
3757 }
@@ -43,17 +63,16 @@ public void setBranch(String branch) {
4363 /**
4464 * Proxy can be set like below.
4565 *
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>
66+ * @param proxy Proxy setting, typically a type (http, socks) and a socket address. A Proxy is an immutable object
67+ * <br>
68+ * <br>
69+ * <b>Example:</b><br>
70+ * <br>
71+ * <code>
72+ * java.net.Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("proxyHost", "proxyPort"));
73+ * java.net.Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("sl.theproxyvpn.io", 80)); Config
74+ * config = new Config(); config.setProxy(proxy);
75+ * </code>
5776 */
5877 public void setProxy (Proxy proxy ) {
5978 this .proxy = proxy ;
@@ -73,12 +92,9 @@ public Proxy getProxy() {
7392 * {@link okhttp3.Address} may share a {@link okhttp3.Connection}. This class implements the policy * of which
7493 * connections to keep open for future use.
7594 *
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
95+ * @param maxIdleConnections the maxIdleConnections default value is 5
96+ * @param keepAliveDuration the keepAliveDuration default value is 5
97+ * @param timeUnit the timeUnit default value is TimeUnit. MINUTES
8298 * @return ConnectionPool
8399 */
84100 public ConnectionPool connectionPool (int maxIdleConnections , long keepAliveDuration , TimeUnit timeUnit ) {
@@ -98,8 +114,7 @@ public ContentstackRegion getRegion() {
98114 /**
99115 * Sets region.
100116 *
101- * @param region
102- * the region
117+ * @param region the region
103118 * @return the region
104119 */
105120 public ContentstackRegion setRegion (ContentstackRegion region ) {
@@ -131,8 +146,7 @@ public String getHost() {
131146 /**
132147 * Sets host.
133148 *
134- * @param hostName
135- * the host name
149+ * @param hostName the host name
136150 */
137151 public void setHost (String hostName ) {
138152 if (hostName != null && !hostName .isEmpty ()) {
@@ -152,8 +166,7 @@ public String getVersion() {
152166 /**
153167 * Enable live preview config.
154168 *
155- * @param enableLivePreview
156- * to enable live preview
169+ * @param enableLivePreview to enable live preview
157170 * @return the config
158171 */
159172 public Config enableLivePreview (boolean enableLivePreview ) {
@@ -164,8 +177,7 @@ public Config enableLivePreview(boolean enableLivePreview) {
164177 /**
165178 * Sets live preview host.
166179 *
167- * @param livePreviewHost
168- * the live preview host
180+ * @param livePreviewHost the live preview host
169181 * @return the live preview host
170182 */
171183 public Config setLivePreviewHost (@ NotNull String livePreviewHost ) {
@@ -181,8 +193,7 @@ protected Config setLivePreviewEntry(@NotNull JSONObject livePreviewEntry) {
181193 /**
182194 * Sets management token.
183195 *
184- * @param managementToken
185- * the management token
196+ * @param managementToken the management token
186197 * @return the management token
187198 */
188199 public Config setManagementToken (@ NotNull String managementToken ) {
0 commit comments