Class PatchRoleMappingsRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<PatchRoleMappingsRequest.Builder>
org.opensearch.client.opensearch.security.PatchRoleMappingsRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<PatchRoleMappingsRequest.Builder,,PatchRoleMappingsRequest> MutableBuilder<PatchRoleMappingsRequest.Builder,,PatchRoleMappingsRequest> ObjectBuilder<PatchRoleMappingsRequest>
- Enclosing class:
PatchRoleMappingsRequest
public static class PatchRoleMappingsRequest.Builder
extends RequestBase.AbstractBuilder<PatchRoleMappingsRequest.Builder>
implements CopyableBuilder<PatchRoleMappingsRequest.Builder,PatchRoleMappingsRequest>
Builder for
PatchRoleMappingsRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPatchRoleMappingsRequest.copy()Create a new builderCopyableBuilderthat is a copy of this one.Required - Request body.operations(List<PatchOperation> list) Required - Request body.operations(PatchOperation value, PatchOperation... values) Required - Request body.protected PatchRoleMappingsRequest.Builderself()Methods inherited from class org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder
errorTrace, humanMethods 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<PatchRoleMappingsRequest.Builder,PatchRoleMappingsRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PatchRoleMappingsRequest.Builder>
-
operations
Required - Request body.Adds all elements of
listtooperations. -
operations
@Nonnull public final PatchRoleMappingsRequest.Builder operations(PatchOperation value, PatchOperation... values) Required - Request body.Adds one or more values to
operations. -
operations
@Nonnull public final PatchRoleMappingsRequest.Builder operations(Function<PatchOperation.Builder, ObjectBuilder<PatchOperation>> fn) Required - Request body.Adds a value to
operationsusing a builder lambda. -
build
Builds aPatchRoleMappingsRequest.- Specified by:
buildin interfaceObjectBuilder<PatchRoleMappingsRequest>- Throws:
NullPointerException- if some of the required fields are null.
-