Class CreateApiKeyResponse
java.lang.Object
co.elastic.clients.elasticsearch.security.CreateApiKeyResponse
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class CreateApiKeyResponse extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateApiKeyResponse.BuilderBuilder forCreateApiKeyResponse. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<CreateApiKeyResponse>_DESERIALIZERJson deserializer forCreateApiKeyResponse -
Method Summary
Modifier and Type Method Description java.lang.StringapiKey()Required - Generated API key.java.lang.Stringencoded()Required - API key credentials which is the base64-encoding of the UTF-8 representation ofidandapi_keyjoined by a colon (:).java.lang.Longexpiration()Expiration in milliseconds for the API key.java.lang.Stringid()Required - Unique ID for this API key.java.lang.Stringname()Required - Specifies the name for this API key.static CreateApiKeyResponseof(java.util.function.Function<CreateApiKeyResponse.Builder,ObjectBuilder<CreateApiKeyResponse>> 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 voidsetupCreateApiKeyResponseDeserializer(ObjectDeserializer<CreateApiKeyResponse.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 forCreateApiKeyResponse
-
-
Method Details
-
of
public static CreateApiKeyResponse of(java.util.function.Function<CreateApiKeyResponse.Builder,ObjectBuilder<CreateApiKeyResponse>> fn) -
apiKey
public final java.lang.String apiKey()Required - Generated API key.API name:
api_key -
expiration
@Nullable public final java.lang.Long expiration()Expiration in milliseconds for the API key.API name:
expiration -
id
public final java.lang.String id()Required - Unique ID for this API key.API name:
id -
name
public final java.lang.String name()Required - Specifies the name for this API key.API name:
name -
encoded
public final java.lang.String encoded()Required - API key credentials which is the base64-encoding of the UTF-8 representation ofidandapi_keyjoined by a colon (:).API name:
encoded -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupCreateApiKeyResponseDeserializer
protected static void setupCreateApiKeyResponseDeserializer(ObjectDeserializer<CreateApiKeyResponse.Builder> op)
-