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 Constructor Description Builder() -
Method Summary
Modifier and Type Method Description GetApiKeyRequestbuild()Builds aGetApiKeyRequest.GetApiKeyRequest.Builderid(java.lang.String value)API key id of the API key to be retrievedGetApiKeyRequest.Buildername(java.lang.String value)API key name of the API key to be retrievedGetApiKeyRequest.Builderowner(java.lang.Boolean value)flag to query API keys owned by the currently authenticated userGetApiKeyRequest.BuilderrealmName(java.lang.String value)realm name of the user who created this API key to be retrievedprotected GetApiKeyRequest.Builderself()GetApiKeyRequest.Builderusername(java.lang.String value)user name of the user who created this API key to be retrievedGetApiKeyRequest.BuilderwithLimitedBy(java.lang.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, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
API key id of the API key to be retrievedAPI name:
id -
name
API key name of the API key to be retrievedAPI name:
name -
owner
flag to query API keys owned by the currently authenticated userAPI name:
owner -
realmName
realm name of the user who created this API key to be retrievedAPI name:
realm_name -
username
user name of the user who created this API key to be retrievedAPI 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:
java.lang.NullPointerException- if some of the required fields are null.
-