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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<TrainedModelAssignmentRoutingTable>
Json deserializer forTrainedModelAssignmentRoutingTable
-
Method Summary
Modifier and TypeMethodDescriptionfinal int
Required - Current number of allocations.of
(Function<TrainedModelAssignmentRoutingTable.Builder, ObjectBuilder<TrainedModelAssignmentRoutingTable>> fn) final String
reason()
Required - The reason for the current state.final RoutingState
Required - The current routing state.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
setupTrainedModelAssignmentRoutingTableDeserializer
(ObjectDeserializer<TrainedModelAssignmentRoutingTable.Builder> op) final int
Required - Target number of allocations.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forTrainedModelAssignmentRoutingTable
-
-
Method Details
-
of
-
reason
Required - The reason for the current state. It is usually populated only when therouting_state
isfailed
.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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupTrainedModelAssignmentRoutingTableDeserializer
protected static void setupTrainedModelAssignmentRoutingTableDeserializer(ObjectDeserializer<TrainedModelAssignmentRoutingTable.Builder> op)
-