Class RemoteUserIndicesPrivileges.Builder
- All Implemented Interfaces:
WithJson<RemoteUserIndicesPrivileges.Builder>,ObjectBuilder<RemoteUserIndicesPrivileges>
- Enclosing class:
- RemoteUserIndicesPrivileges
RemoteUserIndicesPrivileges.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowRestrictedIndices(boolean value) Required - Set totrueif using wildcard or regular expressions for patterns that cover restricted indices.build()Builds aRemoteUserIndicesPrivileges.Required - API name:clustersRequired - API name:clustersfieldSecurity(FieldSecurity value, FieldSecurity... values) The document fields that the owners of the role have read access to.The document fields that the owners of the role have read access to.fieldSecurity(List<FieldSecurity> list) The document fields that the owners of the role have read access to.Required - A list of indices (or index name patterns) to which the permissions in this entry apply.Required - A list of indices (or index name patterns) to which the permissions in this entry apply.privileges(IndexPrivilege value, IndexPrivilege... values) Required - The index level privileges that owners of the role have on the specified indices.privileges(String value, String... values) Required - The index level privileges that owners of the role have on the specified indices.privileges(List<String> list) Required - The index level privileges that owners of the role have on the specified indices.query(IndicesPrivilegesQuery value, IndicesPrivilegesQuery... values) Search queries that define the documents the user has access to.Search queries that define the documents the user has access to.query(List<IndicesPrivilegesQuery> list) Search queries that define the documents the user has access to.protected RemoteUserIndicesPrivileges.Builderself()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
-
fieldSecurity
The document fields that the owners of the role have read access to.API name:
field_securityAdds all elements of
listtofieldSecurity. -
fieldSecurity
public final RemoteUserIndicesPrivileges.Builder fieldSecurity(FieldSecurity value, FieldSecurity... values) The document fields that the owners of the role have read access to.API name:
field_securityAdds one or more values to
fieldSecurity. -
fieldSecurity
public final RemoteUserIndicesPrivileges.Builder fieldSecurity(Function<FieldSecurity.Builder, ObjectBuilder<FieldSecurity>> fn) The document fields that the owners of the role have read access to.API name:
field_securityAdds a value to
fieldSecurityusing a builder lambda. -
names
Required - A list of indices (or index name patterns) to which the permissions in this entry apply.API name:
namesAdds all elements of
listtonames. -
names
Required - A list of indices (or index name patterns) to which the permissions in this entry apply.API name:
namesAdds one or more values to
names. -
privileges
Required - The index level privileges that owners of the role have on the specified indices.API name:
privilegesAdds all elements of
listtoprivileges. -
privileges
Required - The index level privileges that owners of the role have on the specified indices.API name:
privilegesAdds one or more values to
privileges. -
privileges
public final RemoteUserIndicesPrivileges.Builder privileges(IndexPrivilege value, IndexPrivilege... values) Required - The index level privileges that owners of the role have on the specified indices.API name:
privilegesAdds one or more enum values to
privileges. -
query
Search queries that define the documents the user has access to. A document within the specified indices must match these queries for it to be accessible by the owners of the role.API name:
queryAdds all elements of
listtoquery. -
query
public final RemoteUserIndicesPrivileges.Builder query(IndicesPrivilegesQuery value, IndicesPrivilegesQuery... values) Search queries that define the documents the user has access to. A document within the specified indices must match these queries for it to be accessible by the owners of the role.API name:
queryAdds one or more values to
query. -
query
public final RemoteUserIndicesPrivileges.Builder query(Function<IndicesPrivilegesQuery.Builder, ObjectBuilder<IndicesPrivilegesQuery>> fn) Search queries that define the documents the user has access to. A document within the specified indices must match these queries for it to be accessible by the owners of the role.API name:
queryAdds a value to
queryusing a builder lambda. -
allowRestrictedIndices
Required - Set totrueif using wildcard or regular expressions for patterns that cover restricted indices. Implicitly, restricted indices have limited privileges that can cause pattern tests to fail. If restricted indices are explicitly included in thenameslist, Elasticsearch checks privileges against these indices regardless of the value set forallow_restricted_indices.API name:
allow_restricted_indices -
clusters
Required - API name:clustersAdds all elements of
listtoclusters. -
clusters
Required - API name:clustersAdds one or more values to
clusters. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<RemoteUserIndicesPrivileges.Builder>
-
build
Builds aRemoteUserIndicesPrivileges.- Specified by:
buildin interfaceObjectBuilder<RemoteUserIndicesPrivileges>- Throws:
NullPointerException- if some of the required fields are null.
-