Package com.slack.api.model.block
Class FileBlock
java.lang.Object
com.slack.api.model.block.FileBlock
- All Implemented Interfaces:
LayoutBlock
public class FileBlock extends java.lang.Object implements LayoutBlock
https://api.slack.com/reference/messaging/blocks#file
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileBlock.FileBlockBuilder -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTYPE -
Constructor Summary
-
Method Summary
Modifier and Type Method Description static FileBlock.FileBlockBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetBlockId()Returns the block_id string; the value can be null if the object is manually crafted.java.lang.StringgetExternalId()java.lang.StringgetSource()java.lang.StringgetType()Determines the type of layout block, e.g.inthashCode()voidsetBlockId(java.lang.String blockId)voidsetExternalId(java.lang.String externalId)voidsetSource(java.lang.String source)java.lang.StringtoString()
-
Field Details
-
TYPE
public static final java.lang.String TYPE- See Also:
- Constant Field Values
-
-
Constructor Details
-
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
-
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
-
getExternalId
public java.lang.String getExternalId() -
getSource
public java.lang.String getSource() -
setBlockId
public void setBlockId(java.lang.String blockId) -
setExternalId
public void setExternalId(java.lang.String externalId) -
setSource
public void setSource(java.lang.String source) -
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
-