Class SharedFolderMetadata.Builder

    • Field Detail

      • name

        protected final java.lang.String name
      • previewUrl

        protected final java.lang.String previewUrl
      • sharedFolderId

        protected final java.lang.String sharedFolderId
      • timeInvited

        protected final java.util.Date timeInvited
    • Constructor Detail

      • Builder

        protected Builder​(AccessLevel accessType,
                          boolean isInsideTeamFolder,
                          boolean isTeamFolder,
                          java.lang.String name,
                          FolderPolicy policy,
                          java.lang.String previewUrl,
                          java.lang.String sharedFolderId,
                          java.util.Date timeInvited)
    • Method Detail

      • withLinkMetadata

        public SharedFolderMetadata.Builder withLinkMetadata​(SharedContentLinkMetadata linkMetadata)
        Set value for optional field.
        Parameters:
        linkMetadata - The metadata of the shared content link to this shared folder. Absent if there is no link on the folder. This is for an unreleased feature so it may not be returned yet.
        Returns:
        this builder
      • withPermissions

        public SharedFolderMetadata.Builder withPermissions​(java.util.List<FolderPermission> permissions)
        Set value for optional field.
        Parameters:
        permissions - Actions the current user may perform on the folder and its contents. The set of permissions corresponds to the FolderActions in the request. Must not contain a null item.
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • withAccessInheritance

        public SharedFolderMetadata.Builder withAccessInheritance​(AccessInheritance accessInheritance)
        Set value for optional field.

        If left unset or set to null, defaults to AccessInheritance.INHERIT.

        Parameters:
        accessInheritance - Whether the folder inherits its members from its parent. Must not be null. Defaults to AccessInheritance.INHERIT when set to null.
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • withOwnerDisplayNames

        public SharedFolderMetadata.Builder withOwnerDisplayNames​(java.util.List<java.lang.String> ownerDisplayNames)
        Set value for optional field.
        Overrides:
        withOwnerDisplayNames in class SharedFolderMetadataBase.Builder
        Parameters:
        ownerDisplayNames - The display names of the users that own the folder. If the folder is part of a team folder, the display names of the team admins are also included. Absent if the owner display names cannot be fetched. Must not contain a null item.
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • withParentSharedFolderId

        public SharedFolderMetadata.Builder withParentSharedFolderId​(java.lang.String parentSharedFolderId)
        Set value for optional field.
        Overrides:
        withParentSharedFolderId in class SharedFolderMetadataBase.Builder
        Parameters:
        parentSharedFolderId - The ID of the parent shared folder. This field is present only if the folder is contained within another shared folder. Must match pattern "[-_0-9a-zA-Z:]+".
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.