public class OptionObject extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OptionObject.OptionObjectBuilder |
| Constructor and Description |
|---|
OptionObject() |
OptionObject(PlainTextObject 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 https://api.slack.com/reference/block-kit/composition-objects#text
only text object that defines a line of descriptive text shown below the text field beside the radio button.
|
PlainTextObject |
getText()
The formatting to use for this text object.
|
String |
getUrl()
A URL to load in the user's browser when the option is clicked.
|
String |
getValue()
The text for the block.
|
int |
hashCode() |
void |
setDescription(PlainTextObject description)
A plain_text https://api.slack.com/reference/block-kit/composition-objects#text
only text object that defines a line of descriptive text shown below the text field beside the radio button.
|
void |
setText(PlainTextObject text)
The formatting to use for this text object.
|
void |
setUrl(String url)
A URL to load in the user's browser when the option is clicked.
|
void |
setValue(String value)
The text for the block.
|
String |
toString() |
public OptionObject()
public OptionObject(PlainTextObject text, String value, PlainTextObject description, String url)
public static OptionObject.OptionObjectBuilder builder()
public PlainTextObject 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.
public void setText(PlainTextObject 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.
protected boolean canEqual(Object other)
Copyright © 2020. All rights reserved.