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 class
CreateApiKeyResponse.Builder
Builder forCreateApiKeyResponse
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<CreateApiKeyResponse>
_DESERIALIZER
Json deserializer forCreateApiKeyResponse
-
Method Summary
Modifier and Type Method Description java.lang.String
apiKey()
Required - Generated API key.java.lang.String
encoded()
Required - API key credentials which is the base64-encoding of the UTF-8 representation ofid
andapi_key
joined by a colon (:
).java.lang.Long
expiration()
Expiration in milliseconds for the API key.java.lang.String
id()
Required - Unique ID for this API key.java.lang.String
name()
Required - Specifies the name for this API key.static CreateApiKeyResponse
of(java.util.function.Function<CreateApiKeyResponse.Builder,ObjectBuilder<CreateApiKeyResponse>> fn)
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
setupCreateApiKeyResponseDeserializer(ObjectDeserializer<CreateApiKeyResponse.Builder> op)
java.lang.String
toString()
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 ofid
andapi_key
joined by a colon (:
).API name:
encoded
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupCreateApiKeyResponseDeserializer
protected static void setupCreateApiKeyResponseDeserializer(ObjectDeserializer<CreateApiKeyResponse.Builder> op)
-