Class GetApiKeyRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.security.GetApiKeyRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<GetApiKeyRequest>
- Enclosing class:
- GetApiKeyRequest
public static class GetApiKeyRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<GetApiKeyRequest>
Builder for
GetApiKeyRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description GetApiKeyRequest
build()
Builds aGetApiKeyRequest
.GetApiKeyRequest.Builder
id(java.lang.String value)
API key id of the API key to be retrievedGetApiKeyRequest.Builder
name(java.lang.String value)
API key name of the API key to be retrievedGetApiKeyRequest.Builder
owner(java.lang.Boolean value)
flag to query API keys owned by the currently authenticated userGetApiKeyRequest.Builder
realmName(java.lang.String value)
realm name of the user who created this API key to be retrievedGetApiKeyRequest.Builder
username(java.lang.String value)
user name of the user who created this API key to be retrievedMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods 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
-
build
Builds aGetApiKeyRequest
.- Specified by:
build
in interfaceObjectBuilder<GetApiKeyRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-