Class ElasticsearchLicenseClient
java.lang.Object
co.elastic.clients.base.ApiClient
co.elastic.clients.elasticsearch.license.ElasticsearchLicenseClient
public class ElasticsearchLicenseClient extends ApiClient
Client for the license namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ElasticsearchLicenseClient(Transport transport)
-
Method Summary
Modifier and Type Method Description DeleteResponse
delete()
Deletes licensing information for the clusterGetResponse
get(GetRequest request)
Retrieves licensing information for the clusterGetResponse
get(java.util.function.Function<GetRequest.Builder,ObjectBuilder<GetRequest>> fn)
Retrieves licensing information for the clusterGetBasicStatusResponse
getBasicStatus()
Retrieves information about the status of the basic license.GetTrialStatusResponse
getTrialStatus()
Retrieves information about the status of the trial license.PostResponse
post(PostRequest request)
Updates the license for the cluster.PostResponse
post(java.util.function.Function<PostRequest.Builder,ObjectBuilder<PostRequest>> fn)
Updates the license for the cluster.PostStartBasicResponse
postStartBasic(PostStartBasicRequest request)
Starts an indefinite basic license.PostStartBasicResponse
postStartBasic(java.util.function.Function<PostStartBasicRequest.Builder,ObjectBuilder<PostStartBasicRequest>> fn)
Starts an indefinite basic license.PostStartTrialResponse
postStartTrial(PostStartTrialRequest request)
starts a limited time trial license.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
-
ElasticsearchLicenseClient
-
-
Method Details
-
delete
Deletes licensing information for the cluster- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
get
Retrieves licensing information for the cluster- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
get
public final 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
Retrieves information about the status of the basic license.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getTrialStatus
Retrieves information about the status of the trial license.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
post
Updates the license for the cluster.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
post
public final 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 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 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 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 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
-