Package org.apache.hadoop.fs.permission
Class AclEntry.Builder
java.lang.Object
org.apache.hadoop.fs.permission.AclEntry.Builder
- Enclosing class:
- AclEntry
Builder for creating new AclEntry instances.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a new AclEntry populated with the set properties.Sets the optional ACL entry name.setPermission(FsAction permission) Sets the set of permissions in the ACL entry.setScope(AclEntryScope scope) Sets the scope of the ACL entry.setType(AclEntryType type) Sets the ACL entry type.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setType
Sets the ACL entry type.- Parameters:
type- AclEntryType ACL entry type- Returns:
- Builder this builder, for call chaining
-
setName
Sets the optional ACL entry name.- Parameters:
name- String optional ACL entry name- Returns:
- Builder this builder, for call chaining
-
setPermission
Sets the set of permissions in the ACL entry.- Parameters:
permission- FsAction set of permissions in the ACL entry- Returns:
- Builder this builder, for call chaining
-
setScope
Sets the scope of the ACL entry. If this method is not called, then the builder assumesAclEntryScope.ACCESS.- Parameters:
scope- AclEntryScope scope of the ACL entry- Returns:
- Builder this builder, for call chaining
-
build
Builds a new AclEntry populated with the set properties.- Returns:
- AclEntry new AclEntry
-