Class PatchOperation.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.security.PatchOperation.Builder
- All Implemented Interfaces:
CopyableBuilder<PatchOperation.Builder,,PatchOperation> MutableBuilder<PatchOperation.Builder,,PatchOperation> ObjectBuilder<PatchOperation>
- Enclosing class:
PatchOperation
public static class PatchOperation.Builder
extends ObjectBuilderBase
implements CopyableBuilder<PatchOperation.Builder,PatchOperation>
Builder for
PatchOperation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPatchOperation.copy()Create a new builderCopyableBuilderthat is a copy of this one.final PatchOperation.BuilderRequired - The operation to perform, such asremove,add,replace,move,copy, ortest.final PatchOperation.BuilderRequired - The path to the resource.final PatchOperation.BuilderThe new values used for the update.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<PatchOperation.Builder,PatchOperation> - Returns:
- a new builder instance.
-
op
Required - The operation to perform, such asremove,add,replace,move,copy, ortest.API name:
op -
path
Required - The path to the resource.API name:
path -
value
The new values used for the update.API name:
value -
build
Builds aPatchOperation.- Specified by:
buildin interfaceObjectBuilder<PatchOperation>- Throws:
NullPointerException- if some of the required fields are null.
-