Class GetReindexResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<GetReindexResponse.Builder>
co.elastic.clients.elasticsearch.core.GetReindexResponse.Builder
- All Implemented Interfaces:
WithJson<GetReindexResponse.Builder>,ObjectBuilder<GetReindexResponse>
- Enclosing class:
- GetReindexResponse
public static class GetReindexResponse.Builder
extends WithJsonObjectBuilderBase<GetReindexResponse.Builder>
implements ObjectBuilder<GetReindexResponse>
Builder for
GetReindexResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGetReindexResponse.cancelled(boolean value) Required - Whether the reindex task has been cancelled.completed(boolean value) Required - Whether the reindex task has completed.description(String value) A sanitized description of the reindex operation (source and destination indices, and optionally remote host info).error(ErrorCause value) The error that caused the reindex task to fail, if any.The error that caused the reindex task to fail, if any.Required - The ID of the reindex task.response(ReindexTaskResult value) The final result of the completed reindex operation, if the task has finished successfully.The final result of the completed reindex operation, if the task has finished successfully.runningTime(Time value) The elapsed running time of the reindex task, in a human-readable format.The elapsed running time of the reindex task, in a human-readable format.runningTimeInNanos(long value) Required - The elapsed running time of the reindex task, in nanoseconds.protected GetReindexResponse.Builderself()The time at which the reindex task started, as an ISO 8601 formatted string.startTimeInMillis(long value) Required - The time at which the reindex task started, in milliseconds since the Unix epoch.status(ReindexStatus value) The current progress of the reindex operation.The 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
-
completed
Required - Whether the reindex task has completed.API name:
completed -
id
Required - The ID of the reindex task. The value is the ID assigned when the task was first created and remains stable across node-shutdown relocations.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 GetReindexResponse.Builder status(Function<ReindexStatus.Builder, ObjectBuilder<ReindexStatus>> fn) The current progress of the reindex operation.API name:
status -
error
The error that caused the reindex task to fail, if any.API name:
error -
error
public final GetReindexResponse.Builder error(Function<ErrorCause.Builder, ObjectBuilder<ErrorCause>> fn) The error that caused the reindex task to fail, if any.API name:
error -
response
The final result of the completed reindex operation, if the task has finished successfully.API name:
response -
response
public final GetReindexResponse.Builder response(Function<ReindexTaskResult.Builder, ObjectBuilder<ReindexTaskResult>> fn) The final result of the completed reindex operation, if the task has finished successfully.API name:
response -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<GetReindexResponse.Builder>
-
build
Builds aGetReindexResponse.- Specified by:
buildin interfaceObjectBuilder<GetReindexResponse>- Throws:
NullPointerException- if some of the required fields are null.
-