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 classTrainedModelAllocationTaskParameters.BuilderBuilder forTrainedModelAllocationTaskParameters. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TrainedModelAllocationTaskParameters>_DESERIALIZERJson deserializer forTrainedModelAllocationTaskParameters -
Method Summary
Modifier and Type Method Description intmodelBytes()Required - The size of the trained model in bytes.java.lang.StringmodelId()Required - The unique identifier for the trained model.static TrainedModelAllocationTaskParametersof(java.util.function.Function<TrainedModelAllocationTaskParameters.Builder,ObjectBuilder<TrainedModelAllocationTaskParameters>> 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 voidsetupTrainedModelAllocationTaskParametersDeserializer(ObjectDeserializer<TrainedModelAllocationTaskParameters.Builder> op)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 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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupTrainedModelAllocationTaskParametersDeserializer
protected static void setupTrainedModelAllocationTaskParametersDeserializer(ObjectDeserializer<TrainedModelAllocationTaskParameters.Builder> op)
-