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.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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:
idsAdds all elements of
listtoids. -
ids
Required - The API key identifiers.API name:
idsAdds one or more values to
ids. -
metadata
Arbitrary nested metadata to associate with the API keys. Within themetadataobject, 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:
metadataAdds all entries of
maptometadata. -
metadata
Arbitrary nested metadata to associate with the API keys. Within themetadataobject, 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:
metadataAdds 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_descriptorsparameter 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_descriptorsparameter. The structure of a role descriptor is the same as the request for the create API keys API.API name:
role_descriptorsAdds all entries of
maptoroleDescriptors. -
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_descriptorsparameter 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_descriptorsparameter. The structure of a role descriptor is the same as the request for the create API keys API.API name:
role_descriptorsAdds 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_descriptorsparameter 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_descriptorsparameter. The structure of a role descriptor is the same as the request for the create API keys API.API name:
role_descriptorsAdds an entry to
roleDescriptorsusing a builder lambda. -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<BulkUpdateApiKeysRequest.Builder>
-
build
Builds aBulkUpdateApiKeysRequest.- Specified by:
buildin interfaceObjectBuilder<BulkUpdateApiKeysRequest>- Throws:
NullPointerException- if some of the required fields are null.
-