Class AdaptiveAllocations
java.lang.Object
co.elastic.clients.elasticsearch.inference.AdaptiveAllocations
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<AdaptiveAllocations>
Json deserializer forAdaptiveAllocations
-
Method Summary
Modifier and TypeMethodDescriptionfinal Boolean
enabled()
Turn onadaptive_allocations
.final Integer
The maximum number of allocations to scale to.final Integer
The minimum number of allocations to scale to.static AdaptiveAllocations
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forAdaptiveAllocations
-
-
Method Details
-
of
public static AdaptiveAllocations of(Function<AdaptiveAllocations.Builder, ObjectBuilder<AdaptiveAllocations>> fn) -
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
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupAdaptiveAllocationsDeserializer
protected static void setupAdaptiveAllocationsDeserializer(ObjectDeserializer<AdaptiveAllocations.Builder> op)
-