Class FilesUploadRequest
java.lang.Object
com.slack.api.methods.request.files.FilesUploadRequest
- All Implemented Interfaces:
SlackApiRequest
public class FilesUploadRequest extends 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(Object other)
boolean
equals(Object o)
List<String>
getChannels()
Comma-separated list of channel names or IDs where the file will be shared.String
getContent()
File contents via a POST variable.File
getFile()
File contents via `multipart/form-data`.byte[]
getFileData()
String
getFilename()
Filename of file.String
getFiletype()
A [file type](/types/file#file_types) identifier.String
getInitialComment()
Initial comment to add to file.String
getThreadTs()
Provide another message's ts value to upload this file as a reply.String
getTitle()
Title of file.String
getToken()
Authentication token.int
hashCode()
void
setChannels(List<String> channels)
Comma-separated list of channel names or IDs where the file will be shared.void
setContent(String content)
File contents via a POST variable.void
setFile(File file)
File contents via `multipart/form-data`.void
setFileData(byte[] fileData)
void
setFilename(String filename)
Filename of file.void
setFiletype(String filetype)
A [file type](/types/file#file_types) identifier.void
setInitialComment(String initialComment)
Initial comment to add to file.void
setThreadTs(String threadTs)
Provide another message's ts value to upload this file as a reply.void
setTitle(String title)
Title of file.void
setToken(String token)
Authentication token.String
toString()
-
Method Details
-
builder
-
getToken
Authentication token. Requires scope: `files:write:user`- Specified by:
getToken
in interfaceSlackApiRequest
-
getFile
File contents via `multipart/form-data`. If omitting this parameter, you must submit `content`. -
getFileData
public byte[] getFileData() -
getContent
File contents via a POST variable. If omitting this parameter, you must provide a `file`. -
getFiletype
A [file type](/types/file#file_types) identifier. -
getFilename
Filename of file. -
getTitle
Title of file. -
getInitialComment
Initial comment to add to file. -
getChannels
Comma-separated list of channel names or IDs where the file will be shared. -
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
Authentication token. Requires scope: `files:write:user` -
setFile
File contents via `multipart/form-data`. If omitting this parameter, you must submit `content`. -
setFileData
public void setFileData(byte[] fileData) -
setContent
File contents via a POST variable. If omitting this parameter, you must provide a `file`. -
setFiletype
A [file type](/types/file#file_types) identifier. -
setFilename
Filename of file. -
setTitle
Title of file. -
setInitialComment
Initial comment to add to file. -
setChannels
Comma-separated list of channel names or IDs where the file will be shared. -
setThreadTs
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
-
canEqual
-
hashCode
public int hashCode() -
toString
-