Class FilesUploadV2Request.UploadFile

    • Constructor Detail

      • UploadFile

        public UploadFile()
    • Method Detail

      • getFile

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

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

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

        public String getFilename()
        Name of the file being uploaded.
      • getTitle

        public String getTitle()
        Title of the file, which is visible in the Slack UI.
      • getAltTxt

        public String getAltTxt()
        Description of image for screen-reader.
      • getSnippetType

        public String getSnippetType()
        Syntax type of the snippet being uploaded.
      • 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)
        File contents via `multipart/form-data`. If omitting this parameter, you must submit `content`.
      • setContent

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

        public void setFilename​(String filename)
        Name of the file being uploaded.
      • setTitle

        public void setTitle​(String title)
        Title of the file, which is visible in the Slack UI.
      • setAltTxt

        public void setAltTxt​(String altTxt)
        Description of image for screen-reader.
      • setSnippetType

        public void setSnippetType​(String snippetType)
        Syntax type of the snippet being uploaded.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object