Class ApiKey
java.lang.Object
co.elastic.clients.elasticsearch.security.get_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 longcreation()Required - API name:creationjava.lang.Longexpiration()API name:expirationjava.lang.Stringid()Required - API name:idbooleaninvalidated()Required - API name:invalidatedjava.util.Map<java.lang.String,JsonData>metadata()API name:metadatajava.lang.Stringname()Required - API name:namejava.lang.Stringrealm()Required - API name:realmvoidserialize(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)java.lang.Stringusername()Required - API name:usernameMethods 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
-
creation
public long creation()Required - API name:creation -
expiration
@Nullable public java.lang.Long expiration()API name:expiration -
id
public java.lang.String id()Required - API name:id -
invalidated
public boolean invalidated()Required - API name:invalidated -
name
public java.lang.String name()Required - API name:name -
realm
public java.lang.String realm()Required - API name:realm -
username
public java.lang.String username()Required - API name:username -
metadata
API name:metadata -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupApiKeyDeserializer
-