Class PrivilegesCheck.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<PrivilegesCheck.Builder>
co.elastic.clients.elasticsearch.security.has_privileges_user_profile.PrivilegesCheck.Builder
- All Implemented Interfaces:
WithJson<PrivilegesCheck.Builder>
,ObjectBuilder<PrivilegesCheck>
- Enclosing class:
- PrivilegesCheck
public static class PrivilegesCheck.Builder extends WithJsonObjectBuilderBase<PrivilegesCheck.Builder> implements ObjectBuilder<PrivilegesCheck>
Builder for
PrivilegesCheck
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
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
-
application
API name:application
Adds all elements of
list
toapplication
. -
application
public final PrivilegesCheck.Builder application(ApplicationPrivilegesCheck value, ApplicationPrivilegesCheck... values)API name:application
Adds one or more values to
application
. -
application
public final PrivilegesCheck.Builder application(java.util.function.Function<ApplicationPrivilegesCheck.Builder,ObjectBuilder<ApplicationPrivilegesCheck>> fn)API name:application
Adds a value to
application
using a builder lambda. -
cluster
A list of the cluster privileges that you want to check.API name:
cluster
Adds all elements of
list
tocluster
. -
cluster
A list of the cluster privileges that you want to check.API name:
cluster
Adds one or more values to
cluster
. -
index
API name:index
Adds all elements of
list
toindex
. -
index
public final PrivilegesCheck.Builder index(IndexPrivilegesCheck value, IndexPrivilegesCheck... values)API name:index
Adds one or more values to
index
. -
index
public final PrivilegesCheck.Builder index(java.util.function.Function<IndexPrivilegesCheck.Builder,ObjectBuilder<IndexPrivilegesCheck>> fn)API name:index
Adds a value to
index
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<PrivilegesCheck.Builder>
-
build
Builds aPrivilegesCheck
.- Specified by:
build
in interfaceObjectBuilder<PrivilegesCheck>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-