Class GetTasksResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.tasks.GetTasksResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<GetTasksResponse>
- Enclosing class:
- GetTasksResponse
public static class GetTasksResponse.Builder extends ObjectBuilderBase implements ObjectBuilder<GetTasksResponse>
Builder for
GetTasksResponse.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description GetTasksResponsebuild()Builds aGetTasksResponse.GetTasksResponse.Buildercompleted(boolean value)Required - API name:completedGetTasksResponse.Buildererror(ErrorCause value)API name:errorGetTasksResponse.Buildererror(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)API name:errorGetTasksResponse.Builderresponse(TaskStatus value)API name:responseGetTasksResponse.Builderresponse(java.util.function.Function<TaskStatus.Builder,ObjectBuilder<TaskStatus>> fn)API name:responseGetTasksResponse.Buildertask(TaskInfo value)Required - API name:taskGetTasksResponse.Buildertask(java.util.function.Function<TaskInfo.Builder,ObjectBuilder<TaskInfo>> fn)Required - API name:taskMethods 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
-
completed
Required - API name:completed -
task
Required - API name:task -
task
public final GetTasksResponse.Builder task(java.util.function.Function<TaskInfo.Builder,ObjectBuilder<TaskInfo>> fn)Required - API name:task -
response
API name:response -
response
public final GetTasksResponse.Builder response(java.util.function.Function<TaskStatus.Builder,ObjectBuilder<TaskStatus>> fn)API name:response -
error
API name:error -
error
public final GetTasksResponse.Builder error(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)API name:error -
build
Builds aGetTasksResponse.- Specified by:
buildin interfaceObjectBuilder<GetTasksResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-