Package com.slack.api.model.block
Class ContextBlock
- java.lang.Object
-
- com.slack.api.model.block.ContextBlock
-
- All Implemented Interfaces:
LayoutBlock
public class ContextBlock extends Object implements LayoutBlock
https://api.slack.com/reference/messaging/blocks#context
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContextBlock.ContextBlockBuilder
-
Constructor Summary
Constructors Constructor Description ContextBlock()ContextBlock(List<ContextBlockElement> elements, String blockId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContextBlock.ContextBlockBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)StringgetBlockId()Returns the block_id string; the value can be null if the object is manually crafted.List<ContextBlockElement>getElements()StringgetType()Determines the type of layout block, e.g.inthashCode()voidsetBlockId(String blockId)voidsetElements(List<ContextBlockElement> elements)StringtoString()
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ContextBlock
public ContextBlock()
-
ContextBlock
public ContextBlock(List<ContextBlockElement> elements, String blockId)
-
-
Method Detail
-
builder
public static ContextBlock.ContextBlockBuilder builder()
-
getType
public String getType()
Description copied from interface:LayoutBlockDetermines the type of layout block, e.g. section, divider, context, actions and image.- Specified by:
getTypein interfaceLayoutBlock
-
getElements
public List<ContextBlockElement> getElements()
-
getBlockId
public 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
-
setElements
public void setElements(List<ContextBlockElement> elements)
-
setBlockId
public void setBlockId(String blockId)
-
canEqual
protected boolean canEqual(Object other)
-
-