Class MlInferenceTrainedModelsCount.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<MlInferenceTrainedModelsCount.Builder>
co.elastic.clients.elasticsearch.xpack.usage.MlInferenceTrainedModelsCount.Builder
- All Implemented Interfaces:
WithJson<MlInferenceTrainedModelsCount.Builder>
,ObjectBuilder<MlInferenceTrainedModelsCount>
- Enclosing class:
- MlInferenceTrainedModelsCount
public static class MlInferenceTrainedModelsCount.Builder
extends WithJsonObjectBuilderBase<MlInferenceTrainedModelsCount.Builder>
implements ObjectBuilder<MlInferenceTrainedModelsCount>
Builder for
MlInferenceTrainedModelsCount
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aMlInferenceTrainedModelsCount
.classification
(Long value) API name:classification
API name:ner
other
(long value) Required - API name:other
passThrough
(Long value) API name:pass_through
prepackaged
(long value) Required - API name:prepackaged
regression
(Long value) API name:regression
protected MlInferenceTrainedModelsCount.Builder
self()
textEmbedding
(Long value) API name:text_embedding
total
(long value) Required - API name:total
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
-
total
Required - API name:total
-
prepackaged
Required - API name:prepackaged
-
other
Required - API name:other
-
passThrough
API name:pass_through
-
regression
API name:regression
-
classification
API name:classification
-
ner
API name:ner
-
textEmbedding
API name:text_embedding
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<MlInferenceTrainedModelsCount.Builder>
-
build
Builds aMlInferenceTrainedModelsCount
.- Specified by:
build
in interfaceObjectBuilder<MlInferenceTrainedModelsCount>
- Throws:
NullPointerException
- if some of the required fields are null.
-