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.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.WithJsonObjectBuilderBase
withJsonMethods 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:
clusterAdds all elements of
listtocluster. -
cluster
Required - 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
Required - 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
Required - A list of indices permissions entries.API name:
indicesAdds all elements of
listtoindices. -
indices
public final RoleDescriptorRead.Builder indices(IndicesPrivileges value, IndicesPrivileges... values) Required - A list of indices permissions entries.API name:
indicesAdds 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:
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 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. -
remoteIndices
public 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. -
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 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. -
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_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
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:
globalAdds a value to
globalusing a builder lambda. -
applications
A list of application privilege entriesAPI name:
applicationsAdds all elements of
listtoapplications. -
applications
public final RoleDescriptorRead.Builder applications(ApplicationPrivileges value, ApplicationPrivileges... values) A list of application privilege entriesAPI name:
applicationsAdds 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:
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.API name:
run_asAdds all elements of
listtorunAs. -
runAs
A list of users that the API keys can impersonate.API name:
run_asAdds 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_metadataAdds all entries of
maptotransientMetadata. -
transientMetadata
API name:transient_metadataAdds an entry to
transientMetadata. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<RoleDescriptorRead.Builder>
-
build
Builds aRoleDescriptorRead.- Specified by:
buildin interfaceObjectBuilder<RoleDescriptorRead>- Throws:
NullPointerException- if some of the required fields are null.
-