Class TrainedModelAllocationRoutingTable
java.lang.Object
co.elastic.clients.elasticsearch.ml.TrainedModelAllocationRoutingTable
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class TrainedModelAllocationRoutingTable extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TrainedModelAllocationRoutingTable.Builder
Builder forTrainedModelAllocationRoutingTable
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TrainedModelAllocationRoutingTable>
_DESERIALIZER
Json deserializer forTrainedModelAllocationRoutingTable
-
Method Summary
Modifier and Type Method Description static TrainedModelAllocationRoutingTable
of(java.util.function.Function<TrainedModelAllocationRoutingTable.Builder,ObjectBuilder<TrainedModelAllocationRoutingTable>> fn)
java.lang.String
reason()
Required - The reason for the current state.RoutingState
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
setupTrainedModelAllocationRoutingTableDeserializer(ObjectDeserializer<TrainedModelAllocationRoutingTable.Builder> op)
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forTrainedModelAllocationRoutingTable
-
-
Method Details
-
of
public static TrainedModelAllocationRoutingTable of(java.util.function.Function<TrainedModelAllocationRoutingTable.Builder,ObjectBuilder<TrainedModelAllocationRoutingTable>> fn) -
reason
public final java.lang.String 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
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupTrainedModelAllocationRoutingTableDeserializer
protected static void setupTrainedModelAllocationRoutingTableDeserializer(ObjectDeserializer<TrainedModelAllocationRoutingTable.Builder> op)
-