Class EnginesApiImpl
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.EnginesApiImpl
-
- All Implemented Interfaces:
EnginesApi
public class EnginesApiImpl extends Object implements EnginesApi
-
-
Constructor Summary
Constructors Constructor Description EnginesApiImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper, String baseUrl, okhttp3.OkHttpClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EngineResponsecreateEngine(CreateEngine engine)booleandeleteEngine(String engineName)EngineResponsegetEngineByName(String engineName)Retrieves an Engine by name.EnginesResponselistEngines(Page page)Retrieves all Engines that the API Key is scoped to access.
-
-
-
Constructor Detail
-
EnginesApiImpl
public EnginesApiImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper, String baseUrl, okhttp3.OkHttpClient client)
-
-
Method Detail
-
getEngineByName
public EngineResponse getEngineByName(String engineName)
Description copied from interface:EnginesApiRetrieves an Engine by name.- Specified by:
getEngineByNamein interfaceEnginesApi- Parameters:
engineName- The name of the engine- Returns:
- the engine
-
listEngines
public EnginesResponse listEngines(Page page)
Description copied from interface:EnginesApiRetrieves all Engines that the API Key is scoped to access.- Specified by:
listEnginesin interfaceEnginesApi- Parameters:
page- Optional, the pagination info- Returns:
- a list of engines
-
createEngine
public EngineResponse createEngine(CreateEngine engine)
- Specified by:
createEnginein interfaceEnginesApi
-
deleteEngine
public boolean deleteEngine(String engineName)
- Specified by:
deleteEnginein interfaceEnginesApi
-
-