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 Booleanenabled()Turn onadaptive_allocations.final IntegerThe maximum number of allocations to scale to.final IntegerThe minimum number of allocations to scale to.static AdaptiveAllocationsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()
-
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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupAdaptiveAllocationsDeserializer
protected static void setupAdaptiveAllocationsDeserializer(ObjectDeserializer<AdaptiveAllocations.Builder> op)
-