Class PutTrainedModelVocabularyRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ml.PutTrainedModelVocabularyRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<PutTrainedModelVocabularyRequest>
- Enclosing class:
- PutTrainedModelVocabularyRequest
public static class PutTrainedModelVocabularyRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<PutTrainedModelVocabularyRequest>
Builder for
PutTrainedModelVocabularyRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description PutTrainedModelVocabularyRequest
build()
Builds aPutTrainedModelVocabularyRequest
.PutTrainedModelVocabularyRequest.Builder
modelId(java.lang.String value)
Required - The unique identifier of the trained model.PutTrainedModelVocabularyRequest.Builder
vocabulary(java.lang.String value, java.lang.String... values)
Required - The model vocabulary, which must not be empty.PutTrainedModelVocabularyRequest.Builder
vocabulary(java.util.List<java.lang.String> list)
Required - The model vocabulary, which must not be empty.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
modelId
Required - The unique identifier of the trained model.API name:
model_id
-
vocabulary
public final PutTrainedModelVocabularyRequest.Builder vocabulary(java.util.List<java.lang.String> list)Required - The model vocabulary, which must not be empty.API name:
vocabulary
Adds all elements of
list
tovocabulary
. -
vocabulary
public final PutTrainedModelVocabularyRequest.Builder vocabulary(java.lang.String value, java.lang.String... values)Required - The model vocabulary, which must not be empty.API name:
vocabulary
Adds one or more values to
vocabulary
. -
build
Builds aPutTrainedModelVocabularyRequest
.- Specified by:
build
in interfaceObjectBuilder<PutTrainedModelVocabularyRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-