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
Modifier and TypeClassDescriptionstatic class
Builder forTrainedModelDeploymentAllocationStatus
. -
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<TrainedModelDeploymentAllocationStatus>
Json deserializer forTrainedModelDeploymentAllocationStatus
-
Method Summary
Modifier and TypeMethodDescriptionfinal int
Required - The current number of nodes where the model is allocated.of
(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) state()
Required - The detailed allocation state related to the nodes.final int
Required - 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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupTrainedModelDeploymentAllocationStatusDeserializer
protected static void setupTrainedModelDeploymentAllocationStatusDeserializer(ObjectDeserializer<TrainedModelDeploymentAllocationStatus.Builder> op)
-