Class FilesUploadV2Request.UploadFile
- java.lang.Object
-
- com.slack.api.methods.request.files.FilesUploadV2Request.UploadFile
-
- Enclosing class:
- FilesUploadV2Request
public static class FilesUploadV2Request.UploadFile extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFilesUploadV2Request.UploadFile.UploadFileBuilder
-
Constructor Summary
Constructors Constructor Description UploadFile()UploadFile(File file, byte[] fileData, String content, String filename, String title, String altTxt, String snippetType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FilesUploadV2Request.UploadFile.UploadFileBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)StringgetAltTxt()Description of image for screen-reader.StringgetContent()File contents via a POST variable.FilegetFile()File contents via `multipart/form-data`.byte[]getFileData()File contents via `multipart/form-data`.StringgetFilename()Name of the file being uploaded.StringgetSnippetType()Syntax type of the snippet being uploaded.StringgetTitle()Title of the file, which is visible in the Slack UI.inthashCode()voidsetAltTxt(String altTxt)Description of image for screen-reader.voidsetContent(String content)File contents via a POST variable.voidsetFile(File file)File 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.voidsetTitle(String title)Title of the file, which is visible in the Slack UI.StringtoString()
-
-
-
Method Detail
-
builder
public static FilesUploadV2Request.UploadFile.UploadFileBuilder 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.
-
canEqual
protected boolean canEqual(Object other)
-
-