Class FileInputElement
- java.lang.Object
-
- com.slack.api.model.block.element.BlockElement
-
- com.slack.api.model.block.element.FileInputElement
-
public class FileInputElement extends BlockElement
https://api.slack.com/reference/block-kit/block-elements#file_input
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileInputElement.FileInputElementBuilder
-
Constructor Summary
Constructors Constructor Description FileInputElement()FileInputElement(String actionId, List<String> filetypes, Integer maxFiles)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileInputElement.FileInputElementBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)StringgetActionId()An identifier for the input value when the parent modal is submitted.List<String>getFiletypes()An array of valid file extensions that will be accepted for this element.IntegergetMaxFiles()Maximum number of files that can be uploaded for this file_input element.StringgetType()inthashCode()voidsetActionId(String actionId)An identifier for the input value when the parent modal is submitted.voidsetFiletypes(List<String> filetypes)An array of valid file extensions that will be accepted for this element.voidsetMaxFiles(Integer maxFiles)Maximum number of files that can be uploaded for this file_input element.StringtoString()
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
builder
public static FileInputElement.FileInputElementBuilder builder()
-
getType
public String getType()
-
getActionId
public String getActionId()
An identifier for the input value when the parent modal is submitted. You can use this when you receive a view_submission payload to identify the value of the input element. Should be unique among all other action_ids in the containing block. Maximum length is 255 characters.
-
getFiletypes
public List<String> getFiletypes()
An array of valid file extensions that will be accepted for this element. All file extensions will be accepted if filetypes is not specified. This validation is provided for convenience only, and you should perform your own file type validation based on what you expect to receive.
-
getMaxFiles
public Integer getMaxFiles()
Maximum number of files that can be uploaded for this file_input element. Minimum of 1, maximum of 10. Defaults to 10 if not specified.
-
setActionId
public void setActionId(String actionId)
An identifier for the input value when the parent modal is submitted. You can use this when you receive a view_submission payload to identify the value of the input element. Should be unique among all other action_ids in the containing block. Maximum length is 255 characters.
-
setFiletypes
public void setFiletypes(List<String> filetypes)
An array of valid file extensions that will be accepted for this element. All file extensions will be accepted if filetypes is not specified. This validation is provided for convenience only, and you should perform your own file type validation based on what you expect to receive.
-
setMaxFiles
public void setMaxFiles(Integer maxFiles)
Maximum number of files that can be uploaded for this file_input element. Minimum of 1, maximum of 10. Defaults to 10 if not specified.
-
canEqual
protected boolean canEqual(Object other)
-
-