public static class InputBlock.InputBlockBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
InputBlock.InputBlockBuilder |
blockId(String blockId) |
InputBlock |
build() |
InputBlock.InputBlockBuilder |
element(BlockElement element)
An plain-text input element, a select menu element, or a multi-select menu element.
|
InputBlock.InputBlockBuilder |
hint(PlainTextObject hint)
An optional hint that appears below an input element in a lighter grey.
|
InputBlock.InputBlockBuilder |
label(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.InputBlockBuilder |
optional(boolean optional)
A boolean that indicates whether the input element may be empty when a user submits the modal.
|
String |
toString() |
public InputBlock.InputBlockBuilder blockId(String blockId)
public InputBlock.InputBlockBuilder label(PlainTextObject label)
public InputBlock.InputBlockBuilder element(BlockElement element)
public InputBlock.InputBlockBuilder hint(PlainTextObject hint)
public InputBlock.InputBlockBuilder optional(boolean optional)
public InputBlock build()
Copyright © 2020. All rights reserved.