Class RoleDescriptor.Builder
java.lang.Object
co.elastic.clients.elasticsearch.security.get_service_accounts.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
Modifier and Type Method Description RoleDescriptor.Builder
addApplications(ApplicationPrivileges value)
Add a value toapplications(List)
, creating the list if needed.RoleDescriptor.Builder
addApplications(java.util.function.Function<ApplicationPrivileges.Builder,ObjectBuilder<ApplicationPrivileges>> fn)
Add a value toapplications(List)
, creating the list if needed.RoleDescriptor.Builder
addCluster(java.lang.String value)
Add a value tocluster(List)
, creating the list if needed.RoleDescriptor.Builder
addGlobal(GlobalPrivilege value)
Add a value toglobal(List)
, creating the list if needed.RoleDescriptor.Builder
addGlobal(java.util.function.Function<GlobalPrivilege.Builder,ObjectBuilder<GlobalPrivilege>> fn)
Add a value toglobal(List)
, creating the list if needed.RoleDescriptor.Builder
addIndices(IndicesPrivileges value)
Add a value toindices(List)
, creating the list if needed.RoleDescriptor.Builder
addIndices(java.util.function.Function<IndicesPrivileges.Builder,ObjectBuilder<IndicesPrivileges>> fn)
Add a value toindices(List)
, creating the list if needed.RoleDescriptor.Builder
addRunAs(java.lang.String value)
Add a value torunAs(List)
, creating the list if needed.RoleDescriptor.Builder
applications(ApplicationPrivileges... value)
API name:applications
RoleDescriptor.Builder
applications(java.util.function.Function<ApplicationPrivileges.Builder,ObjectBuilder<ApplicationPrivileges>> fn)
Setapplications(List)
to a singleton list.RoleDescriptor.Builder
applications(java.util.List<ApplicationPrivileges> value)
API name:applications
RoleDescriptor
build()
Builds aRoleDescriptor
.RoleDescriptor.Builder
cluster(java.lang.String... value)
Required - API name:cluster
RoleDescriptor.Builder
cluster(java.util.List<java.lang.String> value)
Required - API name:cluster
RoleDescriptor.Builder
global(GlobalPrivilege... value)
API name:global
RoleDescriptor.Builder
global(java.util.function.Function<GlobalPrivilege.Builder,ObjectBuilder<GlobalPrivilege>> fn)
Setglobal(List)
to a singleton list.RoleDescriptor.Builder
global(java.util.List<GlobalPrivilege> value)
API name:global
RoleDescriptor.Builder
indices(IndicesPrivileges... value)
Required - API name:indices
RoleDescriptor.Builder
indices(java.util.function.Function<IndicesPrivileges.Builder,ObjectBuilder<IndicesPrivileges>> fn)
Setindices(List)
to a singleton list.RoleDescriptor.Builder
indices(java.util.List<IndicesPrivileges> value)
Required - API name:indices
RoleDescriptor.Builder
metadata(java.util.Map<java.lang.String,JsonData> value)
API name:metadata
RoleDescriptor.Builder
putMetadata(java.lang.String key, JsonData value)
Add a key/value tometadata(Map)
, creating the map if needed.RoleDescriptor.Builder
putTransientMetadata(java.lang.String key, JsonData value)
Add a key/value totransientMetadata(Map)
, creating the map if needed.RoleDescriptor.Builder
runAs(java.lang.String... value)
API name:run_as
RoleDescriptor.Builder
runAs(java.util.List<java.lang.String> value)
API name:run_as
RoleDescriptor.Builder
transientMetadata(java.util.Map<java.lang.String,JsonData> value)
API name:transient_metadata
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. -
indices
Required - API name:indices
-
indices
Required - API name:indices
-
addIndices
Add a value toindices(List)
, creating the list if needed. -
indices
public RoleDescriptor.Builder indices(java.util.function.Function<IndicesPrivileges.Builder,ObjectBuilder<IndicesPrivileges>> fn)Setindices(List)
to a singleton list. -
addIndices
public RoleDescriptor.Builder addIndices(java.util.function.Function<IndicesPrivileges.Builder,ObjectBuilder<IndicesPrivileges>> fn)Add a value toindices(List)
, creating the list if needed. -
global
API name:global
-
global
API name:global
-
addGlobal
Add a value toglobal(List)
, creating the list if needed. -
global
public RoleDescriptor.Builder global(java.util.function.Function<GlobalPrivilege.Builder,ObjectBuilder<GlobalPrivilege>> fn)Setglobal(List)
to a singleton list. -
addGlobal
public RoleDescriptor.Builder addGlobal(java.util.function.Function<GlobalPrivilege.Builder,ObjectBuilder<GlobalPrivilege>> fn)Add a value toglobal(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. -
metadata
API name:metadata
-
putMetadata
Add a key/value tometadata(Map)
, creating the map if needed. -
runAs
API name:run_as
-
runAs
API name:run_as
-
addRunAs
Add a value torunAs(List)
, creating the list if needed. -
transientMetadata
public RoleDescriptor.Builder transientMetadata(@Nullable java.util.Map<java.lang.String,JsonData> value)API name:transient_metadata
-
putTransientMetadata
Add a key/value totransientMetadata(Map)
, creating the map if needed. -
build
Builds aRoleDescriptor
.- Specified by:
build
in interfaceObjectBuilder<RoleDescriptor>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-