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 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,ElasticsearchError>
ENDPOINT
Endpoint "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:application
java.util.List<ClusterPrivilege>
cluster()
API name:cluster
java.util.List<IndexPrivilegesCheck>
index()
API name:index
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(DelegatingDeserializer<HasPrivilegesRequest.Builder> op)
java.lang.String
user()
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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupHasPrivilegesRequestDeserializer
protected static void setupHasPrivilegesRequestDeserializer(DelegatingDeserializer<HasPrivilegesRequest.Builder> op)
-