Class OpenSearchSearchPipelineClient
java.lang.Object
org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchSearchPipelineClient>
org.opensearch.client.opensearch.search_pipeline.OpenSearchSearchPipelineClient
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class OpenSearchSearchPipelineClient
extends ApiClient<OpenSearchTransport,OpenSearchSearchPipelineClient>
Client for the search_pipeline namespace.
-
Field Summary
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchSearchPipelineClient(OpenSearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionDeletes the specified search pipeline.delete(DeleteSearchPipelineRequest request) Deletes the specified search pipeline.get()Retrieves information about a specified search pipeline.Retrieves information about a specified search pipeline.get(GetSearchPipelineRequest request) Retrieves information about a specified search pipeline.Creates or replaces the specified search pipeline.put(PutSearchPipelineRequest request) Creates or replaces the specified search pipeline.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer
-
Constructor Details
-
OpenSearchSearchPipelineClient
-
OpenSearchSearchPipelineClient
public OpenSearchSearchPipelineClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public OpenSearchSearchPipelineClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<OpenSearchTransport,OpenSearchSearchPipelineClient>
-
delete
public DeleteSearchPipelineResponse delete(DeleteSearchPipelineRequest request) throws IOException, OpenSearchException Deletes the specified search pipeline.- Throws:
IOExceptionOpenSearchException
-
delete
public final DeleteSearchPipelineResponse delete(Function<DeleteSearchPipelineRequest.Builder, ObjectBuilder<DeleteSearchPipelineRequest>> fn) throws IOException, OpenSearchExceptionDeletes the specified search pipeline.- Parameters:
fn- a function that initializes a builder to create theDeleteSearchPipelineRequest- Throws:
IOExceptionOpenSearchException
-
get
public GetSearchPipelineResponse get(GetSearchPipelineRequest request) throws IOException, OpenSearchException Retrieves information about a specified search pipeline.- Throws:
IOExceptionOpenSearchException
-
get
public final GetSearchPipelineResponse get(Function<GetSearchPipelineRequest.Builder, ObjectBuilder<GetSearchPipelineRequest>> fn) throws IOException, OpenSearchExceptionRetrieves information about a specified search pipeline.- Parameters:
fn- a function that initializes a builder to create theGetSearchPipelineRequest- Throws:
IOExceptionOpenSearchException
-
get
Retrieves information about a specified search pipeline.- Throws:
IOExceptionOpenSearchException
-
put
public PutSearchPipelineResponse put(PutSearchPipelineRequest request) throws IOException, OpenSearchException Creates or replaces the specified search pipeline.- Throws:
IOExceptionOpenSearchException
-
put
public final PutSearchPipelineResponse put(Function<PutSearchPipelineRequest.Builder, ObjectBuilder<PutSearchPipelineRequest>> fn) throws IOException, OpenSearchExceptionCreates or replaces the specified search pipeline.- Parameters:
fn- a function that initializes a builder to create thePutSearchPipelineRequest- Throws:
IOExceptionOpenSearchException
-