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 classTrainedModelDeploymentAllocationStatus.BuilderBuilder forTrainedModelDeploymentAllocationStatus. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TrainedModelDeploymentAllocationStatus>_DESERIALIZERJson deserializer forTrainedModelDeploymentAllocationStatus -
Method Summary
Modifier and Type Method Description intallocationCount()Required - The current number of nodes where the model is allocated.static TrainedModelDeploymentAllocationStatusof(java.util.function.Function<TrainedModelDeploymentAllocationStatus.Builder,ObjectBuilder<TrainedModelDeploymentAllocationStatus>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupTrainedModelDeploymentAllocationStatusDeserializer(ObjectDeserializer<TrainedModelDeploymentAllocationStatus.Builder> op)DeploymentAllocationStatestate()Required - The detailed allocation state related to the nodes.inttargetAllocationCount()Required - The desired number of nodes for model allocation.java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupTrainedModelDeploymentAllocationStatusDeserializer
protected static void setupTrainedModelDeploymentAllocationStatusDeserializer(ObjectDeserializer<TrainedModelDeploymentAllocationStatus.Builder> op)
-