Class HasPrivilegesRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.HasPrivilegesRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class HasPrivilegesRequest extends RequestBase implements JsonpSerializable
Determines whether the specified user has a specified list of privileges.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHasPrivilegesRequest.BuilderBuilder forHasPrivilegesRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<HasPrivilegesRequest>_DESERIALIZERJson deserializer forHasPrivilegesRequeststatic Endpoint<HasPrivilegesRequest,HasPrivilegesResponse,ErrorResponse>_ENDPOINTEndpoint "security.has_privileges". -
Method Summary
Modifier and Type Method Description java.util.List<ApplicationPrivilegesCheck>application()API name:applicationjava.util.List<ClusterPrivilege>cluster()A list of the cluster privileges that you want to check.java.util.List<IndexPrivilegesCheck>index()API name:indexstatic HasPrivilegesRequestof(java.util.function.Function<HasPrivilegesRequest.Builder,ObjectBuilder<HasPrivilegesRequest>> 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 voidsetupHasPrivilegesRequestDeserializer(ObjectDeserializer<HasPrivilegesRequest.Builder> op)java.lang.Stringuser()UsernameMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forHasPrivilegesRequest -
_ENDPOINT
Endpoint "security.has_privileges".
-
-
Method Details
-
of
public static HasPrivilegesRequest of(java.util.function.Function<HasPrivilegesRequest.Builder,ObjectBuilder<HasPrivilegesRequest>> fn) -
application
API name:application -
cluster
A list of the cluster privileges that you want to check.API name:
cluster -
index
API name:index -
user
@Nullable public final java.lang.String user()UsernameAPI name:
user -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupHasPrivilegesRequestDeserializer
protected static void setupHasPrivilegesRequestDeserializer(ObjectDeserializer<HasPrivilegesRequest.Builder> op)
-