Class ReindexTaskInfo.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ReindexTaskInfo.Builder>
co.elastic.clients.elasticsearch._types.ReindexTaskInfo.Builder
- All Implemented Interfaces:
WithJson<ReindexTaskInfo.Builder>,ObjectBuilder<ReindexTaskInfo>
- Enclosing class:
- ReindexTaskInfo
public static class ReindexTaskInfo.Builder
extends WithJsonObjectBuilderBase<ReindexTaskInfo.Builder>
implements ObjectBuilder<ReindexTaskInfo>
Builder for
ReindexTaskInfo.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aReindexTaskInfo.final ReindexTaskInfo.Buildercancelled(boolean value) Required - Whether the reindex task has been cancelled.final ReindexTaskInfo.Builderdescription(String value) A sanitized description of the reindex operation (source and destination indices, and optionally remote host info).final ReindexTaskInfo.BuilderRequired - The ID of the reindex task, innodeId:taskNumformat.final ReindexTaskInfo.BuilderrunningTime(Time value) The elapsed running time of the reindex task, in a human-readable format.final ReindexTaskInfo.BuilderThe elapsed running time of the reindex task, in a human-readable format.final ReindexTaskInfo.BuilderrunningTimeInNanos(long value) Required - The elapsed running time of the reindex task, in nanoseconds.protected ReindexTaskInfo.Builderself()final ReindexTaskInfo.BuilderThe time at which the reindex task started, as an ISO 8601 formatted string.final ReindexTaskInfo.BuilderstartTimeInMillis(long value) Required - The time at which the reindex task started, in milliseconds since the Unix epoch.final ReindexTaskInfo.Builderstatus(ReindexStatus value) The current progress of the reindex operation.final ReindexTaskInfo.BuilderThe current progress of the reindex operation.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
-
id
Required - The ID of the reindex task, innodeId:taskNumformat.API name:
id -
description
A sanitized description of the reindex operation (source and destination indices, and optionally remote host info).API name:
description -
startTimeInMillis
Required - The time at which the reindex task started, in milliseconds since the Unix epoch.API name:
start_time_in_millis -
startTime
The time at which the reindex task started, as an ISO 8601 formatted string. Only present when the request includes the?human=truequery parameter.API name:
start_time -
runningTime
The elapsed running time of the reindex task, in a human-readable format. Only present when the request includes the?human=truequery parameter.API name:
running_time -
runningTime
The elapsed running time of the reindex task, in a human-readable format. Only present when the request includes the?human=truequery parameter.API name:
running_time -
runningTimeInNanos
Required - The elapsed running time of the reindex task, in nanoseconds.API name:
running_time_in_nanos -
cancelled
Required - Whether the reindex task has been cancelled.API name:
cancelled -
status
The current progress of the reindex operation.API name:
status -
status
public final ReindexTaskInfo.Builder status(Function<ReindexStatus.Builder, ObjectBuilder<ReindexStatus>> fn) The current progress of the reindex operation.API name:
status -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<ReindexTaskInfo.Builder>
-
build
Builds aReindexTaskInfo.- Specified by:
buildin interfaceObjectBuilder<ReindexTaskInfo>- Throws:
NullPointerException- if some of the required fields are null.
-