Class ParentTaskInfo.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.tasks.TaskInfo.AbstractBuilder<ParentTaskInfo.Builder>
co.elastic.clients.elasticsearch.tasks.ParentTaskInfo.Builder
- All Implemented Interfaces:
WithJson<ParentTaskInfo.Builder>
,ObjectBuilder<ParentTaskInfo>
- Enclosing class:
- ParentTaskInfo
public static class ParentTaskInfo.Builder extends TaskInfo.AbstractBuilder<ParentTaskInfo.Builder> implements ObjectBuilder<ParentTaskInfo>
Builder for
ParentTaskInfo
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description ParentTaskInfo
build()
Builds aParentTaskInfo
.ParentTaskInfo.Builder
children(TaskInfo value, TaskInfo... values)
API name:children
ParentTaskInfo.Builder
children(java.util.function.Function<TaskInfo.Builder,ObjectBuilder<TaskInfo>> fn)
API name:children
ParentTaskInfo.Builder
children(java.util.List<TaskInfo> list)
API name:children
protected ParentTaskInfo.Builder
self()
Methods inherited from class co.elastic.clients.elasticsearch.tasks.TaskInfo.AbstractBuilder
action, cancellable, cancelled, description, headers, headers, id, node, parentTaskId, runningTime, runningTime, runningTimeInNanos, startTimeInMillis, status, status, type
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
children
API name:children
Adds all elements of
list
tochildren
. -
children
API name:children
Adds one or more values to
children
. -
children
public final ParentTaskInfo.Builder children(java.util.function.Function<TaskInfo.Builder,ObjectBuilder<TaskInfo>> fn)API name:children
Adds a value to
children
using a builder lambda. -
self
- Specified by:
self
in classTaskInfo.AbstractBuilder<ParentTaskInfo.Builder>
-
build
Builds aParentTaskInfo
.- Specified by:
build
in interfaceObjectBuilder<ParentTaskInfo>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-