Class MarkdownBlock

java.lang.Object
com.slack.api.model.block.MarkdownBlock
All Implemented Interfaces:
LayoutBlock

public class MarkdownBlock extends Object implements LayoutBlock
https://docs.slack.dev/reference/block-kit/blocks/markdown-block
  • Field Details

  • Constructor Details

    • MarkdownBlock

      public MarkdownBlock()
    • MarkdownBlock

      public MarkdownBlock(String text, String blockId)
      Creates a new MarkdownBlock instance.
      Parameters:
      text - The standard markdown-formatted text. Limit 12,000 characters max.
      blockId - The block_id is ignored in markdown blocks and will not be retained.
  • Method Details

    • builder

      public static MarkdownBlock.MarkdownBlockBuilder builder()
    • getType

      public String getType()
      The type of block. For a markdown block, type is always markdown.
      Specified by:
      getType in interface LayoutBlock
    • getText

      public String getText()
      The standard markdown-formatted text. Limit 12,000 characters max.
    • getBlockId

      public String getBlockId()
      The block_id is ignored in markdown blocks and will not be retained.
      Specified by:
      getBlockId in interface LayoutBlock
    • setText

      public void setText(String text)
      The standard markdown-formatted text. Limit 12,000 characters max.
    • setBlockId

      public void setBlockId(String blockId)
      The block_id is ignored in markdown blocks and will not be retained.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object