public class InputBlock extends Object implements LayoutBlock
| Modifier and Type | Class and Description |
|---|---|
static class |
InputBlock.InputBlockBuilder |
| Constructor and Description |
|---|
InputBlock() |
InputBlock(String blockId,
PlainTextObject label,
BlockElement element,
PlainTextObject hint,
boolean optional) |
| Modifier and Type | Method and Description |
|---|---|
static InputBlock.InputBlockBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getBlockId() |
BlockElement |
getElement()
An plain-text input element, a select menu element, or a multi-select menu element.
|
PlainTextObject |
getHint()
An optional hint that appears below an input element in a lighter grey.
|
PlainTextObject |
getLabel()
A label that appears above an input element in the form of a text object that must have type of plain_text.
|
String |
getType()
Determines the type of layout block, e.g.
|
int |
hashCode() |
boolean |
isOptional()
A boolean that indicates whether the input element may be empty when a user submits the modal.
|
void |
setBlockId(String blockId) |
void |
setElement(BlockElement element)
An plain-text input element, a select menu element, or a multi-select menu element.
|
void |
setHint(PlainTextObject hint)
An optional hint that appears below an input element in a lighter grey.
|
void |
setLabel(PlainTextObject label)
A label that appears above an input element in the form of a text object that must have type of plain_text.
|
void |
setOptional(boolean optional)
A boolean that indicates whether the input element may be empty when a user submits the modal.
|
String |
toString() |
public static final String TYPE
public InputBlock()
public InputBlock(String blockId, PlainTextObject label, BlockElement element, PlainTextObject hint, boolean optional)
public static InputBlock.InputBlockBuilder builder()
public String getType()
LayoutBlockgetType in interface LayoutBlockpublic String getBlockId()
public PlainTextObject getLabel()
public BlockElement getElement()
public PlainTextObject getHint()
public boolean isOptional()
public void setBlockId(String blockId)
public void setLabel(PlainTextObject label)
public void setElement(BlockElement element)
public void setHint(PlainTextObject hint)
public void setOptional(boolean optional)
protected boolean canEqual(Object other)
Copyright © 2020. All rights reserved.