Package com.slack.api.model.block
Class SectionBlock
java.lang.Object
com.slack.api.model.block.SectionBlock
- All Implemented Interfaces:
LayoutBlock
public class SectionBlock extends Object implements LayoutBlock
https://api.slack.com/reference/messaging/blocks#section
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSectionBlock.SectionBlockBuilder -
Field Summary
-
Constructor Summary
Constructors Constructor Description SectionBlock()SectionBlock(TextObject text, String blockId, List<TextObject> fields, BlockElement accessory) -
Method Summary
Modifier and Type Method Description static SectionBlock.SectionBlockBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)BlockElementgetAccessory()StringgetBlockId()Returns the block_id string; the value can be null if the object is manually crafted.List<TextObject>getFields()TextObjectgetText()StringgetType()Determines the type of layout block, e.g.inthashCode()voidsetAccessory(BlockElement accessory)voidsetBlockId(String blockId)voidsetFields(List<TextObject> fields)voidsetText(TextObject text)StringtoString()
-
Field Details
-
TYPE
- See Also:
- Constant Field Values
-
-
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: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
-
setText
-
setBlockId
-
setFields
-
setAccessory
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-