Class ElasticsearchLicenseAsyncClient
java.lang.Object
co.elastic.clients.base.ApiClient
co.elastic.clients.elasticsearch.license.ElasticsearchLicenseAsyncClient
public class ElasticsearchLicenseAsyncClient extends ApiClient
Client for the license namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ElasticsearchLicenseAsyncClient(Transport transport)
-
Method Summary
Modifier and Type Method Description java.util.concurrent.CompletableFuture<DeleteResponse>
delete()
Deletes licensing information for the clusterjava.util.concurrent.CompletableFuture<GetResponse>
get(GetRequest request)
Retrieves licensing information for the clusterjava.util.concurrent.CompletableFuture<GetResponse>
get(java.util.function.Function<GetRequest.Builder,ObjectBuilder<GetRequest>> 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(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(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(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.Methods inherited from class co.elastic.clients.base.ApiClient
_transport, getDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchLicenseAsyncClient
-
-
Method Details
-
delete
Deletes licensing information for the cluster- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
get
public java.util.concurrent.CompletableFuture<GetResponse> get(GetRequest request) throws java.io.IOExceptionRetrieves licensing information for the cluster- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
get
public final java.util.concurrent.CompletableFuture<GetResponse> get(java.util.function.Function<GetRequest.Builder,ObjectBuilder<GetRequest>> fn) throws java.io.IOExceptionRetrieves licensing information for the cluster- 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
- See Also:
- Documentation on elastic.co
-
getBasicStatus
public java.util.concurrent.CompletableFuture<GetBasicStatusResponse> getBasicStatus() throws java.io.IOExceptionRetrieves information about the status of the basic license.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getTrialStatus
public java.util.concurrent.CompletableFuture<GetTrialStatusResponse> getTrialStatus() throws java.io.IOExceptionRetrieves information about the status of the trial license.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
post
public java.util.concurrent.CompletableFuture<PostResponse> post(PostRequest request) throws java.io.IOExceptionUpdates the license for the cluster.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
post
public final java.util.concurrent.CompletableFuture<PostResponse> post(java.util.function.Function<PostRequest.Builder,ObjectBuilder<PostRequest>> fn) throws java.io.IOExceptionUpdates the license for the cluster.- 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
- See Also:
- Documentation on elastic.co
-
postStartBasic
public java.util.concurrent.CompletableFuture<PostStartBasicResponse> postStartBasic(PostStartBasicRequest request) throws java.io.IOExceptionStarts an indefinite basic license.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
postStartBasic
public final java.util.concurrent.CompletableFuture<PostStartBasicResponse> postStartBasic(java.util.function.Function<PostStartBasicRequest.Builder,ObjectBuilder<PostStartBasicRequest>> fn) throws java.io.IOExceptionStarts an indefinite basic license.- 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
- See Also:
- Documentation on elastic.co
-
postStartTrial
public java.util.concurrent.CompletableFuture<PostStartTrialResponse> postStartTrial(PostStartTrialRequest request) throws java.io.IOExceptionstarts a limited time trial license.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
postStartTrial
public final java.util.concurrent.CompletableFuture<PostStartTrialResponse> postStartTrial(java.util.function.Function<PostStartTrialRequest.Builder,ObjectBuilder<PostStartTrialRequest>> fn) throws java.io.IOExceptionstarts a limited time trial license.- 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
- See Also:
- Documentation on elastic.co
-