Class LicenseInformation
java.lang.Object
co.elastic.clients.elasticsearch.license.get.LicenseInformation
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<LicenseInformation>Json deserializer forLicenseInformation -
Method Summary
Modifier and TypeMethodDescriptionfinal DateTimeThe date and time the license expires in ISO 8601 format.final LongThe date and time the license expires in milliseconds since the Unix epoch.final DateTimeRequired - The date and time the license was issued in ISO 8601 format.final longRequired - The date and time the license was issued in milliseconds since the Unix epoch.final StringissuedTo()Required - The name of the customer or organization that received the license.final Stringissuer()Required - The name of the organization that issued the license.final LongmaxNodes()The maximum number of nodes the license allows.final IntegerThe maximum number of resource units the license allows (for enterprise licenses only).static LicenseInformationrebuild()voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal longRequired - The date and time the license was started in milliseconds since the Unix epoch.final LicenseStatusstatus()Required - The status of the license.toString()final LicenseTypetype()Required - The type of the license.final Stringuid()Required - The unique identifier of the license.
-
Field Details
-
_DESERIALIZER
Json deserializer forLicenseInformation
-
-
Method Details
-
of
public static LicenseInformation of(Function<LicenseInformation.Builder, ObjectBuilder<LicenseInformation>> fn) -
expiryDate
The date and time the license expires in ISO 8601 format.API name:
expiry_date -
expiryDateInMillis
The date and time the license expires in milliseconds since the Unix epoch.API name:
expiry_date_in_millis -
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
Required - The name of the customer or organization that received the license.API name:
issued_to -
issuer
Required - The name of the organization that issued the license.API name:
issuer -
maxNodes
The maximum number of nodes the license allows.API name:
max_nodes -
maxResourceUnits
The maximum number of resource units the license allows (for enterprise licenses only).API name:
max_resource_units -
status
Required - The status of the license. For example,active, valid, invalid, or expired.API name:
status -
type
Required - The type of the license. For example, trial, basic, gold, platinum, or enterprise.API name:
type -
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
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
rebuild
- Returns:
- New
LicenseInformation.Builderinitialized with field values of this instance
-
setupLicenseInformationDeserializer
protected static void setupLicenseInformationDeserializer(ObjectDeserializer<LicenseInformation.Builder> op)
-