public class FilesUploadRequest extends Object implements SlackApiRequest
| Modifier and Type | Class and Description |
|---|---|
static class |
FilesUploadRequest.FilesUploadRequestBuilder |
| Modifier and Type | Method and 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() |
public static FilesUploadRequest.FilesUploadRequestBuilder builder()
public String getToken()
getToken in interface SlackApiRequestpublic File getFile()
public byte[] getFileData()
public String getContent()
public String getFiletype()
public String getFilename()
public String getTitle()
public String getInitialComment()
public List<String> getChannels()
public String getThreadTs()
public void setToken(String token)
public void setFile(File file)
public void setFileData(byte[] fileData)
public void setContent(String content)
public void setFiletype(String filetype)
public void setFilename(String filename)
public void setTitle(String title)
public void setInitialComment(String initialComment)
public void setChannels(List<String> channels)
public void setThreadTs(String threadTs)
protected boolean canEqual(Object other)
Copyright © 2020. All rights reserved.