@@ -51,6 +51,7 @@ public class Contentstack {
5151 protected final Boolean retryOnFailure ;
5252 protected final Proxy proxy ;
5353 protected AuthInterceptor interceptor ;
54+ protected String [] earlyAccess ;
5455 protected User user ;
5556
5657 /**
@@ -80,8 +81,8 @@ public class Contentstack {
8081 * @return User
8182 * @author ***REMOVED***
8283 * @see <a href=
83- * "https://www.contentstack.com/docs/developers/apis/content-management-api/#users">User
84- * </a>
84+ * "https://www.contentstack.com/docs/developers/apis/content-management-api/#users">User
85+ * </a>
8586 * @since 2022-05-19
8687 */
8788 public User user () {
@@ -130,8 +131,8 @@ public User user() {
130131 * @throws IOException the IOException
131132 * @author ***REMOVED***
132133 * @see <a href=
133- * "https://www.contentstack.com/docs/developers/apis/content-management-api/#users">User
134- * </a>
134+ * "https://www.contentstack.com/docs/developers/apis/content-management-api/#users">User
135+ * </a>
135136 */
136137 public Response <LoginDetails > login (String emailId , String password ) throws IOException {
137138 if (this .authtoken != null )
@@ -183,10 +184,10 @@ public Response<LoginDetails> login(String emailId, String password) throws IOEx
183184 * @throws IOException the IOException
184185 * @author ***REMOVED***
185186 * @see <a
186- * href=
187- * "https://www.contentstack.com/docs/developers/apis/content-management-api/#log-in-to-your-account">Login
188- * your account
189- * </a>
187+ * href=
188+ * "https://www.contentstack.com/docs/developers/apis/content-management-api/#log-in-to-your-account">Login
189+ * your account
190+ * </a>
190191 */
191192 public Response <LoginDetails > login (String emailId , String password , String tfaToken ) throws IOException {
192193 if (this .authtoken != null )
@@ -287,11 +288,12 @@ public Organization organization() {
287288 *
288289 * @param organizationUid The UID of the organization that you want to retrieve
289290 * @return the organization
290- * <br>
291- * <b>Example</b>
291+ * <br>
292+ * <b>Example</b>
292293 *
293- * <pre>
294+ * <pre>
294295 * Contentstack contentstack = new Contentstack.Builder().build();
296+ * <br>
295297 * Organization org = contentstack.organization();
296298 * </pre>
297299 */
@@ -447,6 +449,7 @@ public Contentstack(Builder builder) {
447449 this .retryOnFailure = builder .retry ;
448450 this .proxy = builder .proxy ;
449451 this .interceptor = builder .authInterceptor ;
452+ this .earlyAccess = builder .earlyAccess ;
450453 }
451454
452455 /**
@@ -461,6 +464,7 @@ public static class Builder {
461464 private AuthInterceptor authInterceptor ;
462465
463466 private String authtoken ; // authtoken for client
467+ private String [] earlyAccess ;
464468 private Retrofit instance ; // client instance
465469 private String hostname = Util .HOST ; // Default Host for Contentstack API (default: api.contentstack.io)
466470 private String port = Util .PORT ; // Default PORT for Contentstack API
@@ -488,14 +492,14 @@ public Builder() {
488492 * <br>
489493 * <p>
490494 * {@code
491- *
492- <p>
495+ *
496+ * <p>
493497 * Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("hostname", 433));
494498 * Contentstack contentstack = new Contentstack.Builder().setProxy(proxy).build();
495- *
496- <p>
499+ *
500+ * <p>
497501 * }
498- *
502+ *
499503 * @param proxy the proxy
500504 * @return the Builder instance
501505 */
@@ -578,9 +582,9 @@ public Builder setTimeout(int timeout) {
578582 * unit of granularity and provides utility methods to
579583 * convert across units
580584 * @return instance of Builder
581- * <p>
582- * Example:
583- * {@code
585+ * <p>
586+ * Example:
587+ * {@code
584588 * Contentstack cs = new Contentstack.Builder()
585589 * .setAuthtoken(AUTHTOKEN)
586590 * .setConnectionPool(5, 400, TimeUnit.MILLISECONDS)
@@ -604,6 +608,12 @@ public Builder setAuthtoken(String authtoken) {
604608 return this ;
605609 }
606610
611+
612+ public Builder earlyAccess (String [] earlyAccess ) {
613+ this .earlyAccess = earlyAccess ;
614+ return this ;
615+ }
616+
607617 /**
608618 * Build contentstack.
609619 *
0 commit comments