Class OpenSearchIngestionClient
java.lang.Object
org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchIngestionClient>
org.opensearch.client.opensearch.ingestion.OpenSearchIngestionClient
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class OpenSearchIngestionClient
extends ApiClient<OpenSearchTransport,OpenSearchIngestionClient>
Client for the ingestion namespace.
-
Field Summary
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchIngestionClient(OpenSearchTransport transport) OpenSearchIngestionClient(OpenSearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionfinal GetStateResponseUse this API to retrieve the ingestion state for a given index.getState(GetStateRequest request) Use this API to retrieve the ingestion state for a given index.final PauseResponseUse this API to pause ingestion for a given index.pause(PauseRequest request) Use this API to pause ingestion for a given index.final ResumeResponseUse this API to resume ingestion for the given index.resume(ResumeRequest request) Use this API to resume ingestion for the given index.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer
-
Constructor Details
-
OpenSearchIngestionClient
-
OpenSearchIngestionClient
public OpenSearchIngestionClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<OpenSearchTransport,OpenSearchIngestionClient>
-
getState
Use this API to retrieve the ingestion state for a given index.- Throws:
IOExceptionOpenSearchException
-
getState
public final GetStateResponse getState(Function<GetStateRequest.Builder, ObjectBuilder<GetStateRequest>> fn) throws IOException, OpenSearchExceptionUse this API to retrieve the ingestion state for a given index.- Parameters:
fn- a function that initializes a builder to create theGetStateRequest- Throws:
IOExceptionOpenSearchException
-
pause
Use this API to pause ingestion for a given index.- Throws:
IOExceptionOpenSearchException
-
pause
public final PauseResponse pause(Function<PauseRequest.Builder, ObjectBuilder<PauseRequest>> fn) throws IOException, OpenSearchExceptionUse this API to pause ingestion for a given index.- Parameters:
fn- a function that initializes a builder to create thePauseRequest- Throws:
IOExceptionOpenSearchException
-
resume
Use this API to resume ingestion for the given index.- Throws:
IOExceptionOpenSearchException
-
resume
public final ResumeResponse resume(Function<ResumeRequest.Builder, ObjectBuilder<ResumeRequest>> fn) throws IOException, OpenSearchExceptionUse this API to resume ingestion for the given index.- Parameters:
fn- a function that initializes a builder to create theResumeRequest- Throws:
IOExceptionOpenSearchException
-