Class GrantApiKey
java.lang.Object
co.elastic.clients.elasticsearch.security.grant_api_key.GrantApiKey
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class GrantApiKey extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GrantApiKey.Builder
Builder forGrantApiKey
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<GrantApiKey>
_DESERIALIZER
Json deserializer forGrantApiKey
-
Method Summary
Modifier and Type Method Description Time
expiration()
API name:expiration
java.lang.String
name()
Required - API name:name
static GrantApiKey
of(java.util.function.Function<GrantApiKey.Builder,ObjectBuilder<GrantApiKey>> fn)
java.util.List<java.util.Map<java.lang.String,JsonData>>
roleDescriptors()
API name:role_descriptors
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
setupGrantApiKeyDeserializer(ObjectDeserializer<GrantApiKey.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 forGrantApiKey
-
-
Method Details
-
of
public static GrantApiKey of(java.util.function.Function<GrantApiKey.Builder,ObjectBuilder<GrantApiKey>> fn) -
name
public final java.lang.String name()Required - API name:name
-
expiration
API name:expiration
-
roleDescriptors
API name:role_descriptors
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupGrantApiKeyDeserializer
-