Class TrainedModelDeploymentAllocationStatus
java.lang.Object
co.elastic.clients.elasticsearch.ml.TrainedModelDeploymentAllocationStatus
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class TrainedModelDeploymentAllocationStatus extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TrainedModelDeploymentAllocationStatus.Builder
Builder forTrainedModelDeploymentAllocationStatus
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TrainedModelDeploymentAllocationStatus>
_DESERIALIZER
Json deserializer forTrainedModelDeploymentAllocationStatus
-
Method Summary
Modifier and Type Method Description int
allocationCount()
Required - The current number of nodes where the model is allocated.static TrainedModelDeploymentAllocationStatus
of(java.util.function.Function<TrainedModelDeploymentAllocationStatus.Builder,ObjectBuilder<TrainedModelDeploymentAllocationStatus>> fn)
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
setupTrainedModelDeploymentAllocationStatusDeserializer(ObjectDeserializer<TrainedModelDeploymentAllocationStatus.Builder> op)
DeploymentAllocationState
state()
Required - The detailed allocation state related to the nodes.int
targetAllocationCount()
Required - The desired number of nodes for model allocation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forTrainedModelDeploymentAllocationStatus
-
-
Method Details
-
of
public static TrainedModelDeploymentAllocationStatus of(java.util.function.Function<TrainedModelDeploymentAllocationStatus.Builder,ObjectBuilder<TrainedModelDeploymentAllocationStatus>> fn) -
allocationCount
public final int allocationCount()Required - The current number of nodes where the model is allocated.API name:
allocation_count
-
state
Required - The detailed allocation state related to the nodes.API name:
state
-
targetAllocationCount
public final int targetAllocationCount()Required - The desired number of nodes for model allocation.API name:
target_allocation_count
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupTrainedModelDeploymentAllocationStatusDeserializer
protected static void setupTrainedModelDeploymentAllocationStatusDeserializer(ObjectDeserializer<TrainedModelDeploymentAllocationStatus.Builder> op)
-