public class FolderPolicy extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FolderPolicy.Builder
Builder for
FolderPolicy . |
Modifier and Type | Field and Description |
---|---|
protected AclUpdatePolicy |
aclUpdatePolicy |
protected MemberPolicy |
memberPolicy |
protected MemberPolicy |
resolvedMemberPolicy |
protected SharedLinkPolicy |
sharedLinkPolicy |
Constructor and Description |
---|
FolderPolicy(AclUpdatePolicy aclUpdatePolicy,
SharedLinkPolicy sharedLinkPolicy)
A set of policies governing membership and privileges for a shared
folder.
|
FolderPolicy(AclUpdatePolicy aclUpdatePolicy,
SharedLinkPolicy sharedLinkPolicy,
MemberPolicy memberPolicy,
MemberPolicy resolvedMemberPolicy)
A set of policies governing membership and privileges for a shared
folder.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
AclUpdatePolicy |
getAclUpdatePolicy()
Who can add and remove members from this shared folder.
|
MemberPolicy |
getMemberPolicy()
Who can be a member of this shared folder, as set on the folder itself.
|
MemberPolicy |
getResolvedMemberPolicy()
Who can be a member of this shared folder, taking into account both the
folder and the team-wide policy.
|
SharedLinkPolicy |
getSharedLinkPolicy()
Who links can be shared with.
|
int |
hashCode() |
static FolderPolicy.Builder |
newBuilder(AclUpdatePolicy aclUpdatePolicy,
SharedLinkPolicy sharedLinkPolicy)
Returns a new builder for creating an instance of this class.
|
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final MemberPolicy memberPolicy
protected final MemberPolicy resolvedMemberPolicy
protected final AclUpdatePolicy aclUpdatePolicy
protected final SharedLinkPolicy sharedLinkPolicy
public FolderPolicy(AclUpdatePolicy aclUpdatePolicy, SharedLinkPolicy sharedLinkPolicy, MemberPolicy memberPolicy, MemberPolicy resolvedMemberPolicy)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
aclUpdatePolicy
- Who can add and remove members from this shared
folder. Must not be null
.sharedLinkPolicy
- Who links can be shared with. Must not be null
.memberPolicy
- Who can be a member of this shared folder, as set on
the folder itself. The effective policy may differ from this value if
the team-wide policy is more restrictive. Present only if the folder
is owned by a team.resolvedMemberPolicy
- Who can be a member of this shared folder,
taking into account both the folder and the team-wide policy. This
value may differ from that of member_policy if the team-wide policy
is more restrictive than the folder policy. Present only if the
folder is owned by a team.IllegalArgumentException
- If any argument does not meet its
preconditions.public FolderPolicy(AclUpdatePolicy aclUpdatePolicy, SharedLinkPolicy sharedLinkPolicy)
The default values for unset fields will be used.
aclUpdatePolicy
- Who can add and remove members from this shared
folder. Must not be null
.sharedLinkPolicy
- Who links can be shared with. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public AclUpdatePolicy getAclUpdatePolicy()
null
.public SharedLinkPolicy getSharedLinkPolicy()
null
.public MemberPolicy getMemberPolicy()
null
if not present.public MemberPolicy getResolvedMemberPolicy()
null
if not present.public static FolderPolicy.Builder newBuilder(AclUpdatePolicy aclUpdatePolicy, SharedLinkPolicy sharedLinkPolicy)
aclUpdatePolicy
- Who can add and remove members from this shared
folder. Must not be null
.sharedLinkPolicy
- Who links can be shared with. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public String toStringMultiline()
The returned String may contain newlines.