Class GetUserPrivilegesRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<GetUserPrivilegesRequest.Builder>
co.elastic.clients.elasticsearch.security.GetUserPrivilegesRequest.Builder
- All Implemented Interfaces:
WithJson<GetUserPrivilegesRequest.Builder>
,ObjectBuilder<GetUserPrivilegesRequest>
- Enclosing class:
- GetUserPrivilegesRequest
public static class GetUserPrivilegesRequest.Builder
extends RequestBase.AbstractBuilder<GetUserPrivilegesRequest.Builder>
implements ObjectBuilder<GetUserPrivilegesRequest>
Builder for
GetUserPrivilegesRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplication
(String value) The name of the application.build()
Builds aGetUserPrivilegesRequest
.priviledge
(String value) The name of the privilege.protected GetUserPrivilegesRequest.Builder
self()
API name:username
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
application
The name of the application. Application privileges are always associated with exactly one application. If you do not specify this parameter, the API returns information about all privileges for all applications.API name:
application
-
priviledge
The name of the privilege. If you do not specify this parameter, the API returns information about all privileges for the requested application.API name:
priviledge
-
username
API name:username
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<GetUserPrivilegesRequest.Builder>
-
build
Builds aGetUserPrivilegesRequest
.- Specified by:
build
in interfaceObjectBuilder<GetUserPrivilegesRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-