Class FeaturesClient
java.lang.Object
org.opensearch.client.base.ApiClient<FeaturesClient>
org.opensearch.client.opensearch.api.features.FeaturesClient
public class FeaturesClient extends ApiClient<FeaturesClient>
Client for the features namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description FeaturesClient(Transport transport)FeaturesClient(Transport transport, org.opensearch.client.RequestOptions options) -
Method Summary
Modifier and Type Method Description GetFeaturesResponsegetFeatures(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 snapshotGetFeaturesResponsegetFeatures(GetFeaturesRequest request)Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshotResetFeaturesResponseresetFeatures(java.util.function.Function<ResetFeaturesRequest.Builder,ObjectBuilder<ResetFeaturesRequest>> fn)Resets the internal state of features, usually by deleting system indicesResetFeaturesResponseresetFeatures(ResetFeaturesRequest request)Resets the internal state of features, usually by deleting system indicesFeaturesClientwithRequestOptions(java.util.function.Function<org.opensearch.client.RequestOptions.Builder,org.opensearch.client.RequestOptions.Builder> fn)Creates a newFeaturesClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options, inheriting existing options.FeaturesClientwithRequestOptions(org.opensearch.client.RequestOptions options)Creates a newFeaturesClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options.
-
Constructor Details
-
Method Details
-
getFeatures
Gets 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 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 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 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
Creates a newFeaturesClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options.- Specified by:
withRequestOptionsin classApiClient<FeaturesClient>
-
withRequestOptions
public FeaturesClient withRequestOptions(java.util.function.Function<org.opensearch.client.RequestOptions.Builder,org.opensearch.client.RequestOptions.Builder> fn)Creates a newFeaturesClient(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.
-