Package com.slack.api.model.block
Class SectionBlock
java.lang.Object
com.slack.api.model.block.SectionBlock
- All Implemented Interfaces:
LayoutBlock
https://docs.slack.dev/reference/block-kit/blocks/section-block
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSectionBlock(TextObject text, String blockId, List<TextObject> fields, BlockElement accessory, Boolean expand) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanReturns 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.inthashCode()voidsetAccessory(BlockElement accessory) voidsetBlockId(String blockId) voidvoidsetFields(List<TextObject> fields) voidsetText(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, Boolean expand)
-
-
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
-
getText
-
getBlockId
Description copied from interface:LayoutBlockReturns the block_id string; the value can be null if the object is manually crafted.- Specified by:
getBlockIdin interfaceLayoutBlock
-
getFields
-
getAccessory
-
getExpand
-
setText
-
setBlockId
-
setFields
-
setAccessory
-
setExpand
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-