Class AdaptiveAllocationsSettings
java.lang.Object
co.elastic.clients.elasticsearch.ml.AdaptiveAllocationsSettings
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class AdaptiveAllocationsSettings
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<AdaptiveAllocationsSettings>
Json deserializer forAdaptiveAllocationsSettings
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
enabled()
Required - If true, adaptive_allocations is enabledfinal Integer
Specifies the maximum number of allocations to scale to.final Integer
Specifies the minimum number of allocations to scale to.static AdaptiveAllocationsSettings
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
setupAdaptiveAllocationsSettingsDeserializer
(ObjectDeserializer<AdaptiveAllocationsSettings.Builder> op) toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forAdaptiveAllocationsSettings
-
-
Method Details
-
of
-
enabled
public final boolean 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
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupAdaptiveAllocationsSettingsDeserializer
protected static void setupAdaptiveAllocationsSettingsDeserializer(ObjectDeserializer<AdaptiveAllocationsSettings.Builder> op)
-