Class LicenseInformation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<LicenseInformation.Builder>
co.elastic.clients.elasticsearch.license.get.LicenseInformation.Builder
- All Implemented Interfaces:
WithJson<LicenseInformation.Builder>,ObjectBuilder<LicenseInformation>
- Enclosing class:
- LicenseInformation
public static class LicenseInformation.Builder
extends WithJsonObjectBuilderBase<LicenseInformation.Builder>
implements ObjectBuilder<LicenseInformation>
Builder for
LicenseInformation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aLicenseInformation.expiryDate(DateTime value) The date and time the license expires in ISO 8601 format.expiryDateInMillis(Long value) The date and time the license expires in milliseconds since the Unix epoch.Required - The date and time the license was issued in ISO 8601 format.issueDateInMillis(long value) Required - The date and time the license was issued in milliseconds since the Unix epoch.Required - The name of the customer or organization that received the license.Required - The name of the organization that issued the license.The maximum number of nodes the license allows.maxResourceUnits(Integer value) The maximum number of resource units the license allows (for enterprise licenses only).protected LicenseInformation.Builderself()startDateInMillis(long value) Required - The date and time the license was started in milliseconds since the Unix epoch.status(LicenseStatus value) Required - The status of the license.type(LicenseType value) Required - The type of the license.Required - The unique identifier of the license.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
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
Required - The date and time the license was started in milliseconds since the Unix epoch.API name:
start_date_in_millis -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<LicenseInformation.Builder>
-
build
Builds aLicenseInformation.- Specified by:
buildin interfaceObjectBuilder<LicenseInformation>- Throws:
NullPointerException- if some of the required fields are null.
-