Class BulkUpdateApiKeysRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<BulkUpdateApiKeysRequest.Builder>
co.elastic.clients.elasticsearch.security.BulkUpdateApiKeysRequest.Builder
- All Implemented Interfaces:
WithJson<BulkUpdateApiKeysRequest.Builder>
,ObjectBuilder<BulkUpdateApiKeysRequest>
- Enclosing class:
- BulkUpdateApiKeysRequest
public static class BulkUpdateApiKeysRequest.Builder
extends RequestBase.AbstractBuilder<BulkUpdateApiKeysRequest.Builder>
implements ObjectBuilder<BulkUpdateApiKeysRequest>
Builder for
BulkUpdateApiKeysRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aBulkUpdateApiKeysRequest
.expiration
(Time value) Expiration time for the API keys.Expiration time for the API keys.Required - The API key identifiers.Required - The API key identifiers.Arbitrary nested metadata to associate with the API keys.Arbitrary nested metadata to associate with the API keys.roleDescriptors
(String key, RoleDescriptor value) The role descriptors to assign to the API keys.The role descriptors to assign to the API keys.The role descriptors to assign to the API keys.protected BulkUpdateApiKeysRequest.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
-
expiration
Expiration time for the API keys. By default, API keys never expire. This property can be omitted to leave the value unchanged.API name:
expiration
-
expiration
public final BulkUpdateApiKeysRequest.Builder expiration(Function<Time.Builder, ObjectBuilder<Time>> fn) Expiration time for the API keys. By default, API keys never expire. This property can be omitted to leave the value unchanged.API name:
expiration
-
ids
Required - The API key identifiers.API name:
ids
Adds all elements of
list
toids
. -
ids
Required - The API key identifiers.API name:
ids
Adds one or more values to
ids
. -
metadata
Arbitrary nested metadata to associate with the API keys. Within themetadata
object, top-level keys beginning with an underscore (_
) are reserved for system usage. Any information specified with this parameter fully replaces metadata previously associated with the API key.API name:
metadata
Adds all entries of
map
tometadata
. -
metadata
Arbitrary nested metadata to associate with the API keys. Within themetadata
object, top-level keys beginning with an underscore (_
) are reserved for system usage. Any information specified with this parameter fully replaces metadata previously associated with the API key.API name:
metadata
Adds an entry to
metadata
. -
roleDescriptors
The role descriptors to assign to the API keys. An API key's effective permissions are an intersection of its assigned privileges and the point-in-time snapshot of permissions of the owner user. You can assign new privileges by specifying them in this parameter. To remove assigned privileges, supply therole_descriptors
parameter as an empty object{}
. If an API key has no assigned privileges, it inherits the owner user's full permissions. The snapshot of the owner's permissions is always updated, whether you supply therole_descriptors
parameter. The structure of a role descriptor is the same as the request for the create API keys API.API name:
role_descriptors
Adds all entries of
map
toroleDescriptors
. -
roleDescriptors
The role descriptors to assign to the API keys. An API key's effective permissions are an intersection of its assigned privileges and the point-in-time snapshot of permissions of the owner user. You can assign new privileges by specifying them in this parameter. To remove assigned privileges, supply therole_descriptors
parameter as an empty object{}
. If an API key has no assigned privileges, it inherits the owner user's full permissions. The snapshot of the owner's permissions is always updated, whether you supply therole_descriptors
parameter. The structure of a role descriptor is the same as the request for the create API keys API.API name:
role_descriptors
Adds an entry to
roleDescriptors
. -
roleDescriptors
public final BulkUpdateApiKeysRequest.Builder roleDescriptors(String key, Function<RoleDescriptor.Builder, ObjectBuilder<RoleDescriptor>> fn) The role descriptors to assign to the API keys. An API key's effective permissions are an intersection of its assigned privileges and the point-in-time snapshot of permissions of the owner user. You can assign new privileges by specifying them in this parameter. To remove assigned privileges, supply therole_descriptors
parameter as an empty object{}
. If an API key has no assigned privileges, it inherits the owner user's full permissions. The snapshot of the owner's permissions is always updated, whether you supply therole_descriptors
parameter. The structure of a role descriptor is the same as the request for the create API keys API.API name:
role_descriptors
Adds an entry to
roleDescriptors
using a builder lambda. -
self
- Specified by:
self
in classRequestBase.AbstractBuilder<BulkUpdateApiKeysRequest.Builder>
-
build
Builds aBulkUpdateApiKeysRequest
.- Specified by:
build
in interfaceObjectBuilder<BulkUpdateApiKeysRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-