Class AddPolicyResponse.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ism.AddPolicyResponse.Builder
- All Implemented Interfaces:
CopyableBuilder<AddPolicyResponse.Builder,,AddPolicyResponse> MutableBuilder<AddPolicyResponse.Builder,,AddPolicyResponse> ObjectBuilder<AddPolicyResponse>
- Enclosing class:
AddPolicyResponse
public static class AddPolicyResponse.Builder
extends ObjectBuilderBase
implements CopyableBuilder<AddPolicyResponse.Builder,AddPolicyResponse>
Builder for
AddPolicyResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aAddPolicyResponse.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<AddPolicyResponse.Builder,AddPolicyResponse> - 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 AddPolicyResponse.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 AddPolicyResponse.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 aAddPolicyResponse.- Specified by:
buildin interfaceObjectBuilder<AddPolicyResponse>- Throws:
NullPointerException- if some of the required fields are null.
-