public static class FolderPolicy.Builder extends Object
FolderPolicy
.Modifier and Type | Field and Description |
---|---|
protected AclUpdatePolicy |
aclUpdatePolicy |
protected MemberPolicy |
memberPolicy |
protected MemberPolicy |
resolvedMemberPolicy |
protected SharedLinkPolicy |
sharedLinkPolicy |
Modifier | Constructor and Description |
---|---|
protected |
Builder(AclUpdatePolicy aclUpdatePolicy,
SharedLinkPolicy sharedLinkPolicy) |
Modifier and Type | Method and Description |
---|---|
FolderPolicy |
build()
Builds an instance of
FolderPolicy configured with this
builder's values |
FolderPolicy.Builder |
withMemberPolicy(MemberPolicy memberPolicy)
Set value for optional field.
|
FolderPolicy.Builder |
withResolvedMemberPolicy(MemberPolicy resolvedMemberPolicy)
Set value for optional field.
|
protected final AclUpdatePolicy aclUpdatePolicy
protected final SharedLinkPolicy sharedLinkPolicy
protected MemberPolicy memberPolicy
protected MemberPolicy resolvedMemberPolicy
protected Builder(AclUpdatePolicy aclUpdatePolicy, SharedLinkPolicy sharedLinkPolicy)
public FolderPolicy.Builder withMemberPolicy(MemberPolicy memberPolicy)
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.public FolderPolicy.Builder withResolvedMemberPolicy(MemberPolicy resolvedMemberPolicy)
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.public FolderPolicy build()
FolderPolicy
configured with this
builder's valuesFolderPolicy