Class TrainedModelDeploymentAllocationStatus
java.lang.Object
co.elastic.clients.elasticsearch.ml.TrainedModelDeploymentAllocationStatus
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class TrainedModelDeploymentAllocationStatus
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder forTrainedModelDeploymentAllocationStatus. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TrainedModelDeploymentAllocationStatus>Json deserializer forTrainedModelDeploymentAllocationStatus -
Method Summary
Modifier and TypeMethodDescriptionfinal intRequired - The current number of nodes where the model is allocated.of(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) state()Required - The detailed allocation state related to the nodes.final intRequired - The desired number of nodes for model allocation.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forTrainedModelDeploymentAllocationStatus
-
-
Method Details
-
of
-
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
-
setupTrainedModelDeploymentAllocationStatusDeserializer
protected static void setupTrainedModelDeploymentAllocationStatusDeserializer(ObjectDeserializer<TrainedModelDeploymentAllocationStatus.Builder> op)
-