Class GetLicenseRequest.Builder

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

public static class GetLicenseRequest.Builder
extends java.lang.Object
implements ObjectBuilder<GetLicenseRequest>
Builder for GetLicenseRequest.
  • Constructor Summary

    Constructors
    Constructor Description
    Builder()  
  • Method Summary

    Modifier and Type Method Description
    GetLicenseRequest.Builder acceptEnterprise​(java.lang.Boolean value)
    If the active license is an enterprise license, return type as 'enterprise' (default: false)
    GetLicenseRequest build()
    GetLicenseRequest.Builder local​(java.lang.Boolean value)
    Return local information, do not retrieve the state from master node (default: false)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • acceptEnterprise

      public GetLicenseRequest.Builder acceptEnterprise​(@Nullable java.lang.Boolean value)
      If the active license is an enterprise license, return type as 'enterprise' (default: false)

      API name: accept_enterprise

    • local

      public GetLicenseRequest.Builder local​(@Nullable java.lang.Boolean value)
      Return local information, do not retrieve the state from master node (default: false)

      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.