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 java.lang.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
Fields Modifier and Type Field Description static java.lang.StringTYPE -
Constructor Summary
Constructors Constructor Description SectionBlock()SectionBlock(TextObject text, java.lang.String blockId, java.util.List<TextObject> fields, BlockElement accessory) -
Method Summary
Modifier and Type Method Description static SectionBlock.SectionBlockBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)BlockElementgetAccessory()java.lang.StringgetBlockId()Returns the block_id string; the value can be null if the object is manually crafted.java.util.List<TextObject>getFields()TextObjectgetText()java.lang.StringgetType()Determines the type of layout block, e.g.inthashCode()voidsetAccessory(BlockElement accessory)voidsetBlockId(java.lang.String blockId)voidsetFields(java.util.List<TextObject> fields)voidsetText(TextObject text)java.lang.StringtoString()
-
Field Details
-
TYPE
public static final java.lang.String TYPE- See Also:
- Constant Field Values
-
-
Constructor Details
-
SectionBlock
public SectionBlock() -
SectionBlock
public SectionBlock(TextObject text, java.lang.String blockId, java.util.List<TextObject> fields, BlockElement accessory)
-
-
Method Details
-
builder
-
getType
public java.lang.String 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
public java.lang.String 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
public void setBlockId(java.lang.String blockId) -
setFields
-
setAccessory
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other) -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-