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 class
GrantApiKeyRequest.Builder
Builder 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>
_DESERIALIZER
Json deserializer forGrantApiKeyRequest
static Endpoint<GrantApiKeyRequest,GrantApiKeyResponse,ErrorResponse>
_ENDPOINT
Endpoint "security.grant_api_key
". -
Method Summary
Modifier and Type Method Description java.lang.String
accessToken()
API name:access_token
GrantApiKey
apiKey()
Required - API name:api_key
ApiKeyGrantType
grantType()
Required - API name:grant_type
static GrantApiKeyRequest
of(java.util.function.Function<GrantApiKeyRequest.Builder,ObjectBuilder<GrantApiKeyRequest>> fn)
java.lang.String
password()
API name:password
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupGrantApiKeyRequestDeserializer(ObjectDeserializer<GrantApiKeyRequest.Builder> op)
java.lang.String
username()
API name:username
Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
Methods 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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupGrantApiKeyRequestDeserializer
protected static void setupGrantApiKeyRequestDeserializer(ObjectDeserializer<GrantApiKeyRequest.Builder> op)
-