Class TrainedModelAllocation
java.lang.Object
co.elastic.clients.elasticsearch.ml.TrainedModelAllocation
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class TrainedModelAllocation extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TrainedModelAllocation.Builder
Builder forTrainedModelAllocation
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TrainedModelAllocation>
_DESERIALIZER
Json deserializer forTrainedModelAllocation
-
Method Summary
Modifier and Type Method Description DeploymentAllocationState
allocationState()
Required - The overall allocation state.static TrainedModelAllocation
of(java.util.function.Function<TrainedModelAllocation.Builder,ObjectBuilder<TrainedModelAllocation>> fn)
java.util.Map<java.lang.String,TrainedModelAllocationRoutingTable>
routingTable()
Required - The allocation state for each node.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
setupTrainedModelAllocationDeserializer(ObjectDeserializer<TrainedModelAllocation.Builder> op)
DateTime
startTime()
Required - The timestamp when the deployment started.TrainedModelAllocationTaskParameters
taskParameters()
Required - API name:task_parameters
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 forTrainedModelAllocation
-
-
Method Details
-
of
public static TrainedModelAllocation of(java.util.function.Function<TrainedModelAllocation.Builder,ObjectBuilder<TrainedModelAllocation>> fn) -
allocationState
Required - The overall allocation state.API name:
allocation_state
-
routingTable
Required - The allocation state for each node.API name:
routing_table
-
startTime
Required - The timestamp when the deployment started.API name:
start_time
-
taskParameters
Required - API name:task_parameters
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupTrainedModelAllocationDeserializer
protected static void setupTrainedModelAllocationDeserializer(ObjectDeserializer<TrainedModelAllocation.Builder> op)
-