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 - API name:api_key
java.lang.Long
expiration()
API name:expiration
java.lang.String
id()
Required - API name:id
java.lang.String
name()
Required - API name:name
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)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 - API name:api_key
-
expiration
@Nullable public final java.lang.Long expiration()API name:expiration
-
id
public final java.lang.String id()Required - API name:id
-
name
public final java.lang.String name()Required - API name:name
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupCreateApiKeyResponseDeserializer
protected static void setupCreateApiKeyResponseDeserializer(ObjectDeserializer<CreateApiKeyResponse.Builder> op)
-