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 Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description GetLicenseRequest.Builder
acceptEnterprise(java.lang.Boolean value)
Deprecated.7.6.0GetLicenseRequest
build()
Builds aGetLicenseRequest
.GetLicenseRequest.Builder
local(java.lang.Boolean value)
Specifies whether to retrieve local information.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
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
@Deprecated public final GetLicenseRequest.Builder acceptEnterprise(@Nullable java.lang.Boolean value)Deprecated.7.6.0Iftrue
, this parameter returns enterprise for Enterprise license types. Iffalse
, 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
Specifies whether to retrieve local information. The default value isfalse
, which means the information is retrieved from the master node.API name:
local
-
build
Builds aGetLicenseRequest
.- Specified by:
build
in interfaceObjectBuilder<GetLicenseRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-