public class Button
extends java.lang.Object
implements java.io.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(java.lang.Object obj) |
java.lang.String |
getText()
Text that is visible to the user on the button.
|
java.lang.String |
getValue()
The value sent to Amazon Lex when a user chooses the button.
|
int |
hashCode() |
void |
setText(java.lang.String text)
Text that is visible to the user on the button.
|
void |
setValue(java.lang.String value)
The value sent to Amazon Lex when a user chooses the button.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Button |
withText(java.lang.String text)
Text that is visible to the user on the button.
|
Button |
withValue(java.lang.String value)
The value sent to Amazon Lex when a user chooses the button.
|
public java.lang.String getText()
Text that is visible to the user on the button.
Constraints:
Length: 1 - 15
Text that is visible to the user on the button.
public void setText(java.lang.String text)
Text that is visible to the user on the button.
Constraints:
Length: 1 - 15
text - Text that is visible to the user on the button.
public Button withText(java.lang.String text)
Text that is 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 that is visible to the user on the button.
public java.lang.String getValue()
The value sent to Amazon Lex when a user chooses the button. For example, consider button text "NYC." When the user chooses the button, the value sent can be "New York City."
Constraints:
Length: 1 - 1000
The value sent to Amazon Lex when a user chooses the button. For example, consider button text "NYC." When the user chooses the button, the value sent can be "New York City."
public void setValue(java.lang.String value)
The value sent to Amazon Lex when a user chooses the button. For example, consider button text "NYC." When the user chooses the button, the value sent can be "New York City."
Constraints:
Length: 1 - 1000
value - The value sent to Amazon Lex when a user chooses the button. For example, consider button text "NYC." When the user chooses the button, the value sent can be "New York City."
public Button withValue(java.lang.String value)
The value sent to Amazon Lex when a user chooses the button. For example, consider button text "NYC." When the user chooses 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 - The value sent to Amazon Lex when a user chooses the button. For example, consider button text "NYC." When the user chooses the button, the value sent can be "New York City."
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.