public class OverflowMenuElement extends BlockElement
Modifier and Type | Class and Description |
---|---|
static class |
OverflowMenuElement.OverflowMenuElementBuilder |
Constructor and Description |
---|
OverflowMenuElement() |
OverflowMenuElement(String actionId,
List<OptionObject> options,
ConfirmationDialogObject confirm) |
Modifier and Type | Method and Description |
---|---|
static OverflowMenuElement.OverflowMenuElementBuilder |
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 after a menu item is selected.
|
List<OptionObject> |
getOptions()
An array of option objects to display in 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 after a menu item is selected.
|
void |
setOptions(List<OptionObject> options)
An array of option objects to display in the menu.
|
String |
toString() |
public static final String TYPE
public OverflowMenuElement()
public OverflowMenuElement(String actionId, List<OptionObject> options, ConfirmationDialogObject confirm)
public static OverflowMenuElement.OverflowMenuElementBuilder builder()
public String getType()
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 ConfirmationDialogObject getConfirm()
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 setConfirm(ConfirmationDialogObject confirm)
protected boolean canEqual(Object other)
Copyright © 2020. All rights reserved.