Class TrainedModelSizeStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TrainedModelSizeStats.Builder>
co.elastic.clients.elasticsearch.ml.TrainedModelSizeStats.Builder
- All Implemented Interfaces:
WithJson<TrainedModelSizeStats.Builder>
,ObjectBuilder<TrainedModelSizeStats>
- Enclosing class:
- TrainedModelSizeStats
public static class TrainedModelSizeStats.Builder
extends WithJsonObjectBuilderBase<TrainedModelSizeStats.Builder>
implements ObjectBuilder<TrainedModelSizeStats>
Builder for
TrainedModelSizeStats
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aTrainedModelSizeStats
.modelSizeBytes
(String value) Required - The size of the model in bytes.requiredNativeMemoryBytes
(int value) Required - The amount of memory required to load the model in bytes.protected TrainedModelSizeStats.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
modelSizeBytes
Required - The size of the model in bytes.API name:
model_size_bytes
-
requiredNativeMemoryBytes
Required - The amount of memory required to load the model in bytes.API name:
required_native_memory_bytes
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<TrainedModelSizeStats.Builder>
-
build
Builds aTrainedModelSizeStats
.- Specified by:
build
in interfaceObjectBuilder<TrainedModelSizeStats>
- Throws:
NullPointerException
- if some of the required fields are null.
-