Package com.slack.api.model.block
Class HeaderBlock.HeaderBlockBuilder
- java.lang.Object
-
- com.slack.api.model.block.HeaderBlock.HeaderBlockBuilder
-
- Enclosing class:
- HeaderBlock
public static class HeaderBlock.HeaderBlockBuilder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HeaderBlock.HeaderBlockBuilder
blockId(String blockId)
A string acting as a unique identifier for a block.HeaderBlock
build()
HeaderBlock.HeaderBlockBuilder
text(PlainTextObject text)
The text for the block, in the form of a plain_text text object.String
toString()
-
-
-
Method Detail
-
blockId
public HeaderBlock.HeaderBlockBuilder blockId(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.- Returns:
this
.
-
text
public HeaderBlock.HeaderBlockBuilder text(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.- Returns:
this
.
-
build
public HeaderBlock build()
-
-