Package com.dropbox.core.v2.sharing
Class UpdateFolderPolicyBuilder
- java.lang.Object
-
- com.dropbox.core.v2.sharing.UpdateFolderPolicyBuilder
-
public class UpdateFolderPolicyBuilder extends java.lang.ObjectThe request builder returned byDbxUserSharingRequests.updateFolderPolicyBuilder(java.lang.String).Use this class to set optional request parameters and complete the request.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SharedFolderMetadatastart()Issues the request.UpdateFolderPolicyBuilderwithAclUpdatePolicy(AclUpdatePolicy aclUpdatePolicy)Set value for optional field.UpdateFolderPolicyBuilderwithActions(java.util.List<FolderAction> actions)Set value for optional field.UpdateFolderPolicyBuilderwithLinkSettings(LinkSettings linkSettings)Set value for optional field.UpdateFolderPolicyBuilderwithMemberPolicy(MemberPolicy memberPolicy)Set value for optional field.UpdateFolderPolicyBuilderwithSharedLinkPolicy(SharedLinkPolicy sharedLinkPolicy)Set value for optional field.UpdateFolderPolicyBuilderwithViewerInfoPolicy(ViewerInfoPolicy viewerInfoPolicy)Set value for optional field.
-
-
-
Method Detail
-
withMemberPolicy
public UpdateFolderPolicyBuilder withMemberPolicy(MemberPolicy memberPolicy)
Set value for optional field.- Parameters:
memberPolicy- Who can be a member of this shared folder. Only applicable if the current user is on a team.- Returns:
- this builder
-
withAclUpdatePolicy
public UpdateFolderPolicyBuilder withAclUpdatePolicy(AclUpdatePolicy aclUpdatePolicy)
Set value for optional field.- Parameters:
aclUpdatePolicy- Who can add and remove members of this shared folder.- Returns:
- this builder
-
withViewerInfoPolicy
public UpdateFolderPolicyBuilder withViewerInfoPolicy(ViewerInfoPolicy viewerInfoPolicy)
Set value for optional field.- Parameters:
viewerInfoPolicy- Who can enable/disable viewer info for this shared folder.- Returns:
- this builder
-
withSharedLinkPolicy
public UpdateFolderPolicyBuilder withSharedLinkPolicy(SharedLinkPolicy sharedLinkPolicy)
Set value for optional field.- Parameters:
sharedLinkPolicy- The policy to apply to shared links created for content inside this shared folder. The current user must be on a team to set this policy toSharedLinkPolicy.MEMBERS.- Returns:
- this builder
-
withLinkSettings
public UpdateFolderPolicyBuilder withLinkSettings(LinkSettings linkSettings)
Set value for optional field.- Parameters:
linkSettings- Settings on the link for this folder.- Returns:
- this builder
-
withActions
public UpdateFolderPolicyBuilder withActions(java.util.List<FolderAction> actions)
Set value for optional field.- Parameters:
actions- A list of `FolderAction`s corresponding to `FolderPermission`s that should appear in the response'sSharedFolderMetadata.getPermissions()field describing the actions the authenticated user can perform on the folder. Must not contain anullitem.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
start
public SharedFolderMetadata start() throws UpdateFolderPolicyErrorException, DbxException
Issues the request.
-
-