Class PreviewResult.Builder

    • Constructor Detail

      • Builder

        protected Builder()
    • Method Detail

      • withFileMetadata

        public PreviewResult.Builder withFileMetadata​(FileMetadata fileMetadata)
        Set value for optional field.
        Parameters:
        fileMetadata - Metadata corresponding to the file received as an argument. Will be populated if the endpoint is called with a path (ReadPath).
        Returns:
        this builder
      • withLinkMetadata

        public PreviewResult.Builder withLinkMetadata​(MinimalFileLinkMetadata linkMetadata)
        Set value for optional field.
        Parameters:
        linkMetadata - Minimal metadata corresponding to the file received as an argument. Will be populated if the endpoint is called using a shared link (SharedLinkFileInfo).
        Returns:
        this builder