Class CreateApiKeyResponse
java.lang.Object
co.elastic.clients.elasticsearch.security.CreateApiKeyResponse
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<CreateApiKeyResponse>Json deserializer forCreateApiKeyResponse -
Method Summary
Modifier and TypeMethodDescriptionfinal StringapiKey()Required - Generated API key.final Stringencoded()Required - API key credentials which is the base64-encoding of the UTF-8 representation ofidandapi_keyjoined by a colon (:).final LongExpiration in milliseconds for the API key.final Stringid()Required - Unique ID for this API key.final Stringname()Required - Specifies the name for this API key.static CreateApiKeyResponsevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()
-
Field Details
-
_DESERIALIZER
Json deserializer forCreateApiKeyResponse
-
-
Method Details
-
of
public static CreateApiKeyResponse of(Function<CreateApiKeyResponse.Builder, ObjectBuilder<CreateApiKeyResponse>> fn) -
apiKey
Required - Generated API key.API name:
api_key -
expiration
Expiration in milliseconds for the API key.API name:
expiration -
id
Required - Unique ID for this API key.API name:
id -
name
Required - Specifies the name for this API key.API name:
name -
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
-
setupCreateApiKeyResponseDeserializer
protected static void setupCreateApiKeyResponseDeserializer(ObjectDeserializer<CreateApiKeyResponse.Builder> op)
-