Class DividerBlock

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

public class DividerBlock
extends java.lang.Object
implements LayoutBlock
https://api.slack.com/reference/messaging/blocks#divider
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  DividerBlock.DividerBlockBuilder  
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String TYPE  
  • Constructor Summary

    Constructors 
    Constructor Description
    DividerBlock()  
    DividerBlock​(java.lang.String blockId)  
  • Method Summary

    Modifier and Type Method Description
    static DividerBlock.DividerBlockBuilder builder()  
    protected boolean canEqual​(java.lang.Object other)  
    boolean equals​(java.lang.Object o)  
    java.lang.String getBlockId()
    Returns the block_id string; the value can be null if the object is manually crafted.
    java.lang.String getType()
    Determines the type of layout block, e.g.
    int hashCode()  
    void setBlockId​(java.lang.String blockId)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • builder

      public static DividerBlock.DividerBlockBuilder builder()
    • getType

      public java.lang.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 java.lang.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
    • setBlockId

      public void setBlockId​(java.lang.String blockId)
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • canEqual

      protected boolean canEqual​(java.lang.Object other)
    • hashCode

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

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object