Class RoleDescriptorRead.Builder
- All Implemented Interfaces:
WithJson<RoleDescriptorRead.Builder>
,ObjectBuilder<RoleDescriptorRead>
- Enclosing class:
- RoleDescriptorRead
RoleDescriptorRead
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplications
(ApplicationPrivileges value, ApplicationPrivileges... values) A list of application privilege entriesA list of application privilege entriesA list of application privilege entriesbuild()
Builds aRoleDescriptorRead
.Required - A list of cluster privileges.Required - A list of cluster privileges.description
(String value) An optional description of the role descriptor.global
(GlobalPrivilege value, GlobalPrivilege... values) An object defining global privileges.An object defining global privileges.global
(List<GlobalPrivilege> list) An object defining global privileges.indices
(IndicesPrivileges value, IndicesPrivileges... values) Required - A list of indices permissions entries.Required - A list of indices permissions entries.indices
(List<IndicesPrivileges> list) Required - A list of indices permissions entries.Optional meta-data.Optional meta-data.remoteCluster
(RemoteClusterPrivileges value, RemoteClusterPrivileges... values) A list of cluster permissions for remote clusters.A list of cluster permissions for remote clusters.A list of cluster permissions for remote clusters.remoteIndices
(RemoteIndicesPrivileges value, RemoteIndicesPrivileges... values) A list of indices permissions for remote clusters.A list of indices permissions for remote clusters.A list of indices permissions for remote clusters.restriction
(Restriction value) A restriction for when the role descriptor is allowed to be effective.A restriction for when the role descriptor is allowed to be effective.A list of users that the API keys can impersonate.A list of users that the API keys can impersonate.protected RoleDescriptorRead.Builder
self()
transientMetadata
(String key, JsonData value) API name:transient_metadata
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
-
Builder
public Builder()
-
-
Method Details
-
cluster
Required - 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
Required - 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
Required - A list of indices permissions entries.API name:
indices
Adds all elements of
list
toindices
. -
indices
public final RoleDescriptorRead.Builder indices(IndicesPrivileges value, IndicesPrivileges... values) Required - A list of indices permissions entries.API name:
indices
Adds one or more values to
indices
. -
indices
public final RoleDescriptorRead.Builder indices(Function<IndicesPrivileges.Builder, ObjectBuilder<IndicesPrivileges>> fn) Required - 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 RoleDescriptorRead.Builder 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 RoleDescriptorRead.Builder 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 RoleDescriptorRead.Builder 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 RoleDescriptorRead.Builder 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
public final RoleDescriptorRead.Builder global(Function<GlobalPrivilege.Builder, ObjectBuilder<GlobalPrivilege>> fn) 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
public final RoleDescriptorRead.Builder applications(ApplicationPrivileges value, ApplicationPrivileges... values) A list of application privilege entriesAPI name:
applications
Adds one or more values to
applications
. -
applications
public final RoleDescriptorRead.Builder 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.API name:
run_as
Adds all elements of
list
torunAs
. -
runAs
A list of users that the API keys can impersonate.API name:
run_as
Adds one or more values to
runAs
. -
description
An optional description of the role descriptor.API name:
description
-
restriction
A restriction for when the role descriptor is allowed to be effective.API name:
restriction
-
restriction
public final RoleDescriptorRead.Builder restriction(Function<Restriction.Builder, ObjectBuilder<Restriction>> fn) A 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<RoleDescriptorRead.Builder>
-
build
Builds aRoleDescriptorRead
.- Specified by:
build
in interfaceObjectBuilder<RoleDescriptorRead>
- Throws:
NullPointerException
- if some of the required fields are null.
-