Class FeaturesAsyncClient
java.lang.Object
org.opensearch.client.base.ApiClient<FeaturesAsyncClient>
org.opensearch.client.opensearch.api.features.FeaturesAsyncClient
public class FeaturesAsyncClient extends ApiClient<FeaturesAsyncClient>
Client for the features namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description FeaturesAsyncClient(Transport transport)FeaturesAsyncClient(Transport transport, org.opensearch.client.RequestOptions options) -
Method Summary
Modifier and Type Method Description java.util.concurrent.CompletableFuture<GetFeaturesResponse>getFeatures(java.util.function.Function<GetFeaturesRequest.Builder,ObjectBuilder<GetFeaturesRequest>> fn)Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshotjava.util.concurrent.CompletableFuture<GetFeaturesResponse>getFeatures(GetFeaturesRequest request)Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshotjava.util.concurrent.CompletableFuture<ResetFeaturesResponse>resetFeatures(java.util.function.Function<ResetFeaturesRequest.Builder,ObjectBuilder<ResetFeaturesRequest>> fn)Resets the internal state of features, usually by deleting system indicesjava.util.concurrent.CompletableFuture<ResetFeaturesResponse>resetFeatures(ResetFeaturesRequest request)Resets the internal state of features, usually by deleting system indicesFeaturesAsyncClientwithRequestOptions(java.util.function.Function<org.opensearch.client.RequestOptions.Builder,org.opensearch.client.RequestOptions.Builder> fn)Creates a newFeaturesAsyncClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options, inheriting existing options.FeaturesAsyncClientwithRequestOptions(org.opensearch.client.RequestOptions options)Creates a newFeaturesAsyncClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options.
-
Constructor Details
-
Method Details
-
getFeatures
public java.util.concurrent.CompletableFuture<GetFeaturesResponse> getFeatures(GetFeaturesRequest request) throws java.io.IOExceptionGets a list of features which can be included in snapshots using the feature_states field when creating a snapshot- Throws:
java.io.IOException
-
getFeatures
public final java.util.concurrent.CompletableFuture<GetFeaturesResponse> getFeatures(java.util.function.Function<GetFeaturesRequest.Builder,ObjectBuilder<GetFeaturesRequest>> fn) throws java.io.IOExceptionGets a list of features which can be included in snapshots using the feature_states field when creating a snapshot- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
-
resetFeatures
public java.util.concurrent.CompletableFuture<ResetFeaturesResponse> resetFeatures(ResetFeaturesRequest request) throws java.io.IOExceptionResets the internal state of features, usually by deleting system indices- Throws:
java.io.IOException
-
resetFeatures
public final java.util.concurrent.CompletableFuture<ResetFeaturesResponse> resetFeatures(java.util.function.Function<ResetFeaturesRequest.Builder,ObjectBuilder<ResetFeaturesRequest>> fn) throws java.io.IOExceptionResets the internal state of features, usually by deleting system indices- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
-
withRequestOptions
public FeaturesAsyncClient withRequestOptions(@Nullable org.opensearch.client.RequestOptions options)Creates a newFeaturesAsyncClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options.- Specified by:
withRequestOptionsin classApiClient<FeaturesAsyncClient>
-
withRequestOptions
public FeaturesAsyncClient withRequestOptions(java.util.function.Function<org.opensearch.client.RequestOptions.Builder,org.opensearch.client.RequestOptions.Builder> fn)Creates a newFeaturesAsyncClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options, inheriting existing options.- Parameters:
fn- a function taking an options builder initialized with the current request options, or initialized with default values.
-