Class PutRoleRequest.Builder
- All Implemented Interfaces:
WithJson<PutRoleRequest.Builder>,ObjectBuilder<PutRoleRequest>
- Enclosing class:
- PutRoleRequest
PutRoleRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal PutRoleRequest.Builderapplications(ApplicationPrivileges value, ApplicationPrivileges... values) A list of application privilege entries.final PutRoleRequest.BuilderA list of application privilege entries.final PutRoleRequest.BuilderA list of application privilege entries.build()Builds aPutRoleRequest.final PutRoleRequest.Buildercluster(ClusterPrivilege value, ClusterPrivilege... values) A list of cluster privileges.final PutRoleRequest.BuilderA list of cluster privileges.final PutRoleRequest.BuilderA list of cluster privileges.final PutRoleRequest.Builderdescription(String value) Optional description of the role descriptorfinal PutRoleRequest.BuilderAn object defining global privileges.final PutRoleRequest.BuilderAn object defining global privileges.final PutRoleRequest.Builderindices(IndicesPrivileges value, IndicesPrivileges... values) A list of indices permissions entries.final PutRoleRequest.BuilderA list of indices permissions entries.final PutRoleRequest.Builderindices(List<IndicesPrivileges> list) A list of indices permissions entries.final PutRoleRequest.BuilderOptional metadata.final PutRoleRequest.BuilderOptional metadata.final PutRoleRequest.BuilderRequired - The name of the role that is being created or updated.final PutRoleRequest.BuilderIftrue(the default) then refresh the affected shards to make this operation visible to search, ifwait_forthen wait for a refresh to make this operation visible to search, iffalsethen do nothing with refreshes.final PutRoleRequest.BuilderremoteCluster(RemoteClusterPrivileges value, RemoteClusterPrivileges... values) A list of remote cluster permissions entries.final PutRoleRequest.BuilderA list of remote cluster permissions entries.final PutRoleRequest.BuilderA list of remote cluster permissions entries.final PutRoleRequest.BuilderremoteIndices(RemoteIndicesPrivileges value, RemoteIndicesPrivileges... values) A list of remote indices permissions entries.final PutRoleRequest.BuilderA list of remote indices permissions entries.final PutRoleRequest.BuilderA list of remote indices permissions entries.final PutRoleRequest.BuilderA list of users that the owners of this role can impersonate.final PutRoleRequest.BuilderA list of users that the owners of this role can impersonate.protected PutRoleRequest.Builderself()final PutRoleRequest.BuildertransientMetadata(String key, JsonData value) Indicates roles that might be incompatible with the current cluster license, specifically roles with document and field level security.final PutRoleRequest.BuildertransientMetadata(Map<String, JsonData> map) Indicates roles that might be incompatible with the current cluster license, specifically roles with document and field level security.Methods 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
-
applications
A list of application privilege entries.API name:
applicationsAdds all elements of
listtoapplications. -
applications
public final PutRoleRequest.Builder applications(ApplicationPrivileges value, ApplicationPrivileges... values) A list of application privilege entries.API name:
applicationsAdds one or more values to
applications. -
applications
public final PutRoleRequest.Builder applications(Function<ApplicationPrivileges.Builder, ObjectBuilder<ApplicationPrivileges>> fn) A list of application privilege entries.API name:
applicationsAdds a value to
applicationsusing a builder lambda. -
cluster
A list of cluster privileges. These privileges define the cluster-level actions for users with this role.API name:
clusterAdds all elements of
listtocluster. -
cluster
A list of cluster privileges. These privileges define the cluster-level actions for users with this role.API name:
clusterAdds one or more values to
cluster. -
cluster
A list of cluster privileges. These privileges define the cluster-level actions for users with this role.API name:
clusterAdds one or more enum values to
cluster. -
description
Optional description of the role descriptorAPI name:
description -
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 entries of
maptoglobal. -
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 an entry to
global. -
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 PutRoleRequest.Builder indices(Function<IndicesPrivileges.Builder, ObjectBuilder<IndicesPrivileges>> fn) A list of indices permissions entries.API name:
indicesAdds a value to
indicesusing a builder lambda. -
metadata
Optional metadata. Within the metadata object, keys that begin with an underscore (_) are reserved for system use.API name:
metadataAdds all entries of
maptometadata. -
metadata
Optional metadata. Within the metadata object, keys that begin with an underscore (_) are reserved for system use.API name:
metadataAdds an entry to
metadata. -
name
Required - The name of the role that is being created or updated. On Elasticsearch Serverless, the role name must begin with a letter or digit and can only contain letters, digits and the characters '_', '-', and '.'. Each role must have a unique name, as this will serve as the identifier for that role.API name:
name -
refresh
Iftrue(the default) then refresh the affected shards to make this operation visible to search, ifwait_forthen wait for a refresh to make this operation visible to search, iffalsethen do nothing with refreshes.API name:
refresh -
remoteCluster
A list of remote cluster permissions entries.API name:
remote_clusterAdds all elements of
listtoremoteCluster. -
remoteCluster
public final PutRoleRequest.Builder remoteCluster(RemoteClusterPrivileges value, RemoteClusterPrivileges... values) A list of remote cluster permissions entries.API name:
remote_clusterAdds one or more values to
remoteCluster. -
remoteCluster
public final PutRoleRequest.Builder remoteCluster(Function<RemoteClusterPrivileges.Builder, ObjectBuilder<RemoteClusterPrivileges>> fn) A list of remote cluster permissions entries.API name:
remote_clusterAdds a value to
remoteClusterusing a builder lambda. -
remoteIndices
A list of remote indices permissions entries.NOTE: Remote indices are effective for remote clusters configured with the API key based model. They have no effect for remote clusters configured with the certificate based model.
API name:
remote_indicesAdds all elements of
listtoremoteIndices. -
remoteIndices
public final PutRoleRequest.Builder remoteIndices(RemoteIndicesPrivileges value, RemoteIndicesPrivileges... values) A list of remote indices permissions entries.NOTE: Remote indices are effective for remote clusters configured with the API key based model. They have no effect for remote clusters configured with the certificate based model.
API name:
remote_indicesAdds one or more values to
remoteIndices. -
remoteIndices
public final PutRoleRequest.Builder remoteIndices(Function<RemoteIndicesPrivileges.Builder, ObjectBuilder<RemoteIndicesPrivileges>> fn) A list of remote indices permissions entries.NOTE: Remote indices are effective for remote clusters configured with the API key based model. They have no effect for remote clusters configured with the certificate based model.
API name:
remote_indicesAdds a value to
remoteIndicesusing a builder lambda. -
runAs
A list of users that the owners of this role can impersonate. Note: in 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 owners of this role can impersonate. Note: in 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. -
transientMetadata
Indicates roles that might be incompatible with the current cluster license, specifically roles with document and field level security. When the cluster license doesn’t allow certain features for a given role, this parameter is updated dynamically to list the incompatible features. Ifenabledisfalse, the role is ignored, but is still listed in the response from the authenticate API.API name:
transient_metadataAdds all entries of
maptotransientMetadata. -
transientMetadata
Indicates roles that might be incompatible with the current cluster license, specifically roles with document and field level security. When the cluster license doesn’t allow certain features for a given role, this parameter is updated dynamically to list the incompatible features. Ifenabledisfalse, the role is ignored, but is still listed in the response from the authenticate API.API name:
transient_metadataAdds an entry to
transientMetadata. -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PutRoleRequest.Builder>
-
build
Builds aPutRoleRequest.- Specified by:
buildin interfaceObjectBuilder<PutRoleRequest>- Throws:
NullPointerException- if some of the required fields are null.
-