Class TrainedModelAllocationTaskParameters.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ml.TrainedModelAllocationTaskParameters.Builder
- All Implemented Interfaces:
ObjectBuilder<TrainedModelAllocationTaskParameters>
- Enclosing class:
- TrainedModelAllocationTaskParameters
public static class TrainedModelAllocationTaskParameters.Builder extends ObjectBuilderBase implements ObjectBuilder<TrainedModelAllocationTaskParameters>
Builder for
TrainedModelAllocationTaskParameters.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description TrainedModelAllocationTaskParametersbuild()Builds aTrainedModelAllocationTaskParameters.TrainedModelAllocationTaskParameters.BuildermodelBytes(int value)Required - The size of the trained model in bytes.TrainedModelAllocationTaskParameters.BuildermodelId(java.lang.String value)Required - The unique identifier for the trained model.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
modelBytes
Required - The size of the trained model in bytes.API name:
model_bytes -
modelId
Required - The unique identifier for the trained model.API name:
model_id -
build
Builds aTrainedModelAllocationTaskParameters.- Specified by:
buildin interfaceObjectBuilder<TrainedModelAllocationTaskParameters>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-