Class AdaptiveAllocationsSettings.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<AdaptiveAllocationsSettings.Builder>
co.elastic.clients.elasticsearch.ml.AdaptiveAllocationsSettings.Builder
- All Implemented Interfaces:
WithJson<AdaptiveAllocationsSettings.Builder>,ObjectBuilder<AdaptiveAllocationsSettings>
- Enclosing class:
- AdaptiveAllocationsSettings
public static class AdaptiveAllocationsSettings.Builder
extends WithJsonObjectBuilderBase<AdaptiveAllocationsSettings.Builder>
implements ObjectBuilder<AdaptiveAllocationsSettings>
Builder for
AdaptiveAllocationsSettings.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aAdaptiveAllocationsSettings.enabled(boolean value) Required - API name:enabledmaxNumberOfAllocations(Integer value) API name:max_number_of_allocationsminNumberOfAllocations(Integer value) API name:min_number_of_allocationsprotected AdaptiveAllocationsSettings.Builderself()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
-
enabled
Required - API name:enabled -
minNumberOfAllocations
API name:min_number_of_allocations -
maxNumberOfAllocations
API name:max_number_of_allocations -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<AdaptiveAllocationsSettings.Builder>
-
build
Builds aAdaptiveAllocationsSettings.- Specified by:
buildin interfaceObjectBuilder<AdaptiveAllocationsSettings>- Throws:
NullPointerException- if some of the required fields are null.
-