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 class
FilesUploadV2Request.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.UploadFileBuilder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getAltTxt()
Description of image for screen-reader.String
getContent()
File contents via a POST variable.File
getFile()
File contents via `multipart/form-data`.byte[]
getFileData()
File contents via `multipart/form-data`.String
getFilename()
Name of the file being uploaded.String
getSnippetType()
Syntax type of the snippet being uploaded.String
getTitle()
Title of the file, which is visible in the Slack UI.int
hashCode()
void
setAltTxt(String altTxt)
Description of image for screen-reader.void
setContent(String content)
File contents via a POST variable.void
setFile(File file)
File contents via `multipart/form-data`.void
setFileData(byte[] fileData)
File contents via `multipart/form-data`.void
setFilename(String filename)
Name of the file being uploaded.void
setSnippetType(String snippetType)
Syntax type of the snippet being uploaded.void
setTitle(String title)
Title of the file, which is visible in the Slack UI.String
toString()
-
-
-
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)
-
-