Class FolderMetadata.Builder

    • Field Detail

      • id

        protected final java.lang.String id
      • sharedFolderId

        protected java.lang.String sharedFolderId
      • propertyGroups

        protected java.util.List<PropertyGroup> propertyGroups
    • Constructor Detail

      • Builder

        protected Builder​(java.lang.String name,
                          java.lang.String id)
    • Method Detail

      • withSharedFolderId

        public FolderMetadata.Builder withSharedFolderId​(java.lang.String sharedFolderId)
        Set value for optional field.
        Parameters:
        sharedFolderId - Please use FolderMetadata.getSharingInfo() instead. Must match pattern "[-_0-9a-zA-Z:]+".
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • withSharingInfo

        public FolderMetadata.Builder withSharingInfo​(FolderSharingInfo sharingInfo)
        Set value for optional field.
        Parameters:
        sharingInfo - Set if the folder is contained in a shared folder or is a shared folder mount point.
        Returns:
        this builder
      • withPropertyGroups

        public FolderMetadata.Builder withPropertyGroups​(java.util.List<PropertyGroup> propertyGroups)
        Set value for optional field.
        Parameters:
        propertyGroups - Additional information if the file has custom properties with the property template specified. Note that only properties associated with user-owned templates, not team-owned templates, can be attached to folders. Must not contain a null item.
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • withPathLower

        public FolderMetadata.Builder withPathLower​(java.lang.String pathLower)
        Set value for optional field.
        Overrides:
        withPathLower in class Metadata.Builder
        Parameters:
        pathLower - The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted.
        Returns:
        this builder
      • withPathDisplay

        public FolderMetadata.Builder withPathDisplay​(java.lang.String pathDisplay)
        Set value for optional field.
        Overrides:
        withPathDisplay in class Metadata.Builder
        Parameters:
        pathDisplay - The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by DbxAppFilesRequests.listFolderContinue(String). This field will be null if the file or folder is not mounted.
        Returns:
        this builder