Class FolderPolicy.Builder

java.lang.Object
com.dropbox.core.v2.sharing.FolderPolicy.Builder
Enclosing class:
FolderPolicy

public static class FolderPolicy.Builder extends Object
Builder for FolderPolicy.
  • Field Details

  • Constructor Details

  • Method Details

    • 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 of FolderPolicy configured with this builder's values
      Returns:
      new instance of FolderPolicy