Class FilesUploadRequest

    • Method Detail

      • getToken

        public String getToken()
        Authentication token. Requires scope: `files:write:user`
        Specified by:
        getToken in interface SlackApiRequest
      • getFile

        public File getFile()
        File contents via `multipart/form-data`. If omitting this parameter, you must submit `content`.
      • getFileData

        public byte[] getFileData()
      • getContent

        public String getContent()
        File contents via a POST variable. If omitting this parameter, you must provide a `file`.
      • getFiletype

        public String getFiletype()
        A [file type](/types/file#file_types) identifier.
      • getFilename

        public String getFilename()
        Filename of file.
      • getTitle

        public String getTitle()
        Title of file.
      • getInitialComment

        public String getInitialComment()
        Initial comment to add to file.
      • getChannels

        public List<String> getChannels()
        Comma-separated list of channel names or IDs where the file will be shared.
      • getThreadTs

        public String getThreadTs()
        Provide another message's ts value to upload this file as a reply. Never use a reply's ts value; use its parent instead.
      • setToken

        public void setToken​(String token)
        Authentication token. Requires scope: `files:write:user`
      • setFile

        public void setFile​(File file)
        File contents via `multipart/form-data`. If omitting this parameter, you must submit `content`.
      • setFileData

        public void setFileData​(byte[] fileData)
      • setContent

        public void setContent​(String content)
        File contents via a POST variable. If omitting this parameter, you must provide a `file`.
      • setFiletype

        public void setFiletype​(String filetype)
        A [file type](/types/file#file_types) identifier.
      • setFilename

        public void setFilename​(String filename)
        Filename of file.
      • setTitle

        public void setTitle​(String title)
        Title of file.
      • setInitialComment

        public void setInitialComment​(String initialComment)
        Initial comment to add to file.
      • setChannels

        public void setChannels​(List<String> channels)
        Comma-separated list of channel names or IDs where the file will be shared.
      • setThreadTs

        public void setThreadTs​(String threadTs)
        Provide another message's ts value to upload this file as a reply. Never use a reply's ts value; use its parent instead.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object