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
_transport, _transportOptions, getDeserializer
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
public java.util.concurrent.CompletableFuture<DeleteLicenseResponse> delete() throws java.io.IOException, ElasticsearchExceptionDeletes licensing information for the cluster- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
get
public java.util.concurrent.CompletableFuture<GetLicenseResponse> get(GetLicenseRequest request) throws java.io.IOException, ElasticsearchExceptionRetrieves licensing information for the cluster- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
get
public final java.util.concurrent.CompletableFuture<GetLicenseResponse> get(java.util.function.Function<GetLicenseRequest.Builder,ObjectBuilder<GetLicenseRequest>> fn) throws java.io.IOException, ElasticsearchExceptionRetrieves licensing information for the cluster- Parameters:
fn
- a function that initializes a builder to create theGetLicenseRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
get
public java.util.concurrent.CompletableFuture<GetLicenseResponse> get() throws java.io.IOException, ElasticsearchExceptionRetrieves licensing information for the cluster- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getBasicStatus
public java.util.concurrent.CompletableFuture<GetBasicStatusResponse> getBasicStatus() throws java.io.IOException, ElasticsearchExceptionRetrieves information about the status of the basic license.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getTrialStatus
public java.util.concurrent.CompletableFuture<GetTrialStatusResponse> getTrialStatus() throws java.io.IOException, ElasticsearchExceptionRetrieves information about the status of the trial license.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
post
public java.util.concurrent.CompletableFuture<PostResponse> post(PostRequest request) throws java.io.IOException, ElasticsearchExceptionUpdates the license for the cluster.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionUpdates the license for the cluster.- Parameters:
fn
- a function that initializes a builder to create thePostRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
post
public java.util.concurrent.CompletableFuture<PostResponse> post() throws java.io.IOException, ElasticsearchExceptionUpdates the license for the cluster.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
postStartBasic
public java.util.concurrent.CompletableFuture<PostStartBasicResponse> postStartBasic(PostStartBasicRequest request) throws java.io.IOException, ElasticsearchExceptionStarts an indefinite basic license.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionStarts an indefinite basic license.- Parameters:
fn
- a function that initializes a builder to create thePostStartBasicRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
postStartBasic
public java.util.concurrent.CompletableFuture<PostStartBasicResponse> postStartBasic() throws java.io.IOException, ElasticsearchExceptionStarts an indefinite basic license.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
postStartTrial
public java.util.concurrent.CompletableFuture<PostStartTrialResponse> postStartTrial(PostStartTrialRequest request) throws java.io.IOException, ElasticsearchExceptionstarts a limited time trial license.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionstarts a limited time trial license.- Parameters:
fn
- a function that initializes a builder to create thePostStartTrialRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
postStartTrial
public java.util.concurrent.CompletableFuture<PostStartTrialResponse> postStartTrial() throws java.io.IOException, ElasticsearchExceptionstarts a limited time trial license.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-