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 class
SectionBlock.SectionBlockBuilder
-
Constructor Summary
Constructors Constructor Description SectionBlock()
SectionBlock(TextObject text, String blockId, List<TextObject> fields, BlockElement accessory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SectionBlock.SectionBlockBuilder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
BlockElement
getAccessory()
String
getBlockId()
Returns the block_id string; the value can be null if the object is manually crafted.List<TextObject>
getFields()
TextObject
getText()
String
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)
String
toString()
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SectionBlock
public SectionBlock()
-
SectionBlock
public SectionBlock(TextObject text, String blockId, List<TextObject> fields, BlockElement accessory)
-
-
Method Detail
-
builder
public static SectionBlock.SectionBlockBuilder 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
-
getText
public TextObject getText()
-
getBlockId
public String 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
public List<TextObject> getFields()
-
getAccessory
public BlockElement getAccessory()
-
setText
public void setText(TextObject text)
-
setBlockId
public void setBlockId(String blockId)
-
setFields
public void setFields(List<TextObject> fields)
-
setAccessory
public void setAccessory(BlockElement accessory)
-
canEqual
protected boolean canEqual(Object other)
-
-