public class OptionObject extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OptionObject.OptionObjectBuilder |
| Constructor and Description |
|---|
OptionObject() |
OptionObject(TextObject text,
String value,
PlainTextObject description,
String url) |
| Modifier and Type | Method and Description |
|---|---|
static OptionObject.OptionObjectBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
PlainTextObject |
getDescription()
A plain_text only text object that defines a line of descriptive text shown
below the text field beside the radio button.
|
TextObject |
getText()
A text object that defines the text shown in the option on the menu.
|
String |
getUrl()
A URL to load in the user's browser when the option is clicked.
|
String |
getValue()
The string value that will be passed to your app when this option is chosen.
|
int |
hashCode() |
void |
setDescription(PlainTextObject description)
A plain_text only text object that defines a line of descriptive text shown
below the text field beside the radio button.
|
void |
setText(TextObject text)
A text object that defines the text shown in the option on the menu.
|
void |
setUrl(String url)
A URL to load in the user's browser when the option is clicked.
|
void |
setValue(String value)
The string value that will be passed to your app when this option is chosen.
|
String |
toString() |
public OptionObject()
public OptionObject(TextObject text, String value, PlainTextObject description, String url)
public static OptionObject.OptionObjectBuilder builder()
public TextObject getText()
public String getValue()
public PlainTextObject getDescription()
public String getUrl()
Maximum length for this field is 3000 characters. If you're using url, you'll still receive an interaction payload and will need to send an acknowledgement response. A URL to load in the user's browser when the option is clicked.
public void setText(TextObject text)
public void setValue(String value)
public void setDescription(PlainTextObject description)
public void setUrl(String url)
Maximum length for this field is 3000 characters. If you're using url, you'll still receive an interaction payload and will need to send an acknowledgement response. A URL to load in the user's browser when the option is clicked.
protected boolean canEqual(Object other)
Copyright © 2020. All rights reserved.