Class RoleDescriptorRead.Builder
- All Implemented Interfaces:
- WithJson<RoleDescriptorRead.Builder>,- ObjectBuilder<RoleDescriptorRead>
- Enclosing class:
- RoleDescriptorRead
RoleDescriptorRead.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionapplications(ApplicationPrivileges value, ApplicationPrivileges... values) A list of application privilege entriesA list of application privilege entriesA list of application privilege entriesbuild()Builds aRoleDescriptorRead.cluster(ClusterPrivilege value, ClusterPrivilege... values) Required - A list of cluster privileges.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.Builderself()transientMetadata(String key, JsonData value) API name:transient_metadatatransientMetadata(Map<String, JsonData> map) API name:transient_metadataMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
clusterRequired - 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.
- 
clusterRequired - 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.
- 
clusterRequired - 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.
- 
indicesRequired - A list of indices permissions entries.API name: indicesAdds all elements of listtoindices.
- 
indicespublic final RoleDescriptorRead.Builder indices(IndicesPrivileges value, IndicesPrivileges... values) Required - A list of indices permissions entries.API name: indicesAdds one or more values to indices.
- 
indicespublic final RoleDescriptorRead.Builder indices(Function<IndicesPrivileges.Builder, ObjectBuilder<IndicesPrivileges>> fn) Required - A list of indices permissions entries.API name: indicesAdds a value to indicesusing a builder lambda.
- 
remoteIndicesA list of indices permissions for remote clusters.API name: remote_indicesAdds all elements of listtoremoteIndices.
- 
remoteIndicespublic final RoleDescriptorRead.Builder remoteIndices(RemoteIndicesPrivileges value, RemoteIndicesPrivileges... values) A list of indices permissions for remote clusters.API name: remote_indicesAdds one or more values to remoteIndices.
- 
remoteIndicespublic final RoleDescriptorRead.Builder 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.
- 
remoteClusterA 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.
- 
remoteClusterpublic 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_clusterAdds one or more values to remoteCluster.
- 
remoteClusterpublic 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_clusterAdds a value to remoteClusterusing a builder lambda.
- 
globalAn 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.
- 
globalAn 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.
- 
globalpublic 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: globalAdds a value to globalusing a builder lambda.
- 
applicationsA list of application privilege entriesAPI name: applicationsAdds all elements of listtoapplications.
- 
applicationspublic final RoleDescriptorRead.Builder applications(ApplicationPrivileges value, ApplicationPrivileges... values) A list of application privilege entriesAPI name: applicationsAdds one or more values to applications.
- 
applicationspublic final RoleDescriptorRead.Builder applications(Function<ApplicationPrivileges.Builder, ObjectBuilder<ApplicationPrivileges>> fn) A list of application privilege entriesAPI name: applicationsAdds a value to applicationsusing a builder lambda.
- 
metadataOptional meta-data. Within the metadata object, keys that begin with_are reserved for system usage.API name: metadataAdds all entries of maptometadata.
- 
metadataOptional meta-data. Within the metadata object, keys that begin with_are reserved for system usage.API name: metadataAdds an entry to metadata.
- 
runAsA list of users that the API keys can impersonate.API name: run_asAdds all elements of listtorunAs.
- 
runAsA list of users that the API keys can impersonate.API name: run_asAdds one or more values to runAs.
- 
descriptionAn optional description of the role descriptor.API name: description
- 
restrictionA restriction for when the role descriptor is allowed to be effective.API name: restriction
- 
restrictionpublic 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
- 
transientMetadataAPI name:transient_metadataAdds all entries of maptotransientMetadata.
- 
transientMetadataAPI name:transient_metadataAdds an entry to transientMetadata.
- 
self- Specified by:
- selfin class- WithJsonObjectBuilderBase<RoleDescriptorRead.Builder>
 
- 
buildBuilds aRoleDescriptorRead.- Specified by:
- buildin interface- ObjectBuilder<RoleDescriptorRead>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-