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 class
HasPrivilegesRequest.Builder
Builder 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>
_DESERIALIZER
Json deserializer forHasPrivilegesRequest
static Endpoint<HasPrivilegesRequest,HasPrivilegesResponse,ErrorResponse>
_ENDPOINT
Endpoint "security.has_privileges
". -
Method Summary
Modifier and Type Method Description java.util.List<ApplicationPrivilegesCheck>
application()
API name:application
java.util.List<ClusterPrivilege>
cluster()
A list of the cluster privileges that you want to check.java.util.List<IndexPrivilegesCheck>
index()
API name:index
static HasPrivilegesRequest
of(java.util.function.Function<HasPrivilegesRequest.Builder,ObjectBuilder<HasPrivilegesRequest>> 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
setupHasPrivilegesRequestDeserializer(ObjectDeserializer<HasPrivilegesRequest.Builder> op)
java.lang.String
user()
UsernameMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
Methods 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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupHasPrivilegesRequestDeserializer
protected static void setupHasPrivilegesRequestDeserializer(ObjectDeserializer<HasPrivilegesRequest.Builder> op)
-