Package com.slack.api.model.block
Class SectionBlock
java.lang.Object
com.slack.api.model.block.SectionBlock
- All Implemented Interfaces:
LayoutBlock
https://api.slack.com/reference/messaging/blocks#section
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSectionBlock
(TextObject text, String blockId, List<TextObject> fields, BlockElement accessory) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
Returns the block_id string; the value can be null if the object is manually crafted.getText()
getType()
Determines the type of layout block, e.g.int
hashCode()
void
setAccessory
(BlockElement accessory) void
setBlockId
(String blockId) void
setFields
(List<TextObject> fields) void
setText
(TextObject text) toString()
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
SectionBlock
public SectionBlock() -
SectionBlock
public SectionBlock(TextObject text, String blockId, List<TextObject> fields, BlockElement accessory)
-
-
Method Details
-
builder
-
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
-
getText
-
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 interfaceLayoutBlock
-
getFields
-
getAccessory
-
setText
-
setBlockId
-
setFields
-
setAccessory
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-