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
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description GetUserPrivilegesRequest.Builder
application(java.lang.String value)
The name of the application.GetUserPrivilegesRequest
build()
Builds aGetUserPrivilegesRequest
.GetUserPrivilegesRequest.Builder
priviledge(java.lang.String value)
The name of the privilege.protected GetUserPrivilegesRequest.Builder
self()
GetUserPrivilegesRequest.Builder
username(java.lang.String value)
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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:
java.lang.NullPointerException
- if some of the required fields are null.
-