Class RoleDescriptor.Builder
java.lang.Object
co.elastic.clients.elasticsearch.security.create_api_key.RoleDescriptor.Builder
- All Implemented Interfaces:
ObjectBuilder<RoleDescriptor>
- Enclosing class:
- RoleDescriptor
public static class RoleDescriptor.Builder extends java.lang.Object implements ObjectBuilder<RoleDescriptor>
Builder for
RoleDescriptor
.-
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
-
cluster
Required - API name:cluster
-
cluster
Required - API name:cluster
-
addCluster
Add a value tocluster(List)
, creating the list if needed. -
index
Required - API name:index
-
index
Required - API name:index
-
addIndex
Add a value toindex(List)
, creating the list if needed. -
index
public RoleDescriptor.Builder index(java.util.function.Function<IndexPrivileges.Builder,ObjectBuilder<IndexPrivileges>> fn)Setindex(List)
to a singleton list. -
addIndex
public RoleDescriptor.Builder addIndex(java.util.function.Function<IndexPrivileges.Builder,ObjectBuilder<IndexPrivileges>> fn)Add a value toindex(List)
, creating the list if needed. -
applications
API name:applications
-
applications
API name:applications
-
addApplications
Add a value toapplications(List)
, creating the list if needed. -
applications
public RoleDescriptor.Builder applications(java.util.function.Function<ApplicationPrivileges.Builder,ObjectBuilder<ApplicationPrivileges>> fn)Setapplications(List)
to a singleton list. -
addApplications
public RoleDescriptor.Builder addApplications(java.util.function.Function<ApplicationPrivileges.Builder,ObjectBuilder<ApplicationPrivileges>> fn)Add a value toapplications(List)
, creating the list if needed. -
build
Builds aRoleDescriptor
.- Specified by:
build
in interfaceObjectBuilder<RoleDescriptor>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-