The basic status of the license can be retrieved as follows:
GetBasicStatusResponse response = client.license().getBasicStatus(RequestOptions.DEFAULT);
The returned GetTrialStatusResponse holds only a boolean flag:
GetTrialStatusResponse
boolean
boolean eligibleToStartbasic = response.isEligibleToStartBasic();
Whether the license is eligible to start basic or not
Most Popular
Video
Get Started with Elasticsearch
Intro to Kibana
ELK for Logs & Metrics