Class FilesUploadRequest

java.lang.Object
com.slack.api.methods.request.files.FilesUploadRequest
All Implemented Interfaces:
SlackApiRequest

public class FilesUploadRequest
extends java.lang.Object
implements SlackApiRequest
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  FilesUploadRequest.FilesUploadRequestBuilder  
  • Method Summary

    Modifier and Type Method Description
    static FilesUploadRequest.FilesUploadRequestBuilder builder()  
    protected boolean canEqual​(java.lang.Object other)  
    boolean equals​(java.lang.Object o)  
    java.util.List<java.lang.String> getChannels()
    Comma-separated list of channel names or IDs where the file will be shared.
    java.lang.String getContent()
    File contents via a POST variable.
    java.io.File getFile()
    File contents via `multipart/form-data`.
    byte[] getFileData()  
    java.lang.String getFilename()
    Filename of file.
    java.lang.String getFiletype()
    A [file type](/types/file#file_types) identifier.
    java.lang.String getInitialComment()
    Initial comment to add to file.
    java.lang.String getThreadTs()
    Provide another message's ts value to upload this file as a reply.
    java.lang.String getTitle()
    Title of file.
    java.lang.String getToken()
    Authentication token.
    int hashCode()  
    void setChannels​(java.util.List<java.lang.String> channels)
    Comma-separated list of channel names or IDs where the file will be shared.
    void setContent​(java.lang.String content)
    File contents via a POST variable.
    void setFile​(java.io.File file)
    File contents via `multipart/form-data`.
    void setFileData​(byte[] fileData)  
    void setFilename​(java.lang.String filename)
    Filename of file.
    void setFiletype​(java.lang.String filetype)
    A [file type](/types/file#file_types) identifier.
    void setInitialComment​(java.lang.String initialComment)
    Initial comment to add to file.
    void setThreadTs​(java.lang.String threadTs)
    Provide another message's ts value to upload this file as a reply.
    void setTitle​(java.lang.String title)
    Title of file.
    void setToken​(java.lang.String token)
    Authentication token.
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • builder

    • getToken

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

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

      public byte[] getFileData()
    • getContent

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

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

      public java.lang.String getFilename()
      Filename of file.
    • getTitle

      public java.lang.String getTitle()
      Title of file.
    • getInitialComment

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

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

      public java.lang.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​(java.lang.String token)
      Authentication token. Requires scope: `files:write:user`
    • setFile

      public void setFile​(java.io.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​(java.lang.String content)
      File contents via a POST variable. If omitting this parameter, you must provide a `file`.
    • setFiletype

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

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

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

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

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

      public void setThreadTs​(java.lang.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.
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • canEqual

      protected boolean canEqual​(java.lang.Object other)
    • hashCode

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

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object