Class FolderLogInfo

    • Field Detail

      • fileCount

        protected final java.lang.Long fileCount
    • Constructor Detail

      • FolderLogInfo

        public FolderLogInfo​(PathLogInfo path,
                             java.lang.String displayName,
                             java.lang.String fileId,
                             java.lang.Long fileSize,
                             java.lang.Long fileCount)
        Folder's logged information.

        Use newBuilder(com.dropbox.core.v2.teamlog.PathLogInfo) to create instances of this class without specifying values for all optional fields.

        Parameters:
        path - Path relative to event context. Must not be null.
        displayName - Display name. Might be missing due to historical data gap.
        fileId - Unique ID. Might be missing due to historical data gap.
        fileSize - File or folder size in bytes.
        fileCount - Number of files within the folder.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • FolderLogInfo

        public FolderLogInfo​(PathLogInfo path)
        Folder's logged information.

        The default values for unset fields will be used.

        Parameters:
        path - Path relative to event context. Must not be null.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
    • Method Detail

      • getDisplayName

        public java.lang.String getDisplayName()
        Display name. Might be missing due to historical data gap.
        Overrides:
        getDisplayName in class FileOrFolderLogInfo
        Returns:
        value for this field, or null if not present.
      • getFileId

        public java.lang.String getFileId()
        Unique ID. Might be missing due to historical data gap.
        Overrides:
        getFileId in class FileOrFolderLogInfo
        Returns:
        value for this field, or null if not present.
      • getFileSize

        public java.lang.Long getFileSize()
        File or folder size in bytes.
        Overrides:
        getFileSize in class FileOrFolderLogInfo
        Returns:
        value for this field, or null if not present.
      • getFileCount

        public java.lang.Long getFileCount()
        Number of files within the folder.
        Returns:
        value for this field, or null if not present.
      • newBuilder

        public static FolderLogInfo.Builder newBuilder​(PathLogInfo path)
        Returns a new builder for creating an instance of this class.
        Parameters:
        path - Path relative to event context. Must not be null.
        Returns:
        builder for this class.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • toStringMultiline

        public java.lang.String toStringMultiline()
        Returns a String representation of this object formatted for easier readability.

        The returned String may contain newlines.

        Overrides:
        toStringMultiline in class FileOrFolderLogInfo
        Returns:
        Formatted, multiline String representation of this object