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 SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TrainedModelAssignmentRoutingTable>Json deserializer forTrainedModelAssignmentRoutingTable
- 
Method SummaryModifier 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- 
_DESERIALIZERJson deserializer forTrainedModelAssignmentRoutingTable
 
- 
- 
Method Details- 
of
- 
reasonThe reason for the current state. It is usually populated only when therouting_stateisfailed.API name: reason
- 
routingStateRequired - The current routing state.API name: routing_state
- 
currentAllocationspublic final int currentAllocations()Required - Current number of allocations.API name: current_allocations
- 
targetAllocationspublic final int targetAllocations()Required - Target number of allocations.API name: target_allocations
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
toString
- 
setupTrainedModelAssignmentRoutingTableDeserializerprotected static void setupTrainedModelAssignmentRoutingTableDeserializer(ObjectDeserializer<TrainedModelAssignmentRoutingTable.Builder> op) 
 
-