Class GetLicenseRequest.Builder

java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.license.GetLicenseRequest.Builder
All Implemented Interfaces:
ObjectBuilder<GetLicenseRequest>
Enclosing class:
GetLicenseRequest

public static class GetLicenseRequest.Builder
extends ObjectBuilderBase
implements ObjectBuilder<GetLicenseRequest>
Builder for GetLicenseRequest.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • acceptEnterprise

      @Deprecated public final GetLicenseRequest.Builder acceptEnterprise​(@Nullable java.lang.Boolean value)
      Deprecated.
      7.6.0
      If true, this parameter returns enterprise for Enterprise license types. If false, this parameter returns platinum for both platinum and enterprise license types. This behavior is maintained for backwards compatibility. This parameter is deprecated and will always be set to true in 8.x.

      API name: accept_enterprise

    • local

      public final GetLicenseRequest.Builder local​(@Nullable java.lang.Boolean value)
      Specifies whether to retrieve local information. The default value is false, which means the information is retrieved from the master node.

      API name: local

    • build

      public GetLicenseRequest build()
      Specified by:
      build in interface ObjectBuilder<GetLicenseRequest>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.