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