Class IndicesPrivileges.Builder
java.lang.Object
co.elastic.clients.elasticsearch.security.IndicesPrivileges.Builder
- All Implemented Interfaces:
ObjectBuilder<IndicesPrivileges>
- Enclosing class:
- IndicesPrivileges
public static class IndicesPrivileges.Builder extends java.lang.Object implements ObjectBuilder<IndicesPrivileges>
Builder for
IndicesPrivileges.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description IndicesPrivileges.BuilderaddNames(java.lang.String value)Add a value tonames(List), creating the list if needed.IndicesPrivileges.BuilderaddPrivileges(IndexPrivilege value)Add a value toprivileges(List), creating the list if needed.IndicesPrivileges.BuilderallowRestrictedIndices(java.lang.Boolean value)Set totrueif using wildcard or regular expressions for patterns that cover restricted indices.IndicesPrivilegesbuild()Builds aIndicesPrivileges.IndicesPrivileges.BuilderfieldSecurity(FieldSecurity value)The document fields that the owners of the role have read access to.IndicesPrivileges.BuilderfieldSecurity(java.util.function.Function<FieldSecurity.Builder,ObjectBuilder<FieldSecurity>> fn)The document fields that the owners of the role have read access to.IndicesPrivileges.Buildernames(java.lang.String... value)A list of indices (or index name patterns) to which the permissions in this entry apply.IndicesPrivileges.Buildernames(java.util.List<java.lang.String> value)A list of indices (or index name patterns) to which the permissions in this entry apply.IndicesPrivileges.Builderprivileges(IndexPrivilege... value)The index level privileges that owners of the role have on the specified indices.IndicesPrivileges.Builderprivileges(java.util.List<IndexPrivilege> value)The index level privileges that owners of the role have on the specified indices.IndicesPrivileges.Builderquery(Query value)A search query that defines the documents the owners of the role have read access to.IndicesPrivileges.Builderquery(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)A search query that defines the documents the owners of the role have read access to.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fieldSecurity
The document fields that the owners of the role have read access to.API name:
field_security -
fieldSecurity
public IndicesPrivileges.Builder fieldSecurity(java.util.function.Function<FieldSecurity.Builder,ObjectBuilder<FieldSecurity>> fn)The document fields that the owners of the role have read access to.API name:
field_security -
names
A list of indices (or index name patterns) to which the permissions in this entry apply.API name:
names -
names
A list of indices (or index name patterns) to which the permissions in this entry apply.API name:
names -
addNames
Add a value tonames(List), creating the list if needed. 4 -
privileges
The index level privileges that owners of the role have on the specified indices.API name:
privileges -
privileges
The index level privileges that owners of the role have on the specified indices.API name:
privileges -
addPrivileges
Add a value toprivileges(List), creating the list if needed. 4 -
query
A search query that defines the documents the owners of the role have read access to. A document within the specified indices must match this query for it to be accessible by the owners of the role.API name:
query -
query
public IndicesPrivileges.Builder query(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)A search query that defines the documents the owners of the role have read access to. A document within the specified indices must match this query for it to be accessible by the owners of the role.API name:
query -
allowRestrictedIndices
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 -
build
Builds aIndicesPrivileges.- Specified by:
buildin interfaceObjectBuilder<IndicesPrivileges>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-