Class LLM.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ml.LLM.Builder
- All Implemented Interfaces:
CopyableBuilder<LLM.Builder,,LLM> MutableBuilder<LLM.Builder,,LLM> ObjectBuilder<LLM>
- Enclosing class:
LLM
public static class LLM.Builder
extends ObjectBuilderBase
implements CopyableBuilder<LLM.Builder,LLM>
Builder for
LLM.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aLLM.copy()Create a new builderCopyableBuilderthat is a copy of this one.final LLM.BuilderAPI name:model_idfinal LLM.Builderparameters(String key, JsonData value) API name:parametersfinal LLM.Builderparameters(Map<String, JsonData> map) API name:parametersMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<LLM.Builder,LLM> - Returns:
- a new builder instance.
-
modelId
API name:model_id -
parameters
API name:parametersAdds all elements of
maptoparameters. -
parameters
API name:parametersAdds an entry to
parameters. -
build
Builds aLLM.- Specified by:
buildin interfaceObjectBuilder<LLM>- Throws:
NullPointerException- if some of the required fields are null.
-