Class PutTrainedModelVocabularyRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<PutTrainedModelVocabularyRequest.Builder>
co.elastic.clients.elasticsearch.ml.PutTrainedModelVocabularyRequest.Builder
- All Implemented Interfaces:
WithJson<PutTrainedModelVocabularyRequest.Builder>,ObjectBuilder<PutTrainedModelVocabularyRequest>
- Enclosing class:
- PutTrainedModelVocabularyRequest
public static class PutTrainedModelVocabularyRequest.Builder extends WithJsonObjectBuilderBase<PutTrainedModelVocabularyRequest.Builder> implements ObjectBuilder<PutTrainedModelVocabularyRequest>
Builder for
PutTrainedModelVocabularyRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description PutTrainedModelVocabularyRequestbuild()Builds aPutTrainedModelVocabularyRequest.PutTrainedModelVocabularyRequest.Buildermerges(java.lang.String value, java.lang.String... values)The optional model merges if required by the tokenizer.PutTrainedModelVocabularyRequest.Buildermerges(java.util.List<java.lang.String> list)The optional model merges if required by the tokenizer.PutTrainedModelVocabularyRequest.BuildermodelId(java.lang.String value)Required - The unique identifier of the trained model.protected PutTrainedModelVocabularyRequest.Builderself()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.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
-
merges
public final PutTrainedModelVocabularyRequest.Builder merges(java.util.List<java.lang.String> list)The optional model merges if required by the tokenizer.API name:
mergesAdds all elements of
listtomerges. -
merges
public final PutTrainedModelVocabularyRequest.Builder merges(java.lang.String value, java.lang.String... values)The optional model merges if required by the tokenizer.API name:
mergesAdds one or more values to
merges. -
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. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<PutTrainedModelVocabularyRequest.Builder>
-
build
Builds aPutTrainedModelVocabularyRequest.- Specified by:
buildin interfaceObjectBuilder<PutTrainedModelVocabularyRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-