public class RadioButtonsElement extends BlockElement
Modifier and Type | Class and Description |
---|---|
static class |
RadioButtonsElement.RadioButtonsElementBuilder |
Constructor and Description |
---|
RadioButtonsElement() |
RadioButtonsElement(String actionId,
List<OptionObject> options,
OptionObject initialOption,
ConfirmationDialogObject confirm) |
Modifier and Type | Method and Description |
---|---|
static RadioButtonsElement.RadioButtonsElementBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getActionId()
An identifier for the action triggered when the radio button group is changed.
|
ConfirmationDialogObject |
getConfirm()
A confirm object that defines an optional confirmation dialog
that appears after clicking one of the radio buttons in this element.
|
OptionObject |
getInitialOption()
An option object that exactly matches one 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 radio button group is changed.
|
void |
setConfirm(ConfirmationDialogObject confirm)
A confirm object that defines an optional confirmation dialog
that appears after clicking one of the radio buttons in this element.
|
void |
setInitialOption(OptionObject initialOption)
An option object that exactly matches one of the options within options.
|
void |
setOptions(List<OptionObject> options)
An array of option objects.
|
String |
toString() |
public static final String TYPE
public RadioButtonsElement()
public RadioButtonsElement(String actionId, List<OptionObject> options, OptionObject initialOption, ConfirmationDialogObject confirm)
public static RadioButtonsElement.RadioButtonsElementBuilder 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 OptionObject getInitialOption()
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 setInitialOption(OptionObject initialOption)
public void setConfirm(ConfirmationDialogObject confirm)
protected boolean canEqual(Object other)
Copyright © 2020. All rights reserved.