Package com.dropbox.core.v2.sharing
Class FolderPolicy.Builder
java.lang.Object
com.dropbox.core.v2.sharing.FolderPolicy.Builder
- Enclosing class:
FolderPolicy
Builder for
FolderPolicy.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AclUpdatePolicyprotected MemberPolicyprotected MemberPolicyprotected final SharedLinkPolicyprotected ViewerInfoPolicy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder(AclUpdatePolicy aclUpdatePolicy, SharedLinkPolicy sharedLinkPolicy) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofFolderPolicyconfigured with this builder's valueswithMemberPolicy(MemberPolicy memberPolicy) Set value for optional field.withResolvedMemberPolicy(MemberPolicy resolvedMemberPolicy) Set value for optional field.withViewerInfoPolicy(ViewerInfoPolicy viewerInfoPolicy) Set value for optional field.
-
Field Details
-
aclUpdatePolicy
-
memberPolicy
-
resolvedMemberPolicy
-
viewerInfoPolicy
-
-
Constructor Details
-
Method Details
-
withMemberPolicy
Set value for optional field.- Parameters:
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.- Returns:
- this builder
-
withResolvedMemberPolicy
Set value for optional field.- Parameters:
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.- Returns:
- this builder
-
withViewerInfoPolicy
Set value for optional field.- Parameters:
viewerInfoPolicy- Who can enable/disable viewer info for this shared folder.- Returns:
- this builder
-
build
Builds an instance ofFolderPolicyconfigured with this builder's values- Returns:
- new instance of
FolderPolicy
-