Class ApiKey
java.lang.Object
co.elastic.clients.elasticsearch.security.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 class
ApiKey.Builder
Builder forApiKey
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ApiKey>
_DESERIALIZER
Json deserializer forApiKey
-
Method Summary
Modifier and Type Method Description java.lang.Long
creation()
API name:creation
java.lang.Long
expiration()
API name:expiration
java.lang.String
id()
Required - API name:id
java.lang.Boolean
invalidated()
API name:invalidated
java.util.Map<java.lang.String,JsonData>
metadata()
API name:metadata
java.lang.String
name()
Required - API name:name
static ApiKey
of(java.util.function.Function<ApiKey.Builder,ObjectBuilder<ApiKey>> fn)
java.lang.String
realm()
API name:realm
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
setupApiKeyDeserializer(ObjectDeserializer<ApiKey.Builder> op)
java.lang.String
toString()
java.lang.String
username()
API name:username
Methods 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
@Nullable public final java.lang.Long creation()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
@Nullable public final java.lang.Boolean invalidated()API name:invalidated
-
name
public final java.lang.String name()Required - API name:name
-
realm
@Nullable public final java.lang.String realm()API name:realm
-
username
@Nullable public final java.lang.String username()API name:username
-
metadata
API name:metadata
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupApiKeyDeserializer
-