Class HasPrivilegesRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<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 WithJsonObjectBuilderBase<HasPrivilegesRequest.Builder> implements ObjectBuilder<HasPrivilegesRequest>
Builder for
HasPrivilegesRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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
public final HasPrivilegesRequest.Builder application(java.util.List<ApplicationPrivilegesCheck> list)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(java.util.function.Function<ApplicationPrivilegesCheck.Builder,ObjectBuilder<ApplicationPrivilegesCheck>> fn)API name:applicationAdds a value to
applicationusing a builder lambda. -
cluster
API name:clusterAdds all elements of
listtocluster. -
cluster
public final HasPrivilegesRequest.Builder cluster(ClusterPrivilege value, ClusterPrivilege... values)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(java.util.function.Function<IndexPrivilegesCheck.Builder,ObjectBuilder<IndexPrivilegesCheck>> fn)API name:indexAdds a value to
indexusing a builder lambda. -
user
UsernameAPI name:
user -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<HasPrivilegesRequest.Builder>
-
build
Builds aHasPrivilegesRequest.- Specified by:
buildin interfaceObjectBuilder<HasPrivilegesRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-