Class IndexPrivilegesCheck.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<IndexPrivilegesCheck.Builder>
co.elastic.clients.elasticsearch.security.has_privileges.IndexPrivilegesCheck.Builder
- All Implemented Interfaces:
WithJson<IndexPrivilegesCheck.Builder>,ObjectBuilder<IndexPrivilegesCheck>
- Enclosing class:
- IndexPrivilegesCheck
public static class IndexPrivilegesCheck.Builder
extends WithJsonObjectBuilderBase<IndexPrivilegesCheck.Builder>
implements ObjectBuilder<IndexPrivilegesCheck>
Builder for
IndexPrivilegesCheck.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowRestrictedIndices(Boolean value) This needs to be set totrue(default isfalse) if using wildcards or regexps for patterns that cover restricted indices.build()Builds aIndexPrivilegesCheck.Required - A list of indices.Required - A list of indices.privileges(IndexPrivilege value, IndexPrivilege... values) Required - A list of the privileges that you want to check for the specified indices.privileges(String value, String... values) Required - A list of the privileges that you want to check for the specified indices.privileges(List<String> list) Required - A list of the privileges that you want to check for the specified indices.protected IndexPrivilegesCheck.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
-
names
Required - A list of indices.API name:
namesAdds all elements of
listtonames. -
names
Required - A list of indices.API name:
namesAdds one or more values to
names. -
privileges
Required - A list of the privileges that you want to check for the specified indices.API name:
privilegesAdds all elements of
listtoprivileges. -
privileges
Required - A list of the privileges that you want to check for the specified indices.API name:
privilegesAdds one or more values to
privileges. -
privileges
public final IndexPrivilegesCheck.Builder privileges(IndexPrivilege value, IndexPrivilege... values) Required - A list of the privileges that you want to check for the specified indices.API name:
privilegesAdds one or more enum values to
privileges. -
allowRestrictedIndices
This needs to be set totrue(default isfalse) if using wildcards or regexps for patterns that cover restricted indices. Implicitly, restricted indices do not match index patterns because restricted indices usually have limited privileges and including them in pattern tests would render most such tests false. If restricted indices are explicitly included in the names list, privileges will be checked against them regardless of the value ofallow_restricted_indices.API name:
allow_restricted_indices -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<IndexPrivilegesCheck.Builder>
-
build
Builds aIndexPrivilegesCheck.- Specified by:
buildin interfaceObjectBuilder<IndexPrivilegesCheck>- Throws:
NullPointerException- if some of the required fields are null.
-