Class ReindexStatus.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.core.reindex_rethrottle.ReindexStatus.Builder
- All Implemented Interfaces:
CopyableBuilder<ReindexStatus.Builder,,ReindexStatus> MutableBuilder<ReindexStatus.Builder,,ReindexStatus> ObjectBuilder<ReindexStatus>
- Enclosing class:
ReindexStatus
public static class ReindexStatus.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ReindexStatus.Builder,ReindexStatus>
Builder for
ReindexStatus.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ReindexStatus.Builderbatches(long value) Required - The number of scroll responses shown by the reindex.build()Builds aReindexStatus.copy()Create a new builderCopyableBuilderthat is a copy of this one.final ReindexStatus.Buildercreated(long value) Required - The number of documents that were successfully created.final ReindexStatus.Builderdeleted(long value) Required - The number of documents that were successfully deleted.final ReindexStatus.Buildernoops(long value) Required - The number of documents that were ignored because the script used for the reindex operation returned anoopvalue forctx.op.final ReindexStatus.BuilderrequestsPerSecond(float value) Required - The number of successful requests per second during the reindex operation.final ReindexStatus.BuilderRequired - API name:retriesfinal ReindexStatus.BuilderRequired - API name:retriesfinal ReindexStatus.BuilderAPI name:throttledfinal ReindexStatus.BuilderAPI name:throttledfinal ReindexStatus.BuilderthrottledMillis(long value) Required - API name:throttled_millisfinal ReindexStatus.BuilderAPI name:throttled_untilfinal ReindexStatus.BuilderthrottledUntil(Time value) API name:throttled_untilfinal ReindexStatus.BuilderthrottledUntilMillis(long value) Required - API name:throttled_until_millisfinal ReindexStatus.Buildertotal(long value) Required - The number of documents that were successfully processed.final ReindexStatus.Builderupdated(long value) Required - The number of documents that were successfully updated.final ReindexStatus.BuilderversionConflicts(long value) Required - The number of version conflicts that reindex hits.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<ReindexStatus.Builder,ReindexStatus> - Returns:
- a new builder instance.
-
batches
Required - The number of scroll responses shown by the reindex.API name:
batches -
created
Required - The number of documents that were successfully created.API name:
created -
deleted
Required - The number of documents that were successfully deleted.API name:
deleted -
noops
Required - The number of documents that were ignored because the script used for the reindex operation returned anoopvalue forctx.op.API name:
noops -
requestsPerSecond
Required - The number of successful requests per second during the reindex operation.API name:
requests_per_second -
retries
Required - API name:retries -
retries
@Nonnull public final ReindexStatus.Builder retries(Function<Retries.Builder, ObjectBuilder<Retries>> fn) Required - API name:retries -
throttled
API name:throttled -
throttled
@Nonnull public final ReindexStatus.Builder throttled(Function<Time.Builder, ObjectBuilder<Time>> fn) API name:throttled -
throttledMillis
Required - API name:throttled_millis -
throttledUntil
API name:throttled_until -
throttledUntil
@Nonnull public final ReindexStatus.Builder throttledUntil(Function<Time.Builder, ObjectBuilder<Time>> fn) API name:throttled_until -
throttledUntilMillis
Required - API name:throttled_until_millis -
total
Required - The number of documents that were successfully processed.API name:
total -
updated
Required - The number of documents that were successfully updated.API name:
updated -
versionConflicts
Required - The number of version conflicts that reindex hits.API name:
version_conflicts -
build
Builds aReindexStatus.- Specified by:
buildin interfaceObjectBuilder<ReindexStatus>- Throws:
NullPointerException- if some of the required fields are null.
-