Class FilesUploadV2Request.UploadFile
java.lang.Object
com.slack.api.methods.request.files.FilesUploadV2Request.UploadFile
- Enclosing class:
- FilesUploadV2Request
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanDescription of image for screen-reader.File contents via a POST variable.getFile()File contents via `multipart/form-data`.byte[]File contents via `multipart/form-data`.Name of the file being uploaded.Syntax type of the snippet being uploaded.getTitle()Title of the file, which is visible in the Slack UI.inthashCode()voidDescription of image for screen-reader.voidsetContent(String content) File contents via a POST variable.voidFile contents via `multipart/form-data`.voidsetFileData(byte[] fileData) File contents via `multipart/form-data`.voidsetFilename(String filename) Name of the file being uploaded.voidsetSnippetType(String snippetType) Syntax type of the snippet being uploaded.voidTitle of the file, which is visible in the Slack UI.toString()
-
Constructor Details
-
UploadFile
public UploadFile() -
UploadFile
public UploadFile(File file, byte[] fileData, String content, String filename, String title, String altTxt, String snippetType) Creates a newUploadFileinstance.- 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
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
File contents via a POST variable. If omitting this parameter, you must provide a `file`. -
getFilename
Name of the file being uploaded. -
getTitle
Title of the file, which is visible in the Slack UI. -
getAltTxt
Description of image for screen-reader. -
getSnippetType
Syntax type of the snippet being uploaded. -
setFile
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
File contents via a POST variable. If omitting this parameter, you must provide a `file`. -
setFilename
Name of the file being uploaded. -
setTitle
Title of the file, which is visible in the Slack UI. -
setAltTxt
Description of image for screen-reader. -
setSnippetType
Syntax type of the snippet being uploaded. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-