Class ApiKey
java.lang.Object
co.elastic.clients.elasticsearch.security.grant_api_key.ApiKey
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class ApiKey extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApiKey.BuilderBuilder forApiKey. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ApiKey>_DESERIALIZERJson deserializer forApiKey -
Constructor Summary
Constructors Constructor Description ApiKey(ApiKey.Builder builder)ApiKey(java.util.function.Function<ApiKey.Builder,ApiKey.Builder> fn) -
Method Summary
Modifier and Type Method Description java.lang.Stringexpiration()API name:expirationjava.lang.Stringname()Required - API name:namejava.util.List<java.util.Map<java.lang.String,JsonData>>roleDescriptors()API name:role_descriptorsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupApiKeyDeserializer(DelegatingDeserializer<ApiKey.Builder> op)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forApiKey
-
-
Constructor Details
-
ApiKey
-
ApiKey
-
-
Method Details
-
name
public java.lang.String name()Required - API name:name -
expiration
@Nullable public java.lang.String expiration()API name:expiration -
roleDescriptors
API name:role_descriptors -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupApiKeyDeserializer
-