Class ApiKey
java.lang.Object
co.elastic.clients.elasticsearch.security.get_api_key.ApiKey
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class ApiKey extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
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 -
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:namestatic ApiKeyof(java.util.function.Function<ApiKey.Builder,ObjectBuilder<ApiKey>> fn)java.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(ObjectDeserializer<ApiKey.Builder> op)java.lang.StringtoString()java.lang.Stringusername()Required - API name:usernameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forApiKey
-
-
Method Details
-
of
-
creation
public final long creation()Required - API name:creation -
expiration
@Nullable public final java.lang.Long expiration()API name:expiration -
id
public final java.lang.String id()Required - API name:id -
invalidated
public final boolean invalidated()Required - API name:invalidated -
name
public final java.lang.String name()Required - API name:name -
realm
public final java.lang.String realm()Required - API name:realm -
username
public final java.lang.String username()Required - API name:username -
metadata
API name:metadata -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupApiKeyDeserializer
-