Class BulkPutRoleRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<BulkPutRoleRequest.Builder>
co.elastic.clients.elasticsearch.security.BulkPutRoleRequest.Builder
- All Implemented Interfaces:
WithJson<BulkPutRoleRequest.Builder>
,ObjectBuilder<BulkPutRoleRequest>
- Enclosing class:
- BulkPutRoleRequest
public static class BulkPutRoleRequest.Builder
extends RequestBase.AbstractBuilder<BulkPutRoleRequest.Builder>
implements ObjectBuilder<BulkPutRoleRequest>
Builder for
BulkPutRoleRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aBulkPutRoleRequest
.Iftrue
(the default) then refresh the affected shards to make this operation visible to search, ifwait_for
then wait for a refresh to make this operation visible to search, iffalse
then do nothing with refreshes.roles
(String key, RoleDescriptor value) Required - A dictionary of role name to RoleDescriptor objects to add or updateRequired - A dictionary of role name to RoleDescriptor objects to add or updateroles
(Map<String, RoleDescriptor> map) Required - A dictionary of role name to RoleDescriptor objects to add or updateprotected BulkPutRoleRequest.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
refresh
Iftrue
(the default) then refresh the affected shards to make this operation visible to search, ifwait_for
then wait for a refresh to make this operation visible to search, iffalse
then do nothing with refreshes.API name:
refresh
-
roles
Required - A dictionary of role name to RoleDescriptor objects to add or updateAPI name:
roles
Adds all entries of
map
toroles
. -
roles
Required - A dictionary of role name to RoleDescriptor objects to add or updateAPI name:
roles
Adds an entry to
roles
. -
roles
public final BulkPutRoleRequest.Builder roles(String key, Function<RoleDescriptor.Builder, ObjectBuilder<RoleDescriptor>> fn) Required - A dictionary of role name to RoleDescriptor objects to add or updateAPI name:
roles
Adds an entry to
roles
using a builder lambda. -
self
- Specified by:
self
in classRequestBase.AbstractBuilder<BulkPutRoleRequest.Builder>
-
build
Builds aBulkPutRoleRequest
.- Specified by:
build
in interfaceObjectBuilder<BulkPutRoleRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-