Class ModelProfile.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ml.ModelProfile.Builder
- All Implemented Interfaces:
CopyableBuilder<ModelProfile.Builder,,ModelProfile> MutableBuilder<ModelProfile.Builder,,ModelProfile> ObjectBuilder<ModelProfile>
- Enclosing class:
ModelProfile
public static class ModelProfile.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ModelProfile.Builder,ModelProfile>
Builder for
ModelProfile.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aModelProfile.copy()Create a new builderCopyableBuilderthat is a copy of this one.final ModelProfile.BuilderAPI name:deployfinal ModelProfile.Builderdeploy(ModelStats value) API name:deployfinal ModelProfile.BuilderAPI name:executefinal ModelProfile.Builderexecute(ModelStats value) API name:executefinal ModelProfile.BuildermemorySizeEstimationCpu(Long value) The estimated memory size in CPU.final ModelProfile.BuildermemorySizeEstimationGpu(Long value) The estimated memory size in GPU.final ModelProfile.BuildermodelState(String value) The model state.final ModelProfile.BuilderAPI name:predictfinal ModelProfile.Builderpredict(ModelStats value) API name:predictfinal ModelProfile.BuilderThe predictor.final ModelProfile.BuilderAPI name:predict_request_statsfinal ModelProfile.BuilderAPI name:predict_request_statsfinal ModelProfile.BuilderAPI name:registerfinal ModelProfile.Builderregister(ModelStats value) API name:registerfinal ModelProfile.BuildertargetWorkerNodes(List<String> value, List<String>... values) API name:target_worker_nodesfinal ModelProfile.BuildertargetWorkerNodes(List<List<String>> list) API name:target_worker_nodesfinal ModelProfile.BuilderAPI name:trainfinal ModelProfile.Buildertrain(ModelStats value) API name:trainfinal ModelProfile.BuilderAPI name:train_predictfinal ModelProfile.BuildertrainPredict(ModelStats value) API name:train_predictfinal ModelProfile.BuilderAPI name:undeployfinal ModelProfile.Builderundeploy(ModelStats value) API name:undeployfinal ModelProfile.BuilderworkerNodes(List<String> value, List<String>... values) API name:worker_nodesfinal ModelProfile.BuilderworkerNodes(List<List<String>> list) API name:worker_nodesMethods 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<ModelProfile.Builder,ModelProfile> - Returns:
- a new builder instance.
-
deploy
API name:deploy -
deploy
@Nonnull public final ModelProfile.Builder deploy(Function<ModelStats.Builder, ObjectBuilder<ModelStats>> fn) API name:deploy -
execute
API name:execute -
execute
@Nonnull public final ModelProfile.Builder execute(Function<ModelStats.Builder, ObjectBuilder<ModelStats>> fn) API name:execute -
memorySizeEstimationCpu
The estimated memory size in CPU.API name:
memory_size_estimation_cpu -
memorySizeEstimationGpu
The estimated memory size in GPU.API name:
memory_size_estimation_gpu -
modelState
The model state.API name:
model_state -
predict
API name:predict -
predict
@Nonnull public final ModelProfile.Builder predict(Function<ModelStats.Builder, ObjectBuilder<ModelStats>> fn) API name:predict -
predictRequestStats
API name:predict_request_stats -
predictRequestStats
@Nonnull public final ModelProfile.Builder predictRequestStats(Function<PredictRequestStats.Builder, ObjectBuilder<PredictRequestStats>> fn) API name:predict_request_stats -
predictor
The predictor.API name:
predictor -
register
API name:register -
register
@Nonnull public final ModelProfile.Builder register(Function<ModelStats.Builder, ObjectBuilder<ModelStats>> fn) API name:register -
targetWorkerNodes
API name:target_worker_nodesAdds all elements of
listtotargetWorkerNodes. -
targetWorkerNodes
@Nonnull public final ModelProfile.Builder targetWorkerNodes(List<String> value, List<String>... values) API name:target_worker_nodesAdds one or more values to
targetWorkerNodes. -
train
API name:train -
train
@Nonnull public final ModelProfile.Builder train(Function<ModelStats.Builder, ObjectBuilder<ModelStats>> fn) API name:train -
trainPredict
API name:train_predict -
trainPredict
@Nonnull public final ModelProfile.Builder trainPredict(Function<ModelStats.Builder, ObjectBuilder<ModelStats>> fn) API name:train_predict -
undeploy
API name:undeploy -
undeploy
@Nonnull public final ModelProfile.Builder undeploy(Function<ModelStats.Builder, ObjectBuilder<ModelStats>> fn) API name:undeploy -
workerNodes
API name:worker_nodesAdds all elements of
listtoworkerNodes. -
workerNodes
API name:worker_nodesAdds one or more values to
workerNodes. -
build
Builds aModelProfile.- Specified by:
buildin interfaceObjectBuilder<ModelProfile>- Throws:
NullPointerException- if some of the required fields are null.
-