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 classGrantApiKeyResponse.BuilderBuilder forGrantApiKeyResponse. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<GrantApiKeyResponse>_DESERIALIZERJson deserializer forGrantApiKeyResponse -
Method Summary
Modifier and Type Method Description java.lang.StringapiKey()Required - API name:api_keyjava.lang.Stringexpiration()API name:expirationjava.lang.Stringid()Required - API name:idjava.lang.Stringname()Required - API name:namestatic GrantApiKeyResponseof(java.util.function.Function<GrantApiKeyResponse.Builder,ObjectBuilder<GrantApiKeyResponse>> 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 voidsetupGrantApiKeyResponseDeserializer(ObjectDeserializer<GrantApiKeyResponse.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 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.String expiration()API name:expiration -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupGrantApiKeyResponseDeserializer
protected static void setupGrantApiKeyResponseDeserializer(ObjectDeserializer<GrantApiKeyResponse.Builder> op)
-