Class TrainedModelAssignmentTaskParameters.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TrainedModelAssignmentTaskParameters.Builder>
co.elastic.clients.elasticsearch.ml.TrainedModelAssignmentTaskParameters.Builder
- All Implemented Interfaces:
WithJson<TrainedModelAssignmentTaskParameters.Builder>,ObjectBuilder<TrainedModelAssignmentTaskParameters>
- Enclosing class:
- TrainedModelAssignmentTaskParameters
public static class TrainedModelAssignmentTaskParameters.Builder extends WithJsonObjectBuilderBase<TrainedModelAssignmentTaskParameters.Builder> implements ObjectBuilder<TrainedModelAssignmentTaskParameters>
Builder for
TrainedModelAssignmentTaskParameters.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description TrainedModelAssignmentTaskParametersbuild()Builds aTrainedModelAssignmentTaskParameters.TrainedModelAssignmentTaskParameters.BuildercacheSize(java.lang.String value)Required - The size of the trained model cache.TrainedModelAssignmentTaskParameters.BuildermodelBytes(int value)Required - The size of the trained model in bytes.TrainedModelAssignmentTaskParameters.BuildermodelId(java.lang.String value)Required - The unique identifier for the trained model.TrainedModelAssignmentTaskParameters.BuildernumberOfAllocations(int value)Required - The total number of allocations this model is assigned across ML nodes.TrainedModelAssignmentTaskParameters.BuilderqueueCapacity(int value)Required - Number of inference requests are allowed in the queue at a time.protected TrainedModelAssignmentTaskParameters.Builderself()TrainedModelAssignmentTaskParameters.BuilderthreadsPerAllocation(int value)Required - Number of threads per allocation.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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 -
cacheSize
Required - The size of the trained model cache.API name:
cache_size -
numberOfAllocations
Required - The total number of allocations this model is assigned across ML nodes.API name:
number_of_allocations -
queueCapacity
Required - Number of inference requests are allowed in the queue at a time.API name:
queue_capacity -
threadsPerAllocation
Required - Number of threads per allocation.API name:
threads_per_allocation -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<TrainedModelAssignmentTaskParameters.Builder>
-
build
Builds aTrainedModelAssignmentTaskParameters.- Specified by:
buildin interfaceObjectBuilder<TrainedModelAssignmentTaskParameters>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-