Class DataClientBuilder


  • public class DataClientBuilder
    extends Object
    A utility class for building DataClient instances.
    • Constructor Detail

      • DataClientBuilder

        protected DataClientBuilder()
        Default constructor
    • Method Detail

      • create

        public static DataClientBuilder create()
        Create a new instance of DataClientBuilder that can be used to build instances of DataClient.
        Returns:
        a new instance of DataClientBuilder
      • authenticateWith

        public DataClientBuilder authenticateWith​(UserClient userClient)
        Specifies that authentication should be enabled for the DataClient instance that will be constructed by this builder. When accessing data, the provided UserClient will be used to ensure that an authenticated user is available. When a UserClient is not set, the authentication process will not be started when accessing data.
        Parameters:
        userClient - the instance of the UserClient to use for authentication
        Returns:
        A reference to this builder.
      • build

        public DataClient build()
        Make an instance of DataClient based on the properties set on this builder.
        Returns:
        The constructed DataClient instance.