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 forModelConfig.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelConfig.BuilderallConfig(java.lang.String value)The all config.ModelConfigbuild()Builds aModelConfig.ModelConfig.Buildercopy()Create a new builderCopyableBuilderthat is a copy of this one.ModelConfig.BuilderembeddingDimension(java.lang.Long value)The embedding dimension.ModelConfig.BuilderframeworkType(java.lang.String value)The framework type.ModelConfig.BuildermodelType(java.lang.String value)The model type.-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAll
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
-
-
-
Method Detail
-
copy
@Nonnull public ModelConfig.Builder 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
@Nonnull public final ModelConfig.Builder allConfig(@Nullable java.lang.String value)
The all config.API name:
all_config
-
embeddingDimension
@Nonnull public final ModelConfig.Builder embeddingDimension(@Nullable java.lang.Long value)
The embedding dimension.API name:
embedding_dimension
-
frameworkType
@Nonnull public final ModelConfig.Builder frameworkType(@Nullable java.lang.String value)
The framework type.API name:
framework_type
-
modelType
@Nonnull public final ModelConfig.Builder modelType(@Nullable java.lang.String value)
The model type.API name:
model_type
-
build
@Nonnull public ModelConfig build()
Builds aModelConfig.- Specified by:
buildin interfaceObjectBuilder<ModelConfig>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-