Class GetApiKeyRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<GetApiKeyRequest.Builder>
co.elastic.clients.elasticsearch.security.GetApiKeyRequest.Builder
- All Implemented Interfaces:
WithJson<GetApiKeyRequest.Builder>,ObjectBuilder<GetApiKeyRequest>
- Enclosing class:
- GetApiKeyRequest
public static class GetApiKeyRequest.Builder
extends RequestBase.AbstractBuilder<GetApiKeyRequest.Builder>
implements ObjectBuilder<GetApiKeyRequest>
Builder for
GetApiKeyRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGetApiKeyRequest.final GetApiKeyRequest.BuilderAn API key id.final GetApiKeyRequest.BuilderAn API key name.final GetApiKeyRequest.BuilderA boolean flag that can be used to query API keys owned by the currently authenticated user.final GetApiKeyRequest.BuilderThe name of an authentication realm.protected GetApiKeyRequest.Builderself()final GetApiKeyRequest.BuilderThe username of a user.final GetApiKeyRequest.BuilderwithLimitedBy(Boolean value) Return the snapshot of the owner user's role descriptors associated with the API key.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
-
id
An API key id. This parameter cannot be used with any ofname,realm_nameorusername.API name:
id -
name
An API key name. This parameter cannot be used with any ofid,realm_nameorusername. It supports prefix search with wildcard.API name:
name -
owner
A boolean flag that can be used to query API keys owned by the currently authenticated user. Therealm_nameorusernameparameters cannot be specified when this parameter is set totrueas they are assumed to be the currently authenticated ones.API name:
owner -
realmName
The name of an authentication realm. This parameter cannot be used with eitheridornameor whenownerflag is set totrue.API name:
realm_name -
username
The username of a user. This parameter cannot be used with eitheridornameor whenownerflag is set totrue.API name:
username -
withLimitedBy
Return the snapshot of the owner user's role descriptors associated with the API key. An API key's actual permission is the intersection of its assigned role descriptors and the owner user's role descriptors.API name:
with_limited_by -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<GetApiKeyRequest.Builder>
-
build
Builds aGetApiKeyRequest.- Specified by:
buildin interfaceObjectBuilder<GetApiKeyRequest>- Throws:
NullPointerException- if some of the required fields are null.
-