Class CancelReindexResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<CancelReindexResponse.Builder>
co.elastic.clients.elasticsearch.core.CancelReindexResponse.Builder
- All Implemented Interfaces:
WithJson<CancelReindexResponse.Builder>,ObjectBuilder<CancelReindexResponse>
- Enclosing class:
- CancelReindexResponse
public static class CancelReindexResponse.Builder
extends WithJsonObjectBuilderBase<CancelReindexResponse.Builder>
implements ObjectBuilder<CancelReindexResponse>
Builder for
CancelReindexResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacknowledged(Boolean value) Present andtruewhenwait_for_completion=false.build()Builds aCancelReindexResponse.Whether the reindex task has been cancelled.Whether the reindex task has completed.description(String value) A sanitized description of the reindex operation.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.The ID of the reindex task.response(ReindexTaskResult value) The final result of the reindex operation, if it completed before being cancelled.The final result of the reindex operation, if it completed before being cancelled.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) The elapsed running time of the reindex task, in nanoseconds.protected CancelReindexResponse.Builderself()The time at which the reindex task started, as an ISO 8601 formatted string.startTimeInMillis(Long value) The time at which the reindex task started, in milliseconds since the Unix epoch.status(ReindexStatus value) The status of the reindex operation at the time of cancellation.The status of the reindex operation at the time of cancellation.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
-
acknowledged
Present andtruewhenwait_for_completion=false.API name:
acknowledged -
completed
Whether the reindex task has completed. Present whenwait_for_completion=true.API name:
completed -
id
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. Present whenwait_for_completion=true.API name:
id -
description
A sanitized description of the reindex operation.API name:
description -
startTimeInMillis
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.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
public final CancelReindexResponse.Builder runningTime(Function<Time.Builder, ObjectBuilder<Time>> fn) 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
The elapsed running time of the reindex task, in nanoseconds.API name:
running_time_in_nanos -
cancelled
Whether the reindex task has been cancelled.API name:
cancelled -
status
The status of the reindex operation at the time of cancellation.API name:
status -
status
public final CancelReindexResponse.Builder status(Function<ReindexStatus.Builder, ObjectBuilder<ReindexStatus>> fn) The status of the reindex operation at the time of cancellation.API name:
status -
error
The error that caused the reindex task to fail, if any.API name:
error -
error
public final CancelReindexResponse.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 reindex operation, if it completed before being cancelled.API name:
response -
response
public final CancelReindexResponse.Builder response(Function<ReindexTaskResult.Builder, ObjectBuilder<ReindexTaskResult>> fn) The final result of the reindex operation, if it completed before being cancelled.API name:
response -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<CancelReindexResponse.Builder>
-
build
Builds aCancelReindexResponse.- Specified by:
buildin interfaceObjectBuilder<CancelReindexResponse>- Throws:
NullPointerException- if some of the required fields are null.
-