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 Object implements LayoutBlock
https://api.slack.com/reference/messaging/blocks#header
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HeaderBlock.HeaderBlockBuilder
-
Constructor Summary
Constructors Constructor Description HeaderBlock()
HeaderBlock(String blockId, PlainTextObject text)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HeaderBlock.HeaderBlockBuilder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getBlockId()
A string acting as a unique identifier for a block.PlainTextObject
getText()
The text for the block, in the form of a plain_text text object.String
getType()
Determines the type of layout block, e.g.int
hashCode()
void
setBlockId(String blockId)
A string acting as a unique identifier for a block.void
setText(PlainTextObject text)
The text for the block, in the form of a plain_text text object.String
toString()
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HeaderBlock
public HeaderBlock()
-
HeaderBlock
public HeaderBlock(String blockId, PlainTextObject text)
-
-
Method Detail
-
builder
public static HeaderBlock.HeaderBlockBuilder builder()
-
getType
public 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 interfaceLayoutBlock
-
getBlockId
public 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:
getBlockId
in interfaceLayoutBlock
-
getText
public PlainTextObject 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(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
public void setText(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.
-
canEqual
protected boolean canEqual(Object other)
-
-