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 booleanenabled()Required - If true, adaptive_allocations is enabledfinal IntegerSpecifies the maximum number of allocations to scale to.final IntegerSpecifies the minimum number of allocations to scale to.static AdaptiveAllocationsSettingsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupAdaptiveAllocationsSettingsDeserializer(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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupAdaptiveAllocationsSettingsDeserializer
protected static void setupAdaptiveAllocationsSettingsDeserializer(ObjectDeserializer<AdaptiveAllocationsSettings.Builder> op)
-