Class FolderSharingInfo.Builder

    • Field Detail

      • readOnly

        protected final boolean readOnly
      • parentSharedFolderId

        protected java.lang.String parentSharedFolderId
      • sharedFolderId

        protected java.lang.String sharedFolderId
      • traverseOnly

        protected boolean traverseOnly
      • noAccess

        protected boolean noAccess
    • Constructor Detail

      • Builder

        protected Builder​(boolean readOnly)
    • Method Detail

      • withParentSharedFolderId

        public FolderSharingInfo.Builder withParentSharedFolderId​(java.lang.String parentSharedFolderId)
        Set value for optional field.
        Parameters:
        parentSharedFolderId - Set if the folder is contained by a shared folder. Must match pattern "[-_0-9a-zA-Z:]+".
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • withSharedFolderId

        public FolderSharingInfo.Builder withSharedFolderId​(java.lang.String sharedFolderId)
        Set value for optional field.
        Parameters:
        sharedFolderId - If this folder is a shared folder mount point, the ID of the shared folder mounted at this location. Must match pattern "[-_0-9a-zA-Z:]+".
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • withTraverseOnly

        public FolderSharingInfo.Builder withTraverseOnly​(java.lang.Boolean traverseOnly)
        Set value for optional field.

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

        Parameters:
        traverseOnly - Specifies that the folder can only be traversed and the user can only see a limited subset of the contents of this folder because they don't have read access to this folder. They do, however, have access to some sub folder. Defaults to false when set to null.
        Returns:
        this builder
      • withNoAccess

        public FolderSharingInfo.Builder withNoAccess​(java.lang.Boolean noAccess)
        Set value for optional field.

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

        Parameters:
        noAccess - Specifies that the folder cannot be accessed by the user. Defaults to false when set to null.
        Returns:
        this builder