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 - If true, adaptive_allocations is enabledmaxNumberOfAllocations(Integer value) Specifies the maximum number of allocations to scale to.minNumberOfAllocations(Integer value) Specifies the minimum number of allocations to scale to.protected 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 - If true, adaptive_allocations is enabledAPI name:
enabled -
minNumberOfAllocations
Specifies the minimum number of allocations to scale to. If set, it must be greater than or equal to 0. If not defined, the deployment scales to 0.API name:
min_number_of_allocations -
maxNumberOfAllocations
Specifies the maximum number of allocations to scale to. If set, it must be greater than or equal to min_number_of_allocations.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.
-