Class RetryIndexResponse.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ism.RetryIndexResponse.Builder
- All Implemented Interfaces:
CopyableBuilder<RetryIndexResponse.Builder,,RetryIndexResponse> MutableBuilder<RetryIndexResponse.Builder,,RetryIndexResponse> ObjectBuilder<RetryIndexResponse>
- Enclosing class:
RetryIndexResponse
public static class RetryIndexResponse.Builder
extends ObjectBuilderBase
implements CopyableBuilder<RetryIndexResponse.Builder,RetryIndexResponse>
Builder for
RetryIndexResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRetryIndexResponse.copy()Create a new builderCopyableBuilderthat is a copy of this one.The list of indices that failed to update.failedIndices(List<FailedIndex> list) The list of indices that failed to update.failedIndices(FailedIndex value, FailedIndex... values) The list of indices that failed to update.Whether there were any failures.updatedIndices(Number value) The number of updated indices.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<RetryIndexResponse.Builder,RetryIndexResponse> - Returns:
- a new builder instance.
-
failedIndices
The list of indices that failed to update.API name:
failed_indicesAdds all elements of
listtofailedIndices. -
failedIndices
@Nonnull public final RetryIndexResponse.Builder failedIndices(FailedIndex value, FailedIndex... values) The list of indices that failed to update.API name:
failed_indicesAdds one or more values to
failedIndices. -
failedIndices
@Nonnull public final RetryIndexResponse.Builder failedIndices(Function<FailedIndex.Builder, ObjectBuilder<FailedIndex>> fn) The list of indices that failed to update.API name:
failed_indicesAdds a value to
failedIndicesusing a builder lambda. -
failures
Whether there were any failures.API name:
failures -
updatedIndices
The number of updated indices.API name:
updated_indices -
build
Builds aRetryIndexResponse.- Specified by:
buildin interfaceObjectBuilder<RetryIndexResponse>- Throws:
NullPointerException- if some of the required fields are null.
-