Class ApiKeyAuthorization
java.lang.Object
co.elastic.clients.elasticsearch.ml.ApiKeyAuthorization
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class ApiKeyAuthorization extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApiKeyAuthorization.BuilderBuilder forApiKeyAuthorization. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ApiKeyAuthorization>_DESERIALIZERJson deserializer forApiKeyAuthorization -
Method Summary
Modifier and Type Method Description java.lang.Stringid()Required - The identifier for the API key.java.lang.Stringname()Required - The name of the API key.static ApiKeyAuthorizationof(java.util.function.Function<ApiKeyAuthorization.Builder,ObjectBuilder<ApiKeyAuthorization>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupApiKeyAuthorizationDeserializer(ObjectDeserializer<ApiKeyAuthorization.Builder> op)java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forApiKeyAuthorization
-
-
Method Details
-
of
public static ApiKeyAuthorization of(java.util.function.Function<ApiKeyAuthorization.Builder,ObjectBuilder<ApiKeyAuthorization>> fn) -
id
public final java.lang.String id()Required - The identifier for the API key.API name:
id -
name
public final java.lang.String name()Required - The name of the API key.API name:
name -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupApiKeyAuthorizationDeserializer
protected static void setupApiKeyAuthorizationDeserializer(ObjectDeserializer<ApiKeyAuthorization.Builder> op)
-