Class PutRoleRequest.Builder
- All Implemented Interfaces:
WithJson<PutRoleRequest.Builder>,ObjectBuilder<PutRoleRequest>
- Enclosing class:
- PutRoleRequest
public static class PutRoleRequest.Builder extends WithJsonObjectBuilderBase<PutRoleRequest.Builder> implements ObjectBuilder<PutRoleRequest>
PutRoleRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description PutRoleRequest.Builderapplications(ApplicationPrivileges value, ApplicationPrivileges... values)A list of application privilege entries.PutRoleRequest.Builderapplications(java.util.function.Function<ApplicationPrivileges.Builder,ObjectBuilder<ApplicationPrivileges>> fn)A list of application privilege entries.PutRoleRequest.Builderapplications(java.util.List<ApplicationPrivileges> list)A list of application privilege entries.PutRoleRequestbuild()Builds aPutRoleRequest.PutRoleRequest.Buildercluster(ClusterPrivilege value, ClusterPrivilege... values)A list of cluster privileges.PutRoleRequest.Buildercluster(java.util.List<ClusterPrivilege> list)A list of cluster privileges.PutRoleRequest.Builderglobal(java.lang.String key, JsonData value)An object defining global privileges.PutRoleRequest.Builderglobal(java.util.Map<java.lang.String,JsonData> map)An object defining global privileges.PutRoleRequest.Builderindices(IndicesPrivileges value, IndicesPrivileges... values)A list of indices permissions entries.PutRoleRequest.Builderindices(java.util.function.Function<IndicesPrivileges.Builder,ObjectBuilder<IndicesPrivileges>> fn)A list of indices permissions entries.PutRoleRequest.Builderindices(java.util.List<IndicesPrivileges> list)A list of indices permissions entries.PutRoleRequest.Buildermetadata(java.lang.String key, JsonData value)Optional metadata.PutRoleRequest.Buildermetadata(java.util.Map<java.lang.String,JsonData> map)Optional metadata.PutRoleRequest.Buildername(java.lang.String value)Required - Role namePutRoleRequest.Builderrefresh(Refresh value)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.PutRoleRequest.BuilderrunAs(java.lang.String value, java.lang.String... values)A list of users that the owners of this role can impersonate.PutRoleRequest.BuilderrunAs(java.util.List<java.lang.String> list)A list of users that the owners of this role can impersonate.protected PutRoleRequest.Builderself()PutRoleRequest.BuildertransientMetadata(TransientMetadata value)Indicates roles that might be incompatible with the current cluster license, specifically roles with document and field level security.PutRoleRequest.BuildertransientMetadata(java.util.function.Function<TransientMetadata.Builder,ObjectBuilder<TransientMetadata>> fn)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, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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(java.util.function.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. -
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(java.util.function.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 - Role nameAPI 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 -
runAs
A list of users that the owners of this role can impersonate.API name:
run_asAdds all elements of
listtorunAs. -
runAs
A list of users that the owners of this role can impersonate.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_metadata -
transientMetadata
public final PutRoleRequest.Builder transientMetadata(java.util.function.Function<TransientMetadata.Builder,ObjectBuilder<TransientMetadata>> fn)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_metadata -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<PutRoleRequest.Builder>
-
build
Builds aPutRoleRequest.- Specified by:
buildin interfaceObjectBuilder<PutRoleRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-