Class StaticSelectElement
public class StaticSelectElement extends BlockElement
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StaticSelectElement.StaticSelectElementBuilder
-
Field Summary
-
Constructor Summary
Constructors Constructor Description StaticSelectElement()
StaticSelectElement(PlainTextObject placeholder, String actionId, List<OptionObject> options, List<OptionGroupObject> optionGroups, OptionObject initialOption, ConfirmationDialogObject confirm)
-
Method Summary
Modifier and Type Method Description static StaticSelectElement.StaticSelectElementBuilder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getActionId()
ConfirmationDialogObject
getConfirm()
OptionObject
getInitialOption()
List<OptionGroupObject>
getOptionGroups()
An array of option group objects.List<OptionObject>
getOptions()
An array of option objects.PlainTextObject
getPlaceholder()
String
getType()
int
hashCode()
void
setActionId(String actionId)
void
setConfirm(ConfirmationDialogObject confirm)
void
setInitialOption(OptionObject initialOption)
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)
String
toString()
-
Field Details
-
TYPE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
StaticSelectElement
public StaticSelectElement() -
StaticSelectElement
public StaticSelectElement(PlainTextObject placeholder, String actionId, List<OptionObject> options, List<OptionGroupObject> optionGroups, OptionObject initialOption, ConfirmationDialogObject confirm)
-
-
Method Details
-
builder
-
getType
-
getPlaceholder
-
getActionId
-
getOptions
An array of option objects.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
-
getOptionGroups
An array of option group objects.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
-
getInitialOption
-
getConfirm
-
setPlaceholder
-
setActionId
-
setOptions
An array of option objects.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
-
setOptionGroups
An array of option group objects.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
-
setInitialOption
-
setConfirm
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-