Class HasPrivilegesRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<HasPrivilegesRequest.Builder>
co.elastic.clients.elasticsearch.security.HasPrivilegesRequest.Builder
- All Implemented Interfaces:
- WithJson<HasPrivilegesRequest.Builder>,- ObjectBuilder<HasPrivilegesRequest>
- Enclosing class:
- HasPrivilegesRequest
public static class HasPrivilegesRequest.Builder
extends RequestBase.AbstractBuilder<HasPrivilegesRequest.Builder>
implements ObjectBuilder<HasPrivilegesRequest>
Builder for 
HasPrivilegesRequest.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionapplication(ApplicationPrivilegesCheck value, ApplicationPrivilegesCheck... values) API name:applicationapplication(Function<ApplicationPrivilegesCheck.Builder, ObjectBuilder<ApplicationPrivilegesCheck>> fn) API name:applicationAPI name:applicationbuild()Builds aHasPrivilegesRequest.cluster(ClusterPrivilege value, ClusterPrivilege... values) A list of the cluster privileges that you want to check.A list of the cluster privileges that you want to check.A list of the cluster privileges that you want to check.index(IndexPrivilegesCheck value, IndexPrivilegesCheck... values) API name:indexAPI name:indexindex(List<IndexPrivilegesCheck> list) API name:indexprotected HasPrivilegesRequest.Builderself()UsernameMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
applicationAPI name:applicationAdds all elements of listtoapplication.
- 
applicationpublic final HasPrivilegesRequest.Builder application(ApplicationPrivilegesCheck value, ApplicationPrivilegesCheck... values) API name:applicationAdds one or more values to application.
- 
applicationpublic final HasPrivilegesRequest.Builder application(Function<ApplicationPrivilegesCheck.Builder, ObjectBuilder<ApplicationPrivilegesCheck>> fn) API name:applicationAdds a value to applicationusing a builder lambda.
- 
clusterA list of the cluster privileges that you want to check.API name: clusterAdds all elements of listtocluster.
- 
clusterA list of the cluster privileges that you want to check.API name: clusterAdds one or more values to cluster.
- 
clusterpublic final HasPrivilegesRequest.Builder cluster(ClusterPrivilege value, ClusterPrivilege... values) A list of the cluster privileges that you want to check.API name: clusterAdds one or more enum values to cluster.
- 
indexAPI name:indexAdds all elements of listtoindex.
- 
indexpublic final HasPrivilegesRequest.Builder index(IndexPrivilegesCheck value, IndexPrivilegesCheck... values) API name:indexAdds one or more values to index.
- 
indexpublic final HasPrivilegesRequest.Builder index(Function<IndexPrivilegesCheck.Builder, ObjectBuilder<IndexPrivilegesCheck>> fn) API name:indexAdds a value to indexusing a builder lambda.
- 
userUsernameAPI name: user
- 
self- Specified by:
- selfin class- RequestBase.AbstractBuilder<HasPrivilegesRequest.Builder>
 
- 
buildBuilds aHasPrivilegesRequest.- Specified by:
- buildin interface- ObjectBuilder<HasPrivilegesRequest>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-