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 DeleteResponsedelete()Deletes licensing information for the clusterGetResponseget(GetRequest request)Retrieves licensing information for the clusterGetResponseget(java.util.function.Function<GetRequest.Builder,ObjectBuilder<GetRequest>> fn)Retrieves licensing information for the clusterGetBasicStatusResponsegetBasicStatus()Retrieves information about the status of the basic license.GetTrialStatusResponsegetTrialStatus()Retrieves information about the status of the trial license.PostResponsepost(PostRequest request)Updates the license for the cluster.PostResponsepost(java.util.function.Function<PostRequest.Builder,ObjectBuilder<PostRequest>> fn)Updates the license for the cluster.PostStartBasicResponsepostStartBasic(PostStartBasicRequest request)Starts an indefinite basic license.PostStartBasicResponsepostStartBasic(java.util.function.Function<PostStartBasicRequest.Builder,ObjectBuilder<PostStartBasicRequest>> fn)Starts an indefinite basic license.PostStartTrialResponsepostStartTrial(PostStartTrialRequest request)starts a limited time trial license.PostStartTrialResponsepostStartTrial(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, getDeserializerMethods 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
-