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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplication(ApplicationPrivilegesCheck value, ApplicationPrivilegesCheck... values) API name:applicationapplication(Function<ApplicationPrivilegesCheck.Builder, ObjectBuilder<ApplicationPrivilegesCheck>> fn) API name:applicationAPI name:applicationbuild()Builds aHasPrivilegesRequest.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.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
application
API name:applicationAdds all elements of
listtoapplication. -
application
public final HasPrivilegesRequest.Builder application(ApplicationPrivilegesCheck value, ApplicationPrivilegesCheck... values) API name:applicationAdds one or more values to
application. -
application
public final HasPrivilegesRequest.Builder application(Function<ApplicationPrivilegesCheck.Builder, ObjectBuilder<ApplicationPrivilegesCheck>> fn) API name:applicationAdds a value to
applicationusing a builder lambda. -
cluster
A list of the cluster privileges that you want to check.API name:
clusterAdds all elements of
listtocluster. -
cluster
A list of the cluster privileges that you want to check.API name:
clusterAdds one or more values to
cluster. -
index
API name:indexAdds all elements of
listtoindex. -
index
public final HasPrivilegesRequest.Builder index(IndexPrivilegesCheck value, IndexPrivilegesCheck... values) API name:indexAdds one or more values to
index. -
index
public final HasPrivilegesRequest.Builder index(Function<IndexPrivilegesCheck.Builder, ObjectBuilder<IndexPrivilegesCheck>> fn) API name:indexAdds a value to
indexusing a builder lambda. -
user
UsernameAPI name:
user -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<HasPrivilegesRequest.Builder>
-
build
Builds aHasPrivilegesRequest.- Specified by:
buildin interfaceObjectBuilder<HasPrivilegesRequest>- Throws:
NullPointerException- if some of the required fields are null.
-