Class ListReindexResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ListReindexResponse.Builder>
co.elastic.clients.elasticsearch.core.ListReindexResponse.Builder
- All Implemented Interfaces:
WithJson<ListReindexResponse.Builder>,ObjectBuilder<ListReindexResponse>
- Enclosing class:
- ListReindexResponse
public static class ListReindexResponse.Builder
extends WithJsonObjectBuilderBase<ListReindexResponse.Builder>
implements ObjectBuilder<ListReindexResponse>
Builder for
ListReindexResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aListReindexResponse.nodeFailures(ErrorCause value, ErrorCause... values) Node-level failures encountered while listing reindex tasks.Node-level failures encountered while listing reindex tasks.nodeFailures(List<ErrorCause> list) Node-level failures encountered while listing reindex tasks.reindex(ReindexTaskInfo value, ReindexTaskInfo... values) Required - The list of currently running reindex tasks.Required - The list of currently running reindex tasks.reindex(List<ReindexTaskInfo> list) Required - The list of currently running reindex tasks.protected ListReindexResponse.Builderself()taskFailures(TaskFailure value, TaskFailure... values) Per-task failures encountered while listing reindex tasks.Per-task failures encountered while listing reindex tasks.taskFailures(List<TaskFailure> list) Per-task failures encountered while listing reindex tasks.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
reindex
Required - The list of currently running reindex tasks.API name:
reindexAdds all elements of
listtoreindex. -
reindex
Required - The list of currently running reindex tasks.API name:
reindexAdds one or more values to
reindex. -
reindex
public final ListReindexResponse.Builder reindex(Function<ReindexTaskInfo.Builder, ObjectBuilder<ReindexTaskInfo>> fn) Required - The list of currently running reindex tasks.API name:
reindexAdds a value to
reindexusing a builder lambda. -
taskFailures
Per-task failures encountered while listing reindex tasks. Tasks that failed are not included in thereindexarray.API name:
task_failuresAdds all elements of
listtotaskFailures. -
taskFailures
Per-task failures encountered while listing reindex tasks. Tasks that failed are not included in thereindexarray.API name:
task_failuresAdds one or more values to
taskFailures. -
taskFailures
public final ListReindexResponse.Builder taskFailures(Function<TaskFailure.Builder, ObjectBuilder<TaskFailure>> fn) Per-task failures encountered while listing reindex tasks. Tasks that failed are not included in thereindexarray.API name:
task_failuresAdds a value to
taskFailuresusing a builder lambda. -
nodeFailures
Node-level failures encountered while listing reindex tasks. Typically populated when a node disconnects or stops responding mid-request, reindex tasks running on such nodes will be missing from thereindexarray for the duration of the disruption.API name:
node_failuresAdds all elements of
listtonodeFailures. -
nodeFailures
Node-level failures encountered while listing reindex tasks. Typically populated when a node disconnects or stops responding mid-request, reindex tasks running on such nodes will be missing from thereindexarray for the duration of the disruption.API name:
node_failuresAdds one or more values to
nodeFailures. -
nodeFailures
public final ListReindexResponse.Builder nodeFailures(Function<ErrorCause.Builder, ObjectBuilder<ErrorCause>> fn) Node-level failures encountered while listing reindex tasks. Typically populated when a node disconnects or stops responding mid-request, reindex tasks running on such nodes will be missing from thereindexarray for the duration of the disruption.API name:
node_failuresAdds a value to
nodeFailuresusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<ListReindexResponse.Builder>
-
build
Builds aListReindexResponse.- Specified by:
buildin interfaceObjectBuilder<ListReindexResponse>- Throws:
NullPointerException- if some of the required fields are null.
-