Class HasPrivilegesRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.security.HasPrivilegesRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<HasPrivilegesRequest>
- Enclosing class:
- HasPrivilegesRequest
public static class HasPrivilegesRequest.Builder extends java.lang.Object implements ObjectBuilder<HasPrivilegesRequest>
Builder for
HasPrivilegesRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
user
UsernameAPI name:
user
-
application
public HasPrivilegesRequest.Builder application(@Nullable java.util.List<ApplicationPrivilegesCheck> value)API name:application
-
application
API name:application
-
addApplication
Add a value toapplication(List)
, creating the list if needed. 4 -
application
public HasPrivilegesRequest.Builder application(java.util.function.Function<ApplicationPrivilegesCheck.Builder,ObjectBuilder<ApplicationPrivilegesCheck>> fn)Setapplication(List)
to a singleton list. -
addApplication
public HasPrivilegesRequest.Builder addApplication(java.util.function.Function<ApplicationPrivilegesCheck.Builder,ObjectBuilder<ApplicationPrivilegesCheck>> fn)Add a value toapplication(List)
, creating the list if needed. 5 -
cluster
API name:cluster
-
cluster
API name:cluster
-
addCluster
Add a value tocluster(List)
, creating the list if needed. 4 -
index
API name:index
-
index
API name:index
-
addIndex
Add a value toindex(List)
, creating the list if needed. 4 -
index
public HasPrivilegesRequest.Builder index(java.util.function.Function<IndexPrivilegesCheck.Builder,ObjectBuilder<IndexPrivilegesCheck>> fn)Setindex(List)
to a singleton list. -
addIndex
public HasPrivilegesRequest.Builder addIndex(java.util.function.Function<IndexPrivilegesCheck.Builder,ObjectBuilder<IndexPrivilegesCheck>> fn)Add a value toindex(List)
, creating the list if needed. 5 -
build
Builds aHasPrivilegesRequest
.- Specified by:
build
in interfaceObjectBuilder<HasPrivilegesRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-