Class AdaptiveAllocations.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<AdaptiveAllocations.Builder>
co.elastic.clients.elasticsearch.inference.AdaptiveAllocations.Builder
- All Implemented Interfaces:
WithJson<AdaptiveAllocations.Builder>
,ObjectBuilder<AdaptiveAllocations>
- Enclosing class:
- AdaptiveAllocations
public static class AdaptiveAllocations.Builder
extends WithJsonObjectBuilderBase<AdaptiveAllocations.Builder>
implements ObjectBuilder<AdaptiveAllocations>
Builder for
AdaptiveAllocations
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aAdaptiveAllocations
.Turn onadaptive_allocations
.maxNumberOfAllocations
(Integer value) The maximum number of allocations to scale to.minNumberOfAllocations
(Integer value) The minimum number of allocations to scale to.protected AdaptiveAllocations.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
Turn onadaptive_allocations
.API name:
enabled
-
maxNumberOfAllocations
The maximum number of allocations to scale to. If set, it must be greater than or equal tomin_number_of_allocations
.API name:
max_number_of_allocations
-
minNumberOfAllocations
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
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<AdaptiveAllocations.Builder>
-
build
Builds aAdaptiveAllocations
.- Specified by:
build
in interfaceObjectBuilder<AdaptiveAllocations>
- Throws:
NullPointerException
- if some of the required fields are null.
-