Class AppSearchClient.Builder
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.AppSearchClient.Builder
-
- Enclosing class:
- AppSearchClient
public static class AppSearchClient.Builder extends Object
Used to build an instance of the AppSearch Client
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AppSearchClientbuild()Builds the clientAppSearchClient.BuilderclientAuthentication(ClientAuthentication clientAuthentication)The authentication method to connect to the engineAppSearchClient.BuilderclientBuilder(okhttp3.OkHttpClient.Builder clientBuilder)A client builder to customise the internal configuration of the OkHttpClient
-
-
-
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.
-
-