public class Button extends Object implements Serializable
Represents an option to be shown on the client platform (Facebook, Slack, etc.)
| Constructor and Description |
|---|
Button() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getText()
Text visible to the user on the button.
|
String |
getValue()
Value sent to Amazon Lex when user clicks the button.
|
int |
hashCode() |
void |
setText(String text)
Text visible to the user on the button.
|
void |
setValue(String value)
Value sent to Amazon Lex when user clicks the button.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Button |
withText(String text)
Text visible to the user on the button.
|
Button |
withValue(String value)
Value sent to Amazon Lex when user clicks the button.
|
public String getText()
Text visible to the user on the button.
Constraints:
Length: 1 - 15
Text visible to the user on the button.
public void setText(String text)
Text visible to the user on the button.
Constraints:
Length: 1 - 15
text - Text visible to the user on the button.
public Button withText(String text)
Text visible to the user on the button.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 15
text - Text visible to the user on the button.
public String getValue()
Value sent to Amazon Lex when user clicks the button. For example, consider button text "NYC". When the user clicks the button, the value sent can be "New York City".
Constraints:
Length: 1 - 1000
Value sent to Amazon Lex when user clicks the button. For example, consider button text "NYC". When the user clicks the button, the value sent can be "New York City".
public void setValue(String value)
Value sent to Amazon Lex when user clicks the button. For example, consider button text "NYC". When the user clicks the button, the value sent can be "New York City".
Constraints:
Length: 1 - 1000
value - Value sent to Amazon Lex when user clicks the button. For example, consider button text "NYC". When the user clicks the button, the value sent can be "New York City".
public Button withValue(String value)
Value sent to Amazon Lex when user clicks the button. For example, consider button text "NYC". When the user clicks the button, the value sent can be "New York City".
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1000
value - Value sent to Amazon Lex when user clicks the button. For example, consider button text "NYC". When the user clicks the button, the value sent can be "New York City".
public String toString()
toString in class ObjectObject.toString()Copyright © 2017. All rights reserved.