Class OpenSearchIngestionAsyncClient
java.lang.Object
org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchIngestionAsyncClient>
org.opensearch.client.opensearch.ingestion.OpenSearchIngestionAsyncClient
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class OpenSearchIngestionAsyncClient
extends ApiClient<OpenSearchTransport,OpenSearchIngestionAsyncClient>
Client for the ingestion namespace.
-
Field Summary
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchIngestionAsyncClient(OpenSearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionUse 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 CompletableFuture<PauseResponse> Use this API to pause ingestion for a given index.pause(PauseRequest request) Use this API to pause ingestion for a given index.final CompletableFuture<ResumeResponse> Use 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
-
OpenSearchIngestionAsyncClient
-
OpenSearchIngestionAsyncClient
public OpenSearchIngestionAsyncClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public OpenSearchIngestionAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<OpenSearchTransport,OpenSearchIngestionAsyncClient>
-
getState
public CompletableFuture<GetStateResponse> getState(GetStateRequest request) throws IOException, OpenSearchException Use this API to retrieve the ingestion state for a given index.- Throws:
IOExceptionOpenSearchException
-
getState
public final CompletableFuture<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
public CompletableFuture<PauseResponse> pause(PauseRequest request) throws IOException, OpenSearchException Use this API to pause ingestion for a given index.- Throws:
IOExceptionOpenSearchException
-
pause
public final CompletableFuture<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
public CompletableFuture<ResumeResponse> resume(ResumeRequest request) throws IOException, OpenSearchException Use this API to resume ingestion for the given index.- Throws:
IOExceptionOpenSearchException
-
resume
public final CompletableFuture<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
-