Class ElasticsearchProjectAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchProjectAsyncClient>
co.elastic.clients.elasticsearch.project.ElasticsearchProjectAsyncClient
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ElasticsearchProjectAsyncClient
extends ApiClient<ElasticsearchTransport,ElasticsearchProjectAsyncClient>
Client for the project namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchProjectAsyncClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionCreate or update project routing expressions.Create or update project routing expressions.createManyRouting(Function<CreateManyRoutingRequest.Builder, ObjectBuilder<CreateManyRoutingRequest>> fn) Create or update project routing expressions.createRouting(CreateRoutingRequest request) Create or update a project routing expression.Create or update a project routing expression.deleteRouting(DeleteRoutingRequest request) Delete a project routing expression.Delete a project routing expression.Get project routing expressions.getRouting(GetRoutingRequest request) Get a project routing expression.Get a project routing expression.tags()Get tags.tags(TagsRequest request) Get tags.final CompletableFuture<TagsResponse>Get tags.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, close, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchProjectAsyncClient
-
ElasticsearchProjectAsyncClient
public ElasticsearchProjectAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchProjectAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchProjectAsyncClient>
-
createManyRouting
public CompletableFuture<CreateManyRoutingResponse> createManyRouting(CreateManyRoutingRequest request) Create or update project routing expressions.- See Also:
-
createManyRouting
public final CompletableFuture<CreateManyRoutingResponse> createManyRouting(Function<CreateManyRoutingRequest.Builder, ObjectBuilder<CreateManyRoutingRequest>> fn) Create or update project routing expressions.- Parameters:
fn- a function that initializes a builder to create theCreateManyRoutingRequest- See Also:
-
createManyRouting
Create or update project routing expressions.- See Also:
-
createRouting
Create or update a project routing expression.- See Also:
-
createRouting
public final CompletableFuture<CreateRoutingResponse> createRouting(Function<CreateRoutingRequest.Builder, ObjectBuilder<CreateRoutingRequest>> fn) Create or update a project routing expression.- Parameters:
fn- a function that initializes a builder to create theCreateRoutingRequest- See Also:
-
deleteRouting
Delete a project routing expression.- See Also:
-
deleteRouting
public final CompletableFuture<DeleteRoutingResponse> deleteRouting(Function<DeleteRoutingRequest.Builder, ObjectBuilder<DeleteRoutingRequest>> fn) Delete a project routing expression.- Parameters:
fn- a function that initializes a builder to create theDeleteRoutingRequest- See Also:
-
getManyRouting
Get project routing expressions.- See Also:
-
getRouting
Get a project routing expression.- See Also:
-
getRouting
public final CompletableFuture<GetRoutingResponse> getRouting(Function<GetRoutingRequest.Builder, ObjectBuilder<GetRoutingRequest>> fn) Get a project routing expression.- Parameters:
fn- a function that initializes a builder to create theGetRoutingRequest- See Also:
-
tags
Get tags.Get the tags that are defined for the project.
- See Also:
-
tags
public final CompletableFuture<TagsResponse> tags(Function<TagsRequest.Builder, ObjectBuilder<TagsRequest>> fn) Get tags.Get the tags that are defined for the project.
- Parameters:
fn- a function that initializes a builder to create theTagsRequest- See Also:
-
tags
Get tags.Get the tags that are defined for the project.
- See Also:
-