Class FilesUploadV2Request.UploadFile

java.lang.Object
com.slack.api.methods.request.files.FilesUploadV2Request.UploadFile
Enclosing class:
FilesUploadV2Request

public static class FilesUploadV2Request.UploadFile extends Object
  • Constructor Details

    • UploadFile

      public UploadFile()
    • UploadFile

      public UploadFile(File file, byte[] fileData, String content, String filename, String title, String altTxt, String snippetType)
      Creates a new UploadFile instance.
      Parameters:
      file - File contents via `multipart/form-data`. If omitting this parameter, you must submit `content`.
      fileData - File contents via `multipart/form-data`. If omitting this parameter, you must submit `content`.
      content - File contents via a POST variable. If omitting this parameter, you must provide a `file`.
      filename - Name of the file being uploaded.
      title - Title of the file, which is visible in the Slack UI.
      altTxt - Description of image for screen-reader.
      snippetType - Syntax type of the snippet being uploaded.
  • Method Details

    • builder

    • 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.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object