Class UserPermissions.Builder

    • Field Detail

      • canEdit

        protected boolean canEdit
      • canRename

        protected boolean canRename
      • canComment

        protected boolean canComment
      • canDownload

        protected boolean canDownload
    • Constructor Detail

      • Builder

        protected Builder()
    • Method Detail

      • withCanEdit

        public UserPermissions.Builder withCanEdit​(java.lang.Boolean canEdit)
        Set value for optional field.

        If left unset or set to null, defaults to false.

        Parameters:
        canEdit - true if the user can edit the content of this document. Defaults to false when set to null.
        Returns:
        this builder
      • withCanRename

        public UserPermissions.Builder withCanRename​(java.lang.Boolean canRename)
        Set value for optional field.

        If left unset or set to null, defaults to false.

        Parameters:
        canRename - true if the user can edit the title of this document. Defaults to false when set to null.
        Returns:
        this builder
      • withCanComment

        public UserPermissions.Builder withCanComment​(java.lang.Boolean canComment)
        Set value for optional field.

        If left unset or set to null, defaults to false.

        Parameters:
        canComment - true if the user can comment on this document. Defaults to false when set to null.
        Returns:
        this builder
      • withCanDownload

        public UserPermissions.Builder withCanDownload​(java.lang.Boolean canDownload)
        Set value for optional field.

        If left unset or set to null, defaults to false.

        Parameters:
        canDownload - true if the user can download the contents of this document. currently always true if the user has view access to the document. Defaults to false when set to null.
        Returns:
        this builder