Package com.slack.api.model.block
Class InputBlock.InputBlockBuilder
java.lang.Object
com.slack.api.model.block.InputBlock.InputBlockBuilder
- Enclosing class:
- InputBlock
public static class InputBlock.InputBlockBuilder
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description InputBlock.InputBlockBuilderblockId(java.lang.String blockId)InputBlockbuild()InputBlock.InputBlockBuilderdispatchAction(java.lang.Boolean dispatchAction)A boolean that indicates whether or not use of element in this block should dispatch a block_actions payload.InputBlock.InputBlockBuilderelement(BlockElement element)A plain-text input element, a select menu element, a multi-select menu, or a datepicker element.InputBlock.InputBlockBuilderhint(PlainTextObject hint)An optional hint that appears below an input element in a lighter grey.InputBlock.InputBlockBuilderlabel(PlainTextObject label)A label that appears above an input element in the form of a text object that must have type of plain_text.InputBlock.InputBlockBuilderoptional(boolean optional)A boolean that indicates whether the input element may be empty when a user submits the modal.java.lang.StringtoString()
-
Method Details
-
blockId
- Returns:
this.
-
label
A label that appears above an input element in the form of a text object that must have type of plain_text. Maximum length for the text in this field is 2000 characters.- Returns:
this.
-
element
A plain-text input element, a select menu element, a multi-select menu, or a datepicker element.- Returns:
this.
-
dispatchAction
A boolean that indicates whether or not use of element in this block should dispatch a block_actions payload. Defaults to false.- Returns:
this.
-
hint
An optional hint that appears below an input element in a lighter grey. It must be a a text object with a type of plain_text. Maximum length for the text in this field is 2000 characters.- Returns:
this.
-
optional
A boolean that indicates whether the input element may be empty when a user submits the modal. Defaults to false.- Returns:
this.
-
build
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-