Class ModelConfig.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ml.ModelConfig.Builder
- All Implemented Interfaces:
CopyableBuilder<ModelConfig.Builder,,ModelConfig> MutableBuilder<ModelConfig.Builder,,ModelConfig> ObjectBuilder<ModelConfig>
- Enclosing class:
ModelConfig
public static class ModelConfig.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ModelConfig.Builder,ModelConfig>
Builder for
ModelConfig.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ModelConfig.BuilderThe all config.build()Builds aModelConfig.copy()Create a new builderCopyableBuilderthat is a copy of this one.final ModelConfig.BuilderembeddingDimension(Long value) The embedding dimension.final ModelConfig.BuilderframeworkType(String value) The framework type.final ModelConfig.BuilderThe model type.Methods 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<ModelConfig.Builder,ModelConfig> - Returns:
- a new builder instance.
-
allConfig
The all config.API name:
all_config -
embeddingDimension
The embedding dimension.API name:
embedding_dimension -
frameworkType
The framework type.API name:
framework_type -
modelType
The model type.API name:
model_type -
build
Builds aModelConfig.- Specified by:
buildin interfaceObjectBuilder<ModelConfig>- Throws:
NullPointerException- if some of the required fields are null.
-