Class RoleDescriptor.AbstractBuilder<BuilderT extends RoleDescriptor.AbstractBuilder<BuilderT>>
- All Implemented Interfaces:
WithJson<BuilderT>
- Direct Known Subclasses:
QueryRole.Builder
,RoleDescriptor.Builder
- Enclosing class:
- RoleDescriptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal BuilderT
applications
(ApplicationPrivileges value, ApplicationPrivileges... values) A list of application privilege entriesfinal BuilderT
A list of application privilege entriesfinal BuilderT
A list of application privilege entriesfinal BuilderT
A list of cluster privileges.final BuilderT
A list of cluster privileges.final BuilderT
description
(String value) Optional description of the role descriptorfinal BuilderT
global
(GlobalPrivilege value, GlobalPrivilege... values) An object defining global privileges.final BuilderT
An object defining global privileges.final BuilderT
global
(List<GlobalPrivilege> list) An object defining global privileges.final BuilderT
indices
(IndicesPrivileges value, IndicesPrivileges... values) A list of indices permissions entries.final BuilderT
A list of indices permissions entries.final BuilderT
indices
(List<IndicesPrivileges> list) A list of indices permissions entries.final BuilderT
Optional meta-data.final BuilderT
Optional meta-data.final BuilderT
remoteCluster
(RemoteClusterPrivileges value, RemoteClusterPrivileges... values) A list of cluster permissions for remote clusters.final BuilderT
A list of cluster permissions for remote clusters.final BuilderT
A list of cluster permissions for remote clusters.final BuilderT
remoteIndices
(RemoteIndicesPrivileges value, RemoteIndicesPrivileges... values) A list of indices permissions for remote clusters.final BuilderT
A list of indices permissions for remote clusters.final BuilderT
A list of indices permissions for remote clusters.final BuilderT
restriction
(Restriction value) Restriction for when the role descriptor is allowed to be effective.final BuilderT
Restriction for when the role descriptor is allowed to be effective.final BuilderT
A list of users that the API keys can impersonate.final BuilderT
A list of users that the API keys can impersonate.protected abstract BuilderT
self()
final BuilderT
transientMetadata
(String key, JsonData value) API name:transient_metadata
final BuilderT
transientMetadata
(Map<String, JsonData> map) API name:transient_metadata
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
AbstractBuilder
public AbstractBuilder()
-
-
Method Details
-
cluster
A list of cluster privileges. These privileges define the cluster level actions that API keys are able to execute.API name:
cluster
Adds all elements of
list
tocluster
. -
cluster
A list of cluster privileges. These privileges define the cluster level actions that API keys are able to execute.API name:
cluster
Adds one or more values to
cluster
. -
indices
A list of indices permissions entries.API name:
indices
Adds all elements of
list
toindices
. -
indices
A list of indices permissions entries.API name:
indices
Adds one or more values to
indices
. -
indices
public final BuilderT indices(Function<IndicesPrivileges.Builder, ObjectBuilder<IndicesPrivileges>> fn) A list of indices permissions entries.API name:
indices
Adds a value to
indices
using a builder lambda. -
remoteIndices
A list of indices permissions for remote clusters.API name:
remote_indices
Adds all elements of
list
toremoteIndices
. -
remoteIndices
public final BuilderT remoteIndices(RemoteIndicesPrivileges value, RemoteIndicesPrivileges... values) A list of indices permissions for remote clusters.API name:
remote_indices
Adds one or more values to
remoteIndices
. -
remoteIndices
public final BuilderT remoteIndices(Function<RemoteIndicesPrivileges.Builder, ObjectBuilder<RemoteIndicesPrivileges>> fn) A list of indices permissions for remote clusters.API name:
remote_indices
Adds a value to
remoteIndices
using a builder lambda. -
remoteCluster
A list of cluster permissions for remote clusters. NOTE: This is limited a subset of the cluster permissions.API name:
remote_cluster
Adds all elements of
list
toremoteCluster
. -
remoteCluster
public final BuilderT remoteCluster(RemoteClusterPrivileges value, RemoteClusterPrivileges... values) A list of cluster permissions for remote clusters. NOTE: This is limited a subset of the cluster permissions.API name:
remote_cluster
Adds one or more values to
remoteCluster
. -
remoteCluster
public final BuilderT remoteCluster(Function<RemoteClusterPrivileges.Builder, ObjectBuilder<RemoteClusterPrivileges>> fn) A list of cluster permissions for remote clusters. NOTE: This is limited a subset of the cluster permissions.API name:
remote_cluster
Adds a value to
remoteCluster
using a builder lambda. -
global
An object defining global privileges. A global privilege is a form of cluster privilege that is request-aware. Support for global privileges is currently limited to the management of application privileges.API name:
global
Adds all elements of
list
toglobal
. -
global
An object defining global privileges. A global privilege is a form of cluster privilege that is request-aware. Support for global privileges is currently limited to the management of application privileges.API name:
global
Adds one or more values to
global
. -
global
An object defining global privileges. A global privilege is a form of cluster privilege that is request-aware. Support for global privileges is currently limited to the management of application privileges.API name:
global
Adds a value to
global
using a builder lambda. -
applications
A list of application privilege entriesAPI name:
applications
Adds all elements of
list
toapplications
. -
applications
A list of application privilege entriesAPI name:
applications
Adds one or more values to
applications
. -
applications
public final BuilderT applications(Function<ApplicationPrivileges.Builder, ObjectBuilder<ApplicationPrivileges>> fn) A list of application privilege entriesAPI name:
applications
Adds a value to
applications
using a builder lambda. -
metadata
Optional meta-data. Within the metadata object, keys that begin with_
are reserved for system usage.API name:
metadata
Adds all entries of
map
tometadata
. -
metadata
Optional meta-data. Within the metadata object, keys that begin with_
are reserved for system usage.API name:
metadata
Adds an entry to
metadata
. -
runAs
A list of users that the API keys can impersonate. NOTE: In Elastic Cloud Serverless, the run-as feature is disabled. For API compatibility, you can still specify an emptyrun_as
field, but a non-empty list will be rejected.API name:
run_as
Adds all elements of
list
torunAs
. -
runAs
A list of users that the API keys can impersonate. NOTE: In Elastic Cloud Serverless, the run-as feature is disabled. For API compatibility, you can still specify an emptyrun_as
field, but a non-empty list will be rejected.API name:
run_as
Adds one or more values to
runAs
. -
description
Optional description of the role descriptorAPI name:
description
-
restriction
Restriction for when the role descriptor is allowed to be effective.API name:
restriction
-
restriction
Restriction for when the role descriptor is allowed to be effective.API name:
restriction
-
transientMetadata
API name:transient_metadata
Adds all entries of
map
totransientMetadata
. -
transientMetadata
API name:transient_metadata
Adds an entry to
transientMetadata
. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<BuilderT extends RoleDescriptor.AbstractBuilder<BuilderT>>
-