Class HeaderBlock

  • All Implemented Interfaces:
    LayoutBlock

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

      • HeaderBlock

        public HeaderBlock()
    • 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()
        A string acting as a unique identifier for a block. If not specified, one will be generated. Maximum length for this field is 255 characters. block_id should be unique for each message and each iteration of a message. If a message is updated, use a new block_id.
      • getText

        public PlainTextObject getText()
        The text for the block, in the form of a plain_text text object. Maximum length for the text in this field is 3000 characters.
      • setBlockId

        public void setBlockId​(String blockId)
        A string acting as a unique identifier for a block. If not specified, one will be generated. Maximum length for this field is 255 characters. block_id should be unique for each message and each iteration of a message. If a message is updated, use a new block_id.
      • setText

        public void setText​(PlainTextObject text)
        The text for the block, in the form of a plain_text text object. Maximum length for the text in this field is 3000 characters.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object