Class TaskResponse.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.tasks.TaskResponse.Builder
- All Implemented Interfaces:
CopyableBuilder<TaskResponse.Builder,,TaskResponse> MutableBuilder<TaskResponse.Builder,,TaskResponse> ObjectBuilder<TaskResponse>
- Enclosing class:
TaskResponse
public static class TaskResponse.Builder
extends ObjectBuilderBase
implements CopyableBuilder<TaskResponse.Builder,TaskResponse>
Builder for
TaskResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal TaskResponse.Builderbatches(int value) Required - The number of scroll responses pulled back by the reindex operation.build()Builds aTaskResponse.final TaskResponse.BuilderAPI name:canceledcopy()Create a new builderCopyableBuilderthat is a copy of this one.final TaskResponse.BuilderThe number of documents that were successfully created.final TaskResponse.Builderdeleted(long value) Required - The number of documents that were successfully deleted.final TaskResponse.BuilderRequired - The list of failures that occurred during the operation.final TaskResponse.Builderfailures(List<BulkByScrollFailure> list) Required - The list of failures that occurred during the operation.final TaskResponse.Builderfailures(BulkByScrollFailure value, BulkByScrollFailure... values) Required - The list of failures that occurred during the operation.final TaskResponse.Buildernoops(long value) Required - The number of documents that were ignored.final TaskResponse.BuilderrequestsPerSecond(float value) Required - The number of requests per second effectively executed during the reindex operation.final TaskResponse.BuilderRequired - API name:retriesfinal TaskResponse.BuilderRequired - API name:retriesfinal TaskResponse.BuilderAPI name:slice_idfinal TaskResponse.Builderslices(Function<BulkByScrollTaskStatusOrException.Builder, ObjectBuilder<BulkByScrollTaskStatusOrException>> fn) API name:slicesfinal TaskResponse.BuilderAPI name:slicesfinal TaskResponse.Builderslices(BulkByScrollTaskStatusOrException value, BulkByScrollTaskStatusOrException... values) API name:slicesfinal TaskResponse.BuilderAPI name:throttledfinal TaskResponse.BuilderAPI name:throttledfinal TaskResponse.BuilderthrottledMillis(long value) Required - API name:throttled_millisfinal TaskResponse.BuilderThe amount time before the throttling will end.final TaskResponse.BuilderthrottledUntil(Time value) The amount time before the throttling will end.final TaskResponse.BuilderthrottledUntilMillis(long value) Required - When the throttling will end in milliseconds.final TaskResponse.BuildertimedOut(boolean value) Required - Whether the operation timed out.final TaskResponse.Buildertook(long value) Required - The time taken by the operation in milliseconds.final TaskResponse.Buildertotal(long value) Required - The number of documents that were successfully processed.final TaskResponse.BuilderThe number of documents that were successfully updated after the reindex operation.final TaskResponse.BuilderversionConflicts(long value) Required - The number of version conflicts encountered by the reindex operation.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<TaskResponse.Builder,TaskResponse> - Returns:
- a new builder instance.
-
batches
Required - The number of scroll responses pulled back by the reindex operation.API name:
batches -
canceled
API name:canceled -
created
The number of documents that were successfully created.API name:
created -
deleted
Required - The number of documents that were successfully deleted.API name:
deleted -
failures
Required - The list of failures that occurred during the operation.API name:
failuresAdds all elements of
listtofailures. -
failures
@Nonnull public final TaskResponse.Builder failures(BulkByScrollFailure value, BulkByScrollFailure... values) Required - The list of failures that occurred during the operation.API name:
failuresAdds one or more values to
failures. -
failures
@Nonnull public final TaskResponse.Builder failures(Function<BulkByScrollFailure.Builder, ObjectBuilder<BulkByScrollFailure>> fn) Required - The list of failures that occurred during the operation.API name:
failuresAdds a value to
failuresusing a builder lambda. -
noops
Required - The number of documents that were ignored.API name:
noops -
requestsPerSecond
Required - The number of requests per second effectively executed during the reindex operation.API name:
requests_per_second -
retries
Required - API name:retries -
retries
@Nonnull public final TaskResponse.Builder retries(Function<Retries.Builder, ObjectBuilder<Retries>> fn) Required - API name:retries -
sliceId
API name:slice_id -
slices
API name:slicesAdds all elements of
listtoslices. -
slices
@Nonnull public final TaskResponse.Builder slices(BulkByScrollTaskStatusOrException value, BulkByScrollTaskStatusOrException... values) API name:slicesAdds one or more values to
slices. -
slices
@Nonnull public final TaskResponse.Builder slices(Function<BulkByScrollTaskStatusOrException.Builder, ObjectBuilder<BulkByScrollTaskStatusOrException>> fn) API name:slicesAdds a value to
slicesusing a builder lambda. -
throttled
API name:throttled -
throttled
API name:throttled -
throttledMillis
Required - API name:throttled_millis -
throttledUntil
The amount time before the throttling will end.API name:
throttled_until -
throttledUntil
@Nonnull public final TaskResponse.Builder throttledUntil(Function<Time.Builder, ObjectBuilder<Time>> fn) The amount time before the throttling will end.API name:
throttled_until -
throttledUntilMillis
Required - When the throttling will end in milliseconds.API name:
throttled_until_millis -
timedOut
Required - Whether the operation timed out.API name:
timed_out -
took
Required - The time taken by the operation in milliseconds.API name:
took -
total
Required - The number of documents that were successfully processed.API name:
total -
updated
The number of documents that were successfully updated after the reindex operation.API name:
updated -
versionConflicts
Required - The number of version conflicts encountered by the reindex operation.API name:
version_conflicts -
build
Builds aTaskResponse.- Specified by:
buildin interfaceObjectBuilder<TaskResponse>- Throws:
NullPointerException- if some of the required fields are null.
-