Class TrainedModelAssignmentRoutingTable
java.lang.Object
co.elastic.clients.elasticsearch.ml.TrainedModelAssignmentRoutingTable
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class TrainedModelAssignmentRoutingTable
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TrainedModelAssignmentRoutingTable>Json deserializer forTrainedModelAssignmentRoutingTable -
Method Summary
Modifier and TypeMethodDescriptionfinal intRequired - Current number of allocations.of(Function<TrainedModelAssignmentRoutingTable.Builder, ObjectBuilder<TrainedModelAssignmentRoutingTable>> fn) final Stringreason()The reason for the current state.final RoutingStateRequired - The current routing state.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupTrainedModelAssignmentRoutingTableDeserializer(ObjectDeserializer<TrainedModelAssignmentRoutingTable.Builder> op) final intRequired - Target number of allocations.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forTrainedModelAssignmentRoutingTable
-
-
Method Details
-
of
-
reason
The reason for the current state. It is usually populated only when therouting_stateisfailed.API name:
reason -
routingState
Required - The current routing state.API name:
routing_state -
currentAllocations
public final int currentAllocations()Required - Current number of allocations.API name:
current_allocations -
targetAllocations
public final int targetAllocations()Required - Target number of allocations.API name:
target_allocations -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupTrainedModelAssignmentRoutingTableDeserializer
protected static void setupTrainedModelAssignmentRoutingTableDeserializer(ObjectDeserializer<TrainedModelAssignmentRoutingTable.Builder> op)
-