Class GetLicenseRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<GetLicenseRequest.Builder>
co.elastic.clients.elasticsearch.license.GetLicenseRequest.Builder
- All Implemented Interfaces:
WithJson<GetLicenseRequest.Builder>,ObjectBuilder<GetLicenseRequest>
- Enclosing class:
- GetLicenseRequest
public static class GetLicenseRequest.Builder extends RequestBase.AbstractBuilder<GetLicenseRequest.Builder> implements ObjectBuilder<GetLicenseRequest>
Builder for
GetLicenseRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description GetLicenseRequest.BuilderacceptEnterprise(java.lang.Boolean value)If the active license is an enterprise license, return type as 'enterprise' (default: false)GetLicenseRequestbuild()Builds aGetLicenseRequest.GetLicenseRequest.Builderlocal(java.lang.Boolean value)Return local information, do not retrieve the state from master node (default: false)protected GetLicenseRequest.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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
If the active license is an enterprise license, return type as 'enterprise' (default: false)API name:
accept_enterprise -
local
Return local information, do not retrieve the state from master node (default: false)API name:
local -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<GetLicenseRequest.Builder>
-
build
Builds aGetLicenseRequest.- Specified by:
buildin interfaceObjectBuilder<GetLicenseRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-