Class FileBlock

  • All Implemented Interfaces:
    LayoutBlock

    public class FileBlock
    extends Object
    implements LayoutBlock
    https://api.slack.com/reference/messaging/blocks#file
    • Constructor Detail

      • FileBlock

        public FileBlock()
    • Method Detail

      • getType

        public String getType()
        Description copied from interface: LayoutBlock
        Determines the type of layout block, e.g. section, divider, context, actions and image.
        Specified by:
        getType in interface LayoutBlock
      • getBlockId

        public String getBlockId()
        Description copied from interface: LayoutBlock
        Returns the block_id string; the value can be null if the object is manually crafted.
        Specified by:
        getBlockId in interface LayoutBlock
      • getExternalId

        public String getExternalId()
      • getSource

        public String getSource()
      • getFileId

        public String getFileId()
      • getFile

        public File getFile()
      • setBlockId

        public void setBlockId​(String blockId)
      • setExternalId

        public void setExternalId​(String externalId)
      • setSource

        public void setSource​(String source)
      • setFileId

        public void setFileId​(String fileId)
      • setFile

        public void setFile​(File file)
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object