Class SharedFolderMetadataBase.Builder

    • Field Detail

      • isInsideTeamFolder

        protected final boolean isInsideTeamFolder
      • isTeamFolder

        protected final boolean isTeamFolder
      • ownerDisplayNames

        protected java.util.List<java.lang.String> ownerDisplayNames
      • ownerTeam

        protected Team ownerTeam
      • parentSharedFolderId

        protected java.lang.String parentSharedFolderId
      • pathDisplay

        protected java.lang.String pathDisplay
      • pathLower

        protected java.lang.String pathLower
      • parentFolderName

        protected java.lang.String parentFolderName
    • Constructor Detail

      • Builder

        protected Builder​(AccessLevel accessType,
                          boolean isInsideTeamFolder,
                          boolean isTeamFolder)
    • Method Detail

      • withOwnerDisplayNames

        public SharedFolderMetadataBase.Builder withOwnerDisplayNames​(java.util.List<java.lang.String> ownerDisplayNames)
        Set value for optional field.
        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.
      • withOwnerTeam

        public SharedFolderMetadataBase.Builder withOwnerTeam​(Team ownerTeam)
        Set value for optional field.
        Parameters:
        ownerTeam - The team that owns the folder. This field is not present if the folder is not owned by a team.
        Returns:
        this builder
      • withParentSharedFolderId

        public SharedFolderMetadataBase.Builder withParentSharedFolderId​(java.lang.String parentSharedFolderId)
        Set value for optional field.
        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.
      • withPathDisplay

        public SharedFolderMetadataBase.Builder withPathDisplay​(java.lang.String pathDisplay)
        Set value for optional field.
        Parameters:
        pathDisplay - The full path of this shared folder. Absent for unmounted folders.
        Returns:
        this builder
      • withPathLower

        public SharedFolderMetadataBase.Builder withPathLower​(java.lang.String pathLower)
        Set value for optional field.
        Parameters:
        pathLower - The lower-cased full path of this shared folder. Absent for unmounted folders.
        Returns:
        this builder
      • withParentFolderName

        public SharedFolderMetadataBase.Builder withParentFolderName​(java.lang.String parentFolderName)
        Set value for optional field.
        Parameters:
        parentFolderName - Display name for the parent folder.
        Returns:
        this builder