Class GrantApiKeyRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.GrantApiKeyRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class GrantApiKeyRequest extends RequestBase implements JsonpSerializable
Creates an API key on behalf of another user.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGrantApiKeyRequest.BuilderBuilder forGrantApiKeyRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<GrantApiKeyRequest>_DESERIALIZERJson deserializer forGrantApiKeyRequeststatic Endpoint<GrantApiKeyRequest,GrantApiKeyResponse,ErrorResponse>_ENDPOINTEndpoint "security.grant_api_key". -
Method Summary
Modifier and Type Method Description java.lang.StringaccessToken()API name:access_tokenApiKeyapiKey()Required - API name:api_keyApiKeyGrantTypegrantType()Required - API name:grant_typestatic GrantApiKeyRequestof(java.util.function.Function<GrantApiKeyRequest.Builder,ObjectBuilder<GrantApiKeyRequest>> fn)java.lang.Stringpassword()API name:passwordvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupGrantApiKeyRequestDeserializer(ObjectDeserializer<GrantApiKeyRequest.Builder> op)java.lang.Stringusername()API name:usernameMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forGrantApiKeyRequest -
_ENDPOINT
Endpoint "security.grant_api_key".
-
-
Method Details
-
of
public static GrantApiKeyRequest of(java.util.function.Function<GrantApiKeyRequest.Builder,ObjectBuilder<GrantApiKeyRequest>> fn) -
accessToken
@Nullable public final java.lang.String accessToken()API name:access_token -
apiKey
Required - API name:api_key -
grantType
Required - API name:grant_type -
password
@Nullable public final java.lang.String password()API name:password -
username
@Nullable public final java.lang.String username()API name:username -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupGrantApiKeyRequestDeserializer
protected static void setupGrantApiKeyRequestDeserializer(ObjectDeserializer<GrantApiKeyRequest.Builder> op)
-