Class GrantApiKeyResponse
java.lang.Object
co.elastic.clients.elasticsearch.security.GrantApiKeyResponse
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class GrantApiKeyResponse extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GrantApiKeyResponse.Builder
Builder forGrantApiKeyResponse
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<GrantApiKeyResponse>
_DESERIALIZER
Json deserializer forGrantApiKeyResponse
-
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 GrantApiKeyResponse
of(java.util.function.Function<GrantApiKeyResponse.Builder,ObjectBuilder<GrantApiKeyResponse>> 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
setupGrantApiKeyResponseDeserializer(ObjectDeserializer<GrantApiKeyResponse.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 forGrantApiKeyResponse
-
-
Method Details
-
of
public static GrantApiKeyResponse of(java.util.function.Function<GrantApiKeyResponse.Builder,ObjectBuilder<GrantApiKeyResponse>> fn) -
apiKey
public final java.lang.String apiKey()Required - API name:api_key
-
id
public final java.lang.String id()Required - API name:id
-
name
public final java.lang.String name()Required - API name:name
-
expiration
@Nullable public final java.lang.Long expiration()API name:expiration
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupGrantApiKeyResponseDeserializer
protected static void setupGrantApiKeyResponseDeserializer(ObjectDeserializer<GrantApiKeyResponse.Builder> op)
-