Package com.dropbox.core.v2.sharing
Class FolderPolicy.Builder
- java.lang.Object
-
- com.dropbox.core.v2.sharing.FolderPolicy.Builder
-
- Enclosing class:
- FolderPolicy
public static class FolderPolicy.Builder extends java.lang.Object
Builder forFolderPolicy
.
-
-
Field Summary
Fields Modifier and Type Field Description protected AclUpdatePolicy
aclUpdatePolicy
protected MemberPolicy
memberPolicy
protected MemberPolicy
resolvedMemberPolicy
protected SharedLinkPolicy
sharedLinkPolicy
protected ViewerInfoPolicy
viewerInfoPolicy
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(AclUpdatePolicy aclUpdatePolicy, SharedLinkPolicy sharedLinkPolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FolderPolicy
build()
Builds an instance ofFolderPolicy
configured with this builder's valuesFolderPolicy.Builder
withMemberPolicy(MemberPolicy memberPolicy)
Set value for optional field.FolderPolicy.Builder
withResolvedMemberPolicy(MemberPolicy resolvedMemberPolicy)
Set value for optional field.FolderPolicy.Builder
withViewerInfoPolicy(ViewerInfoPolicy viewerInfoPolicy)
Set value for optional field.
-
-
-
Field Detail
-
aclUpdatePolicy
protected final AclUpdatePolicy aclUpdatePolicy
-
sharedLinkPolicy
protected final SharedLinkPolicy sharedLinkPolicy
-
memberPolicy
protected MemberPolicy memberPolicy
-
resolvedMemberPolicy
protected MemberPolicy resolvedMemberPolicy
-
viewerInfoPolicy
protected ViewerInfoPolicy viewerInfoPolicy
-
-
Constructor Detail
-
Builder
protected Builder(AclUpdatePolicy aclUpdatePolicy, SharedLinkPolicy sharedLinkPolicy)
-
-
Method Detail
-
withMemberPolicy
public FolderPolicy.Builder withMemberPolicy(MemberPolicy memberPolicy)
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
public FolderPolicy.Builder withResolvedMemberPolicy(MemberPolicy resolvedMemberPolicy)
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
public FolderPolicy.Builder withViewerInfoPolicy(ViewerInfoPolicy viewerInfoPolicy)
Set value for optional field.- Parameters:
viewerInfoPolicy
- Who can enable/disable viewer info for this shared folder.- Returns:
- this builder
-
build
public FolderPolicy build()
Builds an instance ofFolderPolicy
configured with this builder's values- Returns:
- new instance of
FolderPolicy
-
-