public class CheckboxesElement extends BlockElement
| Modifier and Type | Class and Description |
|---|---|
static class |
CheckboxesElement.CheckboxesElementBuilder |
| Constructor and Description |
|---|
CheckboxesElement() |
CheckboxesElement(String actionId,
List<OptionObject> options,
List<OptionObject> initialOptions,
ConfirmationDialogObject confirm) |
| Modifier and Type | Method and Description |
|---|---|
static CheckboxesElement.CheckboxesElementBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getActionId()
An identifier for the action triggered when the checkbox group is changed.
|
ConfirmationDialogObject |
getConfirm()
A confirm object that defines an optional confirmation dialog
that appears after clicking one of the checkboxes in this element.
|
List<OptionObject> |
getInitialOptions()
An array of option objects that exactly matches one or more of the options within options.
|
List<OptionObject> |
getOptions()
An array of option objects.
|
String |
getType() |
int |
hashCode() |
void |
setActionId(String actionId)
An identifier for the action triggered when the checkbox group is changed.
|
void |
setConfirm(ConfirmationDialogObject confirm)
A confirm object that defines an optional confirmation dialog
that appears after clicking one of the checkboxes in this element.
|
void |
setInitialOptions(List<OptionObject> initialOptions)
An array of option objects that exactly matches one or more of the options within options.
|
void |
setOptions(List<OptionObject> options)
An array of option objects.
|
String |
toString() |
public static final String TYPE
public CheckboxesElement()
public CheckboxesElement(String actionId, List<OptionObject> options, List<OptionObject> initialOptions, ConfirmationDialogObject confirm)
public static CheckboxesElement.CheckboxesElementBuilder 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 List<OptionObject> getInitialOptions()
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 setInitialOptions(List<OptionObject> initialOptions)
public void setConfirm(ConfirmationDialogObject confirm)
protected boolean canEqual(Object other)
Copyright © 2020. All rights reserved.