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
-
Method Summary
Modifier and TypeMethodDescriptionapplication
(String value) Application namebuild()
Builds aGetPrivilegesRequest
.Privilege namePrivilege nameprotected 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
Application nameAPI name:
application
-
name
Privilege nameAPI name:
name
Adds all elements of
list
toname
. -
name
Privilege nameAPI 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.
-