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 PutTrainedModelVocabularyRequestbuild()Builds aPutTrainedModelVocabularyRequest.PutTrainedModelVocabularyRequest.BuildermodelId(java.lang.String value)Required - The unique identifier of the trained model.PutTrainedModelVocabularyRequest.Buildervocabulary(java.lang.String value, java.lang.String... values)Required - The model vocabulary, which must not be empty.PutTrainedModelVocabularyRequest.Buildervocabulary(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, _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
-
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:
vocabularyAdds all elements of
listtovocabulary. -
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:
vocabularyAdds one or more values to
vocabulary. -
build
Builds aPutTrainedModelVocabularyRequest.- Specified by:
buildin interfaceObjectBuilder<PutTrainedModelVocabularyRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-