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 BuilderTapplications(ApplicationPrivileges value, ApplicationPrivileges... values) A list of application privilege entriesfinal BuilderTA list of application privilege entriesfinal BuilderTA list of application privilege entriesfinal BuilderTcluster(ClusterPrivilege value, ClusterPrivilege... values) A list of cluster privileges.final BuilderTA list of cluster privileges.final BuilderTA list of cluster privileges.final BuilderTdescription(String value) Optional description of the role descriptorfinal BuilderTglobal(GlobalPrivilege value, GlobalPrivilege... values) An object defining global privileges.final BuilderTAn object defining global privileges.final BuilderTglobal(List<GlobalPrivilege> list) An object defining global privileges.final BuilderTindices(IndicesPrivileges value, IndicesPrivileges... values) A list of indices permissions entries.final BuilderTA list of indices permissions entries.final BuilderTindices(List<IndicesPrivileges> list) A list of indices permissions entries.final BuilderTOptional meta-data.final BuilderTOptional meta-data.final BuilderTremoteCluster(RemoteClusterPrivileges value, RemoteClusterPrivileges... values) A list of cluster permissions for remote clusters.final BuilderTA list of cluster permissions for remote clusters.final BuilderTA list of cluster permissions for remote clusters.final BuilderTremoteIndices(RemoteIndicesPrivileges value, RemoteIndicesPrivileges... values) A list of indices permissions for remote clusters.final BuilderTA list of indices permissions for remote clusters.final BuilderTA list of indices permissions for remote clusters.final BuilderTrestriction(Restriction value) Restriction for when the role descriptor is allowed to be effective.final BuilderTRestriction for when the role descriptor is allowed to be effective.final BuilderTA list of users that the API keys can impersonate.final BuilderTA list of users that the API keys can impersonate.protected abstract BuilderTself()final BuilderTtransientMetadata(String key, JsonData value) API name:transient_metadatafinal BuilderTtransientMetadata(Map<String, JsonData> map) API name:transient_metadataMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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:
clusterAdds all elements of
listtocluster. -
cluster
A list of cluster privileges. These privileges define the cluster level actions that API keys are able to execute.API name:
clusterAdds one or more values to
cluster. -
cluster
A list of cluster privileges. These privileges define the cluster level actions that API keys are able to execute.API name:
clusterAdds one or more enum values to
cluster. -
indices
A list of indices permissions entries.API name:
indicesAdds all elements of
listtoindices. -
indices
A list of indices permissions entries.API name:
indicesAdds 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:
indicesAdds a value to
indicesusing a builder lambda. -
remoteIndices
A list of indices permissions for remote clusters.API name:
remote_indicesAdds all elements of
listtoremoteIndices. -
remoteIndices
public final BuilderT remoteIndices(RemoteIndicesPrivileges value, RemoteIndicesPrivileges... values) A list of indices permissions for remote clusters.API name:
remote_indicesAdds 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_indicesAdds a value to
remoteIndicesusing 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_clusterAdds all elements of
listtoremoteCluster. -
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_clusterAdds 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_clusterAdds a value to
remoteClusterusing 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:
globalAdds all elements of
listtoglobal. -
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:
globalAdds 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:
globalAdds a value to
globalusing a builder lambda. -
applications
A list of application privilege entriesAPI name:
applicationsAdds all elements of
listtoapplications. -
applications
A list of application privilege entriesAPI name:
applicationsAdds one or more values to
applications. -
applications
public final BuilderT applications(Function<ApplicationPrivileges.Builder, ObjectBuilder<ApplicationPrivileges>> fn) A list of application privilege entriesAPI name:
applicationsAdds a value to
applicationsusing a builder lambda. -
metadata
Optional meta-data. Within the metadata object, keys that begin with_are reserved for system usage.API name:
metadataAdds all entries of
maptometadata. -
metadata
Optional meta-data. Within the metadata object, keys that begin with_are reserved for system usage.API name:
metadataAdds 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_asfield, but a non-empty list will be rejected.API name:
run_asAdds all elements of
listtorunAs. -
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_asfield, but a non-empty list will be rejected.API name:
run_asAdds 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_metadataAdds all entries of
maptotransientMetadata. -
transientMetadata
API name:transient_metadataAdds an entry to
transientMetadata. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<BuilderT extends RoleDescriptor.AbstractBuilder<BuilderT>>
-