public class MultiStaticSelectElement extends BlockElement
| Modifier and Type | Class and Description |
|---|---|
static class |
MultiStaticSelectElement.MultiStaticSelectElementBuilder |
| Constructor and Description |
|---|
MultiStaticSelectElement() |
MultiStaticSelectElement(PlainTextObject placeholder,
String actionId,
List<OptionObject> options,
List<OptionGroupObject> optionGroups,
List<OptionObject> initialOptions,
ConfirmationDialogObject confirm,
Integer maxSelectedItems) |
| Modifier and Type | Method and Description |
|---|---|
static MultiStaticSelectElement.MultiStaticSelectElementBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getActionId()
An identifier for the action triggered when a menu option is selected.
|
ConfirmationDialogObject |
getConfirm()
A confirm object that defines an optional confirmation dialog that appears before the multi-select choices are submitted.
|
List<OptionObject> |
getInitialOptions()
An array of option objects that exactly match one or more of the options within options or option_groups.
|
Integer |
getMaxSelectedItems()
Specifies the maximum number of items that can be selected in the menu.
|
List<OptionGroupObject> |
getOptionGroups()
An array of option group objects.
|
List<OptionObject> |
getOptions()
An array of option objects.
|
PlainTextObject |
getPlaceholder()
A plain_text only text object that defines the placeholder text shown on the menu.
|
String |
getType() |
int |
hashCode() |
void |
setActionId(String actionId)
An identifier for the action triggered when a menu option is selected.
|
void |
setConfirm(ConfirmationDialogObject confirm)
A confirm object that defines an optional confirmation dialog that appears before the multi-select choices are submitted.
|
void |
setInitialOptions(List<OptionObject> initialOptions)
An array of option objects that exactly match one or more of the options within options or option_groups.
|
void |
setMaxSelectedItems(Integer maxSelectedItems)
Specifies the maximum number of items that can be selected in the menu.
|
void |
setOptionGroups(List<OptionGroupObject> optionGroups)
An array of option group objects.
|
void |
setOptions(List<OptionObject> options)
An array of option objects.
|
void |
setPlaceholder(PlainTextObject placeholder)
A plain_text only text object that defines the placeholder text shown on the menu.
|
String |
toString() |
public static final String TYPE
public MultiStaticSelectElement()
public MultiStaticSelectElement(PlainTextObject placeholder, String actionId, List<OptionObject> options, List<OptionGroupObject> optionGroups, List<OptionObject> initialOptions, ConfirmationDialogObject confirm, Integer maxSelectedItems)
public static MultiStaticSelectElement.MultiStaticSelectElementBuilder builder()
public String getType()
public PlainTextObject getPlaceholder()
public String getActionId()
public List<OptionObject> getOptions()
NOTE: The reason I didn't initialize the List<> fields is because Slack (sometimes) gives errors when it encounters an empty list in the generated JSON. The proper solution if/when you don't want un-initialized fields is to have a Gson type adapter that skips empty lists
public List<OptionGroupObject> getOptionGroups()
NOTE: The reason I didn't initialize the List<> fields is because Slack (sometimes) gives errors when it encounters an empty list in the generated JSON. The proper solution if/when you don't want un-initialized fields is to have a Gson type adapter that skips empty lists
public List<OptionObject> getInitialOptions()
public ConfirmationDialogObject getConfirm()
public Integer getMaxSelectedItems()
public void setPlaceholder(PlainTextObject placeholder)
public void setActionId(String actionId)
public void setOptions(List<OptionObject> options)
NOTE: The reason I didn't initialize the List<> fields is because Slack (sometimes) gives errors when it encounters an empty list in the generated JSON. The proper solution if/when you don't want un-initialized fields is to have a Gson type adapter that skips empty lists
public void setOptionGroups(List<OptionGroupObject> optionGroups)
NOTE: The reason I didn't initialize the List<> fields is because Slack (sometimes) gives errors when it encounters an empty list in the generated JSON. The proper solution if/when you don't want un-initialized fields is to have a Gson type adapter that skips empty lists
public void setInitialOptions(List<OptionObject> initialOptions)
public void setConfirm(ConfirmationDialogObject confirm)
public void setMaxSelectedItems(Integer maxSelectedItems)
protected boolean canEqual(Object other)
Copyright © 2020. All rights reserved.