Package com.slack.api.model.block
Class HeaderBlock
java.lang.Object
com.slack.api.model.block.HeaderBlock
- All Implemented Interfaces:
LayoutBlock
public class HeaderBlock extends java.lang.Object implements LayoutBlock
https://api.slack.com/reference/messaging/blocks#header
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHeaderBlock.HeaderBlockBuilder -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTYPE -
Constructor Summary
Constructors Constructor Description HeaderBlock()HeaderBlock(java.lang.String blockId, PlainTextObject text) -
Method Summary
Modifier and Type Method Description static HeaderBlock.HeaderBlockBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetBlockId()A string acting as a unique identifier for a block.PlainTextObjectgetText()The text for the block, in the form of a plain_text text object.java.lang.StringgetType()Determines the type of layout block, e.g.inthashCode()voidsetBlockId(java.lang.String blockId)A string acting as a unique identifier for a block.voidsetText(PlainTextObject text)The text for the block, in the form of a plain_text text object.java.lang.StringtoString()
-
Field Details
-
TYPE
public static final java.lang.String TYPE- See Also:
- Constant Field Values
-
-
Constructor Details
-
HeaderBlock
public HeaderBlock() -
HeaderBlock
-
-
Method Details
-
builder
-
getType
public java.lang.String getType()Description copied from interface:LayoutBlockDetermines the type of layout block, e.g. section, divider, context, actions and image.- Specified by:
getTypein interfaceLayoutBlock
-
getBlockId
public java.lang.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.- Specified by:
getBlockIdin interfaceLayoutBlock
-
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(java.lang.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
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. -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other) -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-