Class ParentTaskInfo.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.tasks.TaskInfo.AbstractBuilder<ParentTaskInfo.Builder>
co.elastic.clients.elasticsearch.tasks.ParentTaskInfo.Builder
- All Implemented Interfaces:
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 ParentTaskInfobuild()Builds aParentTaskInfo.ParentTaskInfo.Builderchildren(TaskInfo value, TaskInfo... values)API name:childrenParentTaskInfo.Builderchildren(java.util.function.Function<TaskInfo.Builder,ObjectBuilder<TaskInfo>> fn)API name:childrenParentTaskInfo.Builderchildren(java.util.List<TaskInfo> list)API name:childrenprotected ParentTaskInfo.Builderself()Methods inherited from class co.elastic.clients.elasticsearch.tasks.TaskInfo.AbstractBuilder
action, cancellable, description, headers, headers, id, node, parentTaskId, runningTime, runningTimeInNanos, startTimeInMillis, status, status, typeMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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:childrenAdds all elements of
listtochildren. -
children
API name:childrenAdds one or more values to
children. -
children
public final ParentTaskInfo.Builder children(java.util.function.Function<TaskInfo.Builder,ObjectBuilder<TaskInfo>> fn)API name:childrenAdds a value to
childrenusing a builder lambda. -
self
- Specified by:
selfin classTaskInfo.AbstractBuilder<ParentTaskInfo.Builder>
-
build
Builds aParentTaskInfo.- Specified by:
buildin interfaceObjectBuilder<ParentTaskInfo>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-