Class ElasticsearchLicenseClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchLicenseClient>
co.elastic.clients.elasticsearch.license.ElasticsearchLicenseClient
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ElasticsearchLicenseClient
extends ApiClient<ElasticsearchTransport,ElasticsearchLicenseClient>
Client for the license namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchLicenseClient(ElasticsearchTransport transport) ElasticsearchLicenseClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptiondelete()Deletes licensing information for the clusterget()Retrieves licensing information for the clusterget(GetLicenseRequest request) Retrieves licensing information for the clusterfinal GetLicenseResponseRetrieves licensing information for the clusterRetrieves information about the status of the basic license.Retrieves information about the status of the trial license.post()Updates the license for the cluster.post(PostRequest request) Updates the license for the cluster.final PostResponseUpdates the license for the cluster.Starts an indefinite basic license.postStartBasic(PostStartBasicRequest request) Starts an indefinite basic license.final PostStartBasicResponseStarts an indefinite basic license.starts a limited time trial license.postStartTrial(PostStartTrialRequest request) starts a limited time trial license.final PostStartTrialResponsestarts a limited time trial license.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, close, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchLicenseClient
-
ElasticsearchLicenseClient
public ElasticsearchLicenseClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchLicenseClient>
-
delete
Deletes licensing information for the cluster- Throws:
IOExceptionElasticsearchException- See Also:
-
get
Retrieves licensing information for the cluster- Throws:
IOExceptionElasticsearchException- See Also:
-
get
public final GetLicenseResponse get(Function<GetLicenseRequest.Builder, ObjectBuilder<GetLicenseRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves licensing information for the cluster- Parameters:
fn- a function that initializes a builder to create theGetLicenseRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
get
Retrieves licensing information for the cluster- Throws:
IOExceptionElasticsearchException- See Also:
-
getBasicStatus
Retrieves information about the status of the basic license.- Throws:
IOExceptionElasticsearchException- See Also:
-
getTrialStatus
Retrieves information about the status of the trial license.- Throws:
IOExceptionElasticsearchException- See Also:
-
post
Updates the license for the cluster.- Throws:
IOExceptionElasticsearchException- See Also:
-
post
public final PostResponse post(Function<PostRequest.Builder, ObjectBuilder<PostRequest>> fn) throws IOException, ElasticsearchExceptionUpdates the license for the cluster.- Parameters:
fn- a function that initializes a builder to create thePostRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
post
Updates the license for the cluster.- Throws:
IOExceptionElasticsearchException- See Also:
-
postStartBasic
public PostStartBasicResponse postStartBasic(PostStartBasicRequest request) throws IOException, ElasticsearchException Starts an indefinite basic license.- Throws:
IOExceptionElasticsearchException- See Also:
-
postStartBasic
public final PostStartBasicResponse postStartBasic(Function<PostStartBasicRequest.Builder, ObjectBuilder<PostStartBasicRequest>> fn) throws IOException, ElasticsearchExceptionStarts an indefinite basic license.- Parameters:
fn- a function that initializes a builder to create thePostStartBasicRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
postStartBasic
Starts an indefinite basic license.- Throws:
IOExceptionElasticsearchException- See Also:
-
postStartTrial
public PostStartTrialResponse postStartTrial(PostStartTrialRequest request) throws IOException, ElasticsearchException starts a limited time trial license.- Throws:
IOExceptionElasticsearchException- See Also:
-
postStartTrial
public final PostStartTrialResponse postStartTrial(Function<PostStartTrialRequest.Builder, ObjectBuilder<PostStartTrialRequest>> fn) throws IOException, ElasticsearchExceptionstarts a limited time trial license.- Parameters:
fn- a function that initializes a builder to create thePostStartTrialRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
postStartTrial
starts a limited time trial license.- Throws:
IOExceptionElasticsearchException- See Also:
-