Class TrainedModelAllocationTaskParameters
java.lang.Object
co.elastic.clients.elasticsearch.ml.TrainedModelAllocationTaskParameters
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class TrainedModelAllocationTaskParameters extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TrainedModelAllocationTaskParameters.Builder
Builder forTrainedModelAllocationTaskParameters
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TrainedModelAllocationTaskParameters>
_DESERIALIZER
Json deserializer forTrainedModelAllocationTaskParameters
-
Method Summary
Modifier and Type Method Description int
modelBytes()
Required - The size of the trained model in bytes.java.lang.String
modelId()
Required - The unique identifier for the trained model.static TrainedModelAllocationTaskParameters
of(java.util.function.Function<TrainedModelAllocationTaskParameters.Builder,ObjectBuilder<TrainedModelAllocationTaskParameters>> 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
setupTrainedModelAllocationTaskParametersDeserializer(ObjectDeserializer<TrainedModelAllocationTaskParameters.Builder> op)
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 forTrainedModelAllocationTaskParameters
-
-
Method Details
-
of
public static TrainedModelAllocationTaskParameters of(java.util.function.Function<TrainedModelAllocationTaskParameters.Builder,ObjectBuilder<TrainedModelAllocationTaskParameters>> fn) -
modelBytes
public final int modelBytes()Required - The size of the trained model in bytes.API name:
model_bytes
-
modelId
public final java.lang.String modelId()Required - The unique identifier for the trained model.API name:
model_id
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupTrainedModelAllocationTaskParametersDeserializer
protected static void setupTrainedModelAllocationTaskParametersDeserializer(ObjectDeserializer<TrainedModelAllocationTaskParameters.Builder> op)
-