Package com.slack.api.model.block
Class HeaderBlock
java.lang.Object
com.slack.api.model.block.HeaderBlock
- All Implemented Interfaces:
LayoutBlock
https://docs.slack.dev/reference/block-kit/blocks/header-block
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHeaderBlock(String blockId, PlainTextObject text) Creates a newHeaderBlockinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanA string acting as a unique identifier for a block.getText()The text for the block, in the form of a plain_text text object.getType()Determines the type of layout block, e.g.inthashCode()voidsetBlockId(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.toString()
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
HeaderBlock
public HeaderBlock() -
HeaderBlock
Creates a newHeaderBlockinstance.- Parameters:
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.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.
-
-
Method Details
-
builder
-
getType
Description copied from interface:LayoutBlockDetermines the type of layout block, e.g. section, divider, context, actions and image.- Specified by:
getTypein interfaceLayoutBlock
-
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
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
-
canEqual
-
hashCode
public int hashCode() -
toString
-