@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Button extends Object implements Serializable, Cloneable, StructuredPojo
Represents an option to be shown on the client platform (Facebook, Slack, etc.)
| Constructor and Description |
|---|
Button() |
| Modifier and Type | Method and Description |
|---|---|
Button |
clone() |
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 |
marshall(ProtocolMarshaller protocolMarshaller) |
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 void setText(String text)
Text visible to the user on the button.
text - Text visible to the user on the button.public String getText()
Text visible to the user on the button.
public Button withText(String text)
Text visible to the user on the button.
text - Text visible to the user on the button.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".
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 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".
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".
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()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2017. All rights reserved.