public static class AclStatus.Builder extends Object
Constructor and Description |
---|
AclStatus.Builder() |
Modifier and Type | Method and Description |
---|---|
AclStatus.Builder |
addEntries(Iterable<AclEntry> entries)
Adds a list of ACL entries.
|
AclStatus.Builder |
addEntry(AclEntry e)
Adds an ACL entry.
|
AclStatus |
build()
Builds a new AclStatus populated with the set properties.
|
AclStatus.Builder |
group(String group)
Sets the file group.
|
AclStatus.Builder |
owner(String owner)
Sets the file owner.
|
AclStatus.Builder |
setPermission(FsPermission permission)
Sets the permission for the file.
|
AclStatus.Builder |
stickyBit(boolean stickyBit)
Sets sticky bit.
|
public AclStatus.Builder()
public AclStatus.Builder owner(String owner)
owner
- String file ownerpublic AclStatus.Builder group(String group)
group
- String file grouppublic AclStatus.Builder addEntry(AclEntry e)
e
- AclEntry entry to addpublic AclStatus.Builder addEntries(Iterable<AclEntry> entries)
entries
- AclEntry entries to addpublic AclStatus.Builder stickyBit(boolean stickyBit)
stickyBit
- boolean sticky bitpublic AclStatus.Builder setPermission(FsPermission permission)
permission
- Copyright © 2017 Apache Software Foundation. All Rights Reserved.