Class ElasticsearchLicenseAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchLicenseAsyncClient>
co.elastic.clients.elasticsearch.license.ElasticsearchLicenseAsyncClient
public class ElasticsearchLicenseAsyncClient extends ApiClient<ElasticsearchTransport,ElasticsearchLicenseAsyncClient>
Client for the license namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
Constructors Constructor Description ElasticsearchLicenseAsyncClient(ElasticsearchTransport transport)
ElasticsearchLicenseAsyncClient(ElasticsearchTransport transport, TransportOptions transportOptions)
-
Method Summary
Modifier and Type Method Description java.util.concurrent.CompletableFuture<DeleteLicenseResponse>
delete()
Deletes licensing information for the clusterjava.util.concurrent.CompletableFuture<GetLicenseResponse>
get()
Retrieves licensing information for the clusterjava.util.concurrent.CompletableFuture<GetLicenseResponse>
get(GetLicenseRequest request)
Retrieves licensing information for the clusterjava.util.concurrent.CompletableFuture<GetLicenseResponse>
get(java.util.function.Function<GetLicenseRequest.Builder,ObjectBuilder<GetLicenseRequest>> fn)
Retrieves licensing information for the clusterjava.util.concurrent.CompletableFuture<GetBasicStatusResponse>
getBasicStatus()
Retrieves information about the status of the basic license.java.util.concurrent.CompletableFuture<GetTrialStatusResponse>
getTrialStatus()
Retrieves information about the status of the trial license.java.util.concurrent.CompletableFuture<PostResponse>
post()
Updates the license for the cluster.java.util.concurrent.CompletableFuture<PostResponse>
post(PostRequest request)
Updates the license for the cluster.java.util.concurrent.CompletableFuture<PostResponse>
post(java.util.function.Function<PostRequest.Builder,ObjectBuilder<PostRequest>> fn)
Updates the license for the cluster.java.util.concurrent.CompletableFuture<PostStartBasicResponse>
postStartBasic()
Starts an indefinite basic license.java.util.concurrent.CompletableFuture<PostStartBasicResponse>
postStartBasic(PostStartBasicRequest request)
Starts an indefinite basic license.java.util.concurrent.CompletableFuture<PostStartBasicResponse>
postStartBasic(java.util.function.Function<PostStartBasicRequest.Builder,ObjectBuilder<PostStartBasicRequest>> fn)
Starts an indefinite basic license.java.util.concurrent.CompletableFuture<PostStartTrialResponse>
postStartTrial()
starts a limited time trial license.java.util.concurrent.CompletableFuture<PostStartTrialResponse>
postStartTrial(PostStartTrialRequest request)
starts a limited time trial license.java.util.concurrent.CompletableFuture<PostStartTrialResponse>
postStartTrial(java.util.function.Function<PostStartTrialRequest.Builder,ObjectBuilder<PostStartTrialRequest>> fn)
starts a limited time trial license.ElasticsearchLicenseAsyncClient
withTransportOptions(TransportOptions transportOptions)
Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializer, withTransportOptions
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchLicenseAsyncClient
-
ElasticsearchLicenseAsyncClient
public ElasticsearchLicenseAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchLicenseAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions)Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,ElasticsearchLicenseAsyncClient>
-
delete
Deletes licensing information for the cluster- See Also:
- Documentation on elastic.co
-
get
Retrieves licensing information for the cluster- See Also:
- Documentation on elastic.co
-
get
public final java.util.concurrent.CompletableFuture<GetLicenseResponse> get(java.util.function.Function<GetLicenseRequest.Builder,ObjectBuilder<GetLicenseRequest>> fn)Retrieves licensing information for the cluster- Parameters:
fn
- a function that initializes a builder to create theGetLicenseRequest
- See Also:
- Documentation on elastic.co
-
get
Retrieves licensing information for the cluster- See Also:
- Documentation on elastic.co
-
getBasicStatus
Retrieves information about the status of the basic license.- See Also:
- Documentation on elastic.co
-
getTrialStatus
Retrieves information about the status of the trial license.- See Also:
- Documentation on elastic.co
-
post
Updates the license for the cluster.- See Also:
- Documentation on elastic.co
-
post
public final java.util.concurrent.CompletableFuture<PostResponse> post(java.util.function.Function<PostRequest.Builder,ObjectBuilder<PostRequest>> fn)Updates the license for the cluster.- Parameters:
fn
- a function that initializes a builder to create thePostRequest
- See Also:
- Documentation on elastic.co
-
post
Updates the license for the cluster.- See Also:
- Documentation on elastic.co
-
postStartBasic
public java.util.concurrent.CompletableFuture<PostStartBasicResponse> postStartBasic(PostStartBasicRequest request)Starts an indefinite basic license.- See Also:
- Documentation on elastic.co
-
postStartBasic
public final java.util.concurrent.CompletableFuture<PostStartBasicResponse> postStartBasic(java.util.function.Function<PostStartBasicRequest.Builder,ObjectBuilder<PostStartBasicRequest>> fn)Starts an indefinite basic license.- Parameters:
fn
- a function that initializes a builder to create thePostStartBasicRequest
- See Also:
- Documentation on elastic.co
-
postStartBasic
Starts an indefinite basic license.- See Also:
- Documentation on elastic.co
-
postStartTrial
public java.util.concurrent.CompletableFuture<PostStartTrialResponse> postStartTrial(PostStartTrialRequest request)starts a limited time trial license.- See Also:
- Documentation on elastic.co
-
postStartTrial
public final java.util.concurrent.CompletableFuture<PostStartTrialResponse> postStartTrial(java.util.function.Function<PostStartTrialRequest.Builder,ObjectBuilder<PostStartTrialRequest>> fn)starts a limited time trial license.- Parameters:
fn
- a function that initializes a builder to create thePostStartTrialRequest
- See Also:
- Documentation on elastic.co
-
postStartTrial
starts a limited time trial license.- See Also:
- Documentation on elastic.co
-