Class ElasticsearchQueryRulesetAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchQueryRulesetAsyncClient>
co.elastic.clients.elasticsearch.query_ruleset.ElasticsearchQueryRulesetAsyncClient
public class ElasticsearchQueryRulesetAsyncClient
extends ApiClient<ElasticsearchTransport,ElasticsearchQueryRulesetAsyncClient>
Client for the query_ruleset namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchQueryRulesetAsyncClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptiondelete(DeleteQueryRulesetRequest request) Deletes a query ruleset.Deletes a query ruleset.get(GetQueryRulesetRequest request) Returns the details about a query ruleset.Returns the details about a query ruleset.list()Lists query rulesets.list(ListRequest request) Lists query rulesets.final CompletableFuture<ListResponse>Lists query rulesets.put(PutRequest request) Creates or updates a query ruleset.final CompletableFuture<PutResponse>Creates or updates a query ruleset.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchQueryRulesetAsyncClient
-
ElasticsearchQueryRulesetAsyncClient
public ElasticsearchQueryRulesetAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchQueryRulesetAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchQueryRulesetAsyncClient>
-
delete
Deletes a query ruleset.- See Also:
-
delete
public final CompletableFuture<DeleteQueryRulesetResponse> delete(Function<DeleteQueryRulesetRequest.Builder, ObjectBuilder<DeleteQueryRulesetRequest>> fn) Deletes a query ruleset.- Parameters:
fn- a function that initializes a builder to create theDeleteQueryRulesetRequest- See Also:
-
get
Returns the details about a query ruleset.- See Also:
-
get
public final CompletableFuture<GetQueryRulesetResponse> get(Function<GetQueryRulesetRequest.Builder, ObjectBuilder<GetQueryRulesetRequest>> fn) Returns the details about a query ruleset.- Parameters:
fn- a function that initializes a builder to create theGetQueryRulesetRequest- See Also:
-
list
Lists query rulesets.- See Also:
-
list
public final CompletableFuture<ListResponse> list(Function<ListRequest.Builder, ObjectBuilder<ListRequest>> fn) Lists query rulesets.- Parameters:
fn- a function that initializes a builder to create theListRequest- See Also:
-
list
Lists query rulesets.- See Also:
-
put
Creates or updates a query ruleset.- See Also:
-
put
public final CompletableFuture<PutResponse> put(Function<PutRequest.Builder, ObjectBuilder<PutRequest>> fn) Creates or updates a query ruleset.- Parameters:
fn- a function that initializes a builder to create thePutRequest- See Also:
-