Class LicenseInformation

java.lang.Object
co.elastic.clients.elasticsearch.license.get.LicenseInformation
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class LicenseInformation extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • expiryDate

      @Nullable public final DateTime expiryDate()
      The date and time the license expires in ISO 8601 format.

      API name: expiry_date

    • expiryDateInMillis

      @Nullable public final Long expiryDateInMillis()
      The date and time the license expires in milliseconds since the Unix epoch.

      API name: expiry_date_in_millis

    • issueDate

      public final DateTime issueDate()
      Required - The date and time the license was issued in ISO 8601 format.

      API name: issue_date

    • issueDateInMillis

      public final long issueDateInMillis()
      Required - The date and time the license was issued in milliseconds since the Unix epoch.

      API name: issue_date_in_millis

    • issuedTo

      public final String issuedTo()
      Required - The name of the customer or organization that received the license.

      API name: issued_to

    • issuer

      public final String issuer()
      Required - The name of the organization that issued the license.

      API name: issuer

    • maxNodes

      @Nullable public final Long maxNodes()
      The maximum number of nodes the license allows.

      API name: max_nodes

    • maxResourceUnits

      @Nullable public final Integer maxResourceUnits()
      The maximum number of resource units the license allows (for enterprise licenses only).

      API name: max_resource_units

    • status

      public final LicenseStatus status()
      Required - The status of the license. For example,active, valid, invalid, or expired.

      API name: status

    • type

      public final LicenseType type()
      Required - The type of the license. For example, trial, basic, gold, platinum, or enterprise.

      API name: type

    • uid

      public final String uid()
      Required - The unique identifier of the license.

      API name: uid

    • startDateInMillis

      public final long startDateInMillis()
      Required - The date and time the license was started in milliseconds since the Unix epoch.

      API name: start_date_in_millis

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • rebuild

      public LicenseInformation.Builder rebuild()
      Returns:
      New LicenseInformation.Builder initialized with field values of this instance
    • setupLicenseInformationDeserializer

      protected static void setupLicenseInformationDeserializer(ObjectDeserializer<LicenseInformation.Builder> op)