@@ -28,10 +28,21 @@ public class Config {
28
28
protected String managementToken ;
29
29
protected String branch ;
30
30
protected Proxy proxy = null ;
31
+ protected String [] earlyAccess = null ;
31
32
protected ConnectionPool connectionPool = new ConnectionPool ();
32
33
33
34
protected List <ContentstackPlugin > plugins = null ;
34
35
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
+
35
46
public String getBranch () {
36
47
return branch ;
37
48
}
@@ -43,17 +54,16 @@ public void setBranch(String branch) {
43
54
/**
44
55
* Proxy can be set like below.
45
56
*
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>
57
67
*/
58
68
public void setProxy (Proxy proxy ) {
59
69
this .proxy = proxy ;
@@ -73,12 +83,9 @@ public Proxy getProxy() {
73
83
* {@link okhttp3.Address} may share a {@link okhttp3.Connection}. This class implements the policy * of which
74
84
* connections to keep open for future use.
75
85
*
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
82
89
* @return ConnectionPool
83
90
*/
84
91
public ConnectionPool connectionPool (int maxIdleConnections , long keepAliveDuration , TimeUnit timeUnit ) {
@@ -98,8 +105,7 @@ public ContentstackRegion getRegion() {
98
105
/**
99
106
* Sets region.
100
107
*
101
- * @param region
102
- * the region
108
+ * @param region the region
103
109
* @return the region
104
110
*/
105
111
public ContentstackRegion setRegion (ContentstackRegion region ) {
@@ -131,8 +137,7 @@ public String getHost() {
131
137
/**
132
138
* Sets host.
133
139
*
134
- * @param hostName
135
- * the host name
140
+ * @param hostName the host name
136
141
*/
137
142
public void setHost (String hostName ) {
138
143
if (hostName != null && !hostName .isEmpty ()) {
@@ -152,8 +157,7 @@ public String getVersion() {
152
157
/**
153
158
* Enable live preview config.
154
159
*
155
- * @param enableLivePreview
156
- * to enable live preview
160
+ * @param enableLivePreview to enable live preview
157
161
* @return the config
158
162
*/
159
163
public Config enableLivePreview (boolean enableLivePreview ) {
@@ -164,8 +168,7 @@ public Config enableLivePreview(boolean enableLivePreview) {
164
168
/**
165
169
* Sets live preview host.
166
170
*
167
- * @param livePreviewHost
168
- * the live preview host
171
+ * @param livePreviewHost the live preview host
169
172
* @return the live preview host
170
173
*/
171
174
public Config setLivePreviewHost (@ NotNull String livePreviewHost ) {
@@ -181,8 +184,7 @@ protected Config setLivePreviewEntry(@NotNull JSONObject livePreviewEntry) {
181
184
/**
182
185
* Sets management token.
183
186
*
184
- * @param managementToken
185
- * the management token
187
+ * @param managementToken the management token
186
188
* @return the management token
187
189
*/
188
190
public Config setManagementToken (@ NotNull String managementToken ) {
0 commit comments