Class IndexPrivilegesCheck.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.security.has_privileges.IndexPrivilegesCheck.Builder
- All Implemented Interfaces:
ObjectBuilder<IndexPrivilegesCheck>
- Enclosing class:
- IndexPrivilegesCheck
public static class IndexPrivilegesCheck.Builder extends ObjectBuilderBase implements ObjectBuilder<IndexPrivilegesCheck>
Builder for
IndexPrivilegesCheck.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description IndexPrivilegesCheck.BuilderallowRestrictedIndices(java.lang.Boolean value)This needs to be set to true (default is false) if using wildcards or regexps for patterns that cover restricted indices.IndexPrivilegesCheckbuild()Builds aIndexPrivilegesCheck.IndexPrivilegesCheck.Buildernames(java.lang.String value, java.lang.String... values)Required - A list of indices.IndexPrivilegesCheck.Buildernames(java.util.List<java.lang.String> list)Required - A list of indices.IndexPrivilegesCheck.Builderprivileges(IndexPrivilege value, IndexPrivilege... values)Required - A list of the privileges that you want to check for the specified indices.IndexPrivilegesCheck.Builderprivileges(java.util.List<IndexPrivilege> list)Required - A list of the privileges that you want to check for the specified indices.Methods 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
-
names
Required - A list of indices.API name:
namesAdds all elements of
listtonames. -
names
public final IndexPrivilegesCheck.Builder names(java.lang.String value, java.lang.String... values)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
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 values to
privileges. -
allowRestrictedIndices
public final IndexPrivilegesCheck.Builder allowRestrictedIndices(@Nullable java.lang.Boolean value)This needs to be set to true (default is false) 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 of allow_restricted_indices.API name:
allow_restricted_indices -
build
Builds aIndexPrivilegesCheck.- Specified by:
buildin interfaceObjectBuilder<IndexPrivilegesCheck>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-