Class IndicesPrivilegesRead.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<IndicesPrivilegesRead.Builder>
co.elastic.clients.elasticsearch.security.get_role.IndicesPrivilegesRead.Builder
- All Implemented Interfaces:
WithJson<IndicesPrivilegesRead.Builder>,ObjectBuilder<IndicesPrivilegesRead>
- Enclosing class:
- IndicesPrivilegesRead
public static class IndicesPrivilegesRead.Builder
extends WithJsonObjectBuilderBase<IndicesPrivilegesRead.Builder>
implements ObjectBuilder<IndicesPrivilegesRead>
Builder for
IndicesPrivilegesRead.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowRestrictedIndices(Boolean value) Set totrueif using wildcard or regular expressions for patterns that cover restricted indices.build()Builds aIndicesPrivilegesRead.fieldSecurity(FieldSecurity value) 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.implicitlyGranted(Boolean value) Set totrueon entries that were contributed by a registeredImplicitPrivilegesProviderrather than explicitly stored on the role.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) A search query that defines the documents the owners of the role have access to.A search query that defines the documents the owners of the role have access to.protected IndicesPrivilegesRead.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
-
implicitlyGranted
Set totrueon entries that were contributed by a registeredImplicitPrivilegesProviderrather than explicitly stored on the role. Only present when the get role API is called withinclude_implicit=true. The put role API rejects this field, so clients must not echo it back on a GET-then-PUT round-trip.API name:
implicitly_granted -
fieldSecurity
The document fields that the owners of the role have read access to.API name:
field_security -
fieldSecurity
public final IndicesPrivilegesRead.Builder fieldSecurity(Function<FieldSecurity.Builder, ObjectBuilder<FieldSecurity>> fn) The document fields that the owners of the role have read access to.API name:
field_security -
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 IndicesPrivilegesRead.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
A search query that defines the documents the owners of the role have 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 final IndicesPrivilegesRead.Builder query(Function<IndicesPrivilegesQuery.Builder, ObjectBuilder<IndicesPrivilegesQuery>> fn) A search query that defines the documents the owners of the role have 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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<IndicesPrivilegesRead.Builder>
-
build
Builds aIndicesPrivilegesRead.- Specified by:
buildin interfaceObjectBuilder<IndicesPrivilegesRead>- Throws:
NullPointerException- if some of the required fields are null.
-