Class HasPrivilegesRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.HasPrivilegesRequest
- All Implemented Interfaces:
ElasticsearchCommonRequest,JsonpSerializable
@JsonpDeserializable public final class HasPrivilegesRequest extends RequestBase implements JsonpSerializable
-
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,ElasticsearchError>ENDPOINTEndpoint "security.has_privileges". -
Constructor Summary
Constructors Constructor Description HasPrivilegesRequest(HasPrivilegesRequest.Builder builder)HasPrivilegesRequest(java.util.function.Function<HasPrivilegesRequest.Builder,HasPrivilegesRequest.Builder> fn) -
Method Summary
Modifier and Type Method Description java.util.List<ApplicationPrivilegesCheck>application()API name:applicationjava.util.List<ClusterPrivilege>cluster()API name:clusterjava.util.List<IndexPrivilegesCheck>index()API name:indexvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupHasPrivilegesRequestDeserializer(DelegatingDeserializer<HasPrivilegesRequest.Builder> op)java.lang.Stringuser()UsernameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forHasPrivilegesRequest -
ENDPOINT
public static final Endpoint<HasPrivilegesRequest,HasPrivilegesResponse,ElasticsearchError> ENDPOINTEndpoint "security.has_privileges".
-
-
Constructor Details
-
HasPrivilegesRequest
-
HasPrivilegesRequest
public HasPrivilegesRequest(java.util.function.Function<HasPrivilegesRequest.Builder,HasPrivilegesRequest.Builder> fn)
-
-
Method Details
-
user
@Nullable public java.lang.String user()UsernameAPI name:
user -
application
API name:application -
cluster
API name:cluster -
index
API name:index -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupHasPrivilegesRequestDeserializer
protected static void setupHasPrivilegesRequestDeserializer(DelegatingDeserializer<HasPrivilegesRequest.Builder> op)
-