Class AppSearchClient.Builder

  • Enclosing class:
    AppSearchClient

    public static class AppSearchClient.Builder
    extends Object
    Used to build an instance of the AppSearch Client
    • Constructor Detail

      • Builder

        public Builder​(String endpointBase)
    • Method Detail

      • build

        public AppSearchClient build()
        Builds the client
        Returns:
        The constructed AppSearchClient
      • clientAuthentication

        public AppSearchClient.Builder clientAuthentication​(ClientAuthentication clientAuthentication)
        The authentication method to connect to the engine
        Parameters:
        clientAuthentication - the authentication method
        Returns:
        this.
      • clientBuilder

        public AppSearchClient.Builder clientBuilder​(okhttp3.OkHttpClient.Builder clientBuilder)
        A client builder to customise the internal configuration of the OkHttpClient
        Parameters:
        clientBuilder - the clientBuilder
        Returns:
        this.