Class Task.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ml.Task.Builder
- All Implemented Interfaces:
CopyableBuilder<Task.Builder,,Task> MutableBuilder<Task.Builder,,Task> ObjectBuilder<Task>
- Enclosing class:
Task
public static class Task.Builder
extends ObjectBuilderBase
implements CopyableBuilder<Task.Builder,Task>
Builder for
Task.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aTask.copy()Create a new builderCopyableBuilderthat is a copy of this one.final Task.BuildercreateTime(Long value) API name:create_timefinal Task.BuilderAPI name:errorfinal Task.BuilderfunctionName(FunctionName value) API name:function_namefinal Task.BuilderAPI name:is_asyncfinal Task.BuilderlastUpdateTime(Long value) API name:last_update_timefinal Task.BuilderAPI name:model_idfinal Task.BuilderRequired - API name:statefinal Task.BuilderAPI name:task_idfinal Task.BuilderTask type.final Task.BuilderworkerNode(List<String> value, List<String>... values) API name:worker_nodefinal Task.BuilderworkerNode(List<List<String>> list) API name:worker_nodeMethods 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<Task.Builder,Task> - Returns:
- a new builder instance.
-
createTime
API name:create_time -
error
API name:error -
functionName
API name:function_name -
isAsync
API name:is_async -
lastUpdateTime
API name:last_update_time -
modelId
API name:model_id -
state
Required - API name:state -
taskId
API name:task_id -
taskType
Task type.API name:
task_type -
workerNode
API name:worker_nodeAdds all elements of
listtoworkerNode. -
workerNode
API name:worker_nodeAdds one or more values to
workerNode. -
build
Builds aTask.- Specified by:
buildin interfaceObjectBuilder<Task>- Throws:
NullPointerException- if some of the required fields are null.
-