Class RoleDescriptor.Builder
- All Implemented Interfaces:
WithJson<RoleDescriptor.Builder>,ObjectBuilder<RoleDescriptor>
- Enclosing class:
- RoleDescriptor
RoleDescriptor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal RoleDescriptor.Builderapplications(ApplicationPrivileges value, ApplicationPrivileges... values) A list of application privilege entriesfinal RoleDescriptor.BuilderA list of application privilege entriesfinal RoleDescriptor.BuilderA list of application privilege entriesbuild()Builds aRoleDescriptor.final RoleDescriptor.BuilderA list of cluster privileges.final RoleDescriptor.BuilderA list of cluster privileges.final RoleDescriptor.Builderglobal(GlobalPrivilege value, GlobalPrivilege... values) An object defining global privileges.final RoleDescriptor.BuilderAn object defining global privileges.final RoleDescriptor.Builderglobal(List<GlobalPrivilege> list) An object defining global privileges.final RoleDescriptor.Builderindices(IndicesPrivileges value, IndicesPrivileges... values) A list of indices permissions entries.final RoleDescriptor.BuilderA list of indices permissions entries.final RoleDescriptor.Builderindices(List<IndicesPrivileges> list) A list of indices permissions entries.final RoleDescriptor.BuilderOptional meta-data.final RoleDescriptor.BuilderOptional meta-data.final RoleDescriptor.BuilderA list of users that the API keys can impersonate.final RoleDescriptor.BuilderA list of users that the API keys can impersonate.protected RoleDescriptor.Builderself()final RoleDescriptor.BuilderAPI name:transient_metadatafinal RoleDescriptor.BuildertransientMetadata(Function<TransientMetadataConfig.Builder, ObjectBuilder<TransientMetadataConfig>> fn) 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
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. -
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 RoleDescriptor.Builder indices(Function<IndicesPrivileges.Builder, ObjectBuilder<IndicesPrivileges>> fn) A list of indices permissions entries.API name:
indicesAdds a value to
indicesusing 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 RoleDescriptor.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 RoleDescriptor.Builder applications(ApplicationPrivileges value, ApplicationPrivileges... values) A list of application privilege entriesAPI name:
applicationsAdds one or more values to
applications. -
applications
public final RoleDescriptor.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. -
transientMetadata
API name:transient_metadata -
transientMetadata
public final RoleDescriptor.Builder transientMetadata(Function<TransientMetadataConfig.Builder, ObjectBuilder<TransientMetadataConfig>> fn) API name:transient_metadata -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<RoleDescriptor.Builder>
-
build
Builds aRoleDescriptor.- Specified by:
buildin interfaceObjectBuilder<RoleDescriptor>- Throws:
NullPointerException- if some of the required fields are null.
-