Class GetPrivilegesRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<GetPrivilegesRequest.Builder>
co.elastic.clients.elasticsearch.security.GetPrivilegesRequest.Builder
- All Implemented Interfaces:
WithJson<GetPrivilegesRequest.Builder>
,ObjectBuilder<GetPrivilegesRequest>
- Enclosing class:
- GetPrivilegesRequest
public static class GetPrivilegesRequest.Builder
extends RequestBase.AbstractBuilder<GetPrivilegesRequest.Builder>
implements ObjectBuilder<GetPrivilegesRequest>
Builder for
GetPrivilegesRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplication
(String value) The name of the application.build()
Builds aGetPrivilegesRequest
.The name of the privilege.The name of the privilege.protected GetPrivilegesRequest.Builder
self()
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
-
name
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:
name
Adds all elements of
list
toname
. -
name
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:
name
Adds one or more values to
name
. -
self
- Specified by:
self
in classRequestBase.AbstractBuilder<GetPrivilegesRequest.Builder>
-
build
Builds aGetPrivilegesRequest
.- Specified by:
build
in interfaceObjectBuilder<GetPrivilegesRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-