Class AdaptiveAllocations

java.lang.Object
co.elastic.clients.elasticsearch.inference.AdaptiveAllocations
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class AdaptiveAllocations extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • enabled

      @Nullable public final Boolean enabled()
      Turn on adaptive_allocations.

      API name: enabled

    • maxNumberOfAllocations

      @Nullable public final Integer maxNumberOfAllocations()
      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

    • minNumberOfAllocations

      @Nullable public final Integer 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

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupAdaptiveAllocationsDeserializer

      protected static void setupAdaptiveAllocationsDeserializer(ObjectDeserializer<AdaptiveAllocations.Builder> op)