@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 that is visible to the user on the button.
|
String |
getValue()
The value sent to Amazon Lex when a user chooses the button.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setText(String text)
Text that is visible to the user on the button.
|
void |
setValue(String value)
The value sent to Amazon Lex when a user chooses the button.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Button |
withText(String text)
Text that is visible to the user on the button.
|
Button |
withValue(String value)
The value sent to Amazon Lex when a user chooses the button.
|
public void setText(String text)
Text that is visible to the user on the button.
text
- Text that is visible to the user on the button.public String getText()
Text that is visible to the user on the button.
public Button withText(String text)
Text that is visible to the user on the button.
text
- Text that is visible to the user on the button.public void setValue(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."
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 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."
public Button withValue(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."
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 String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.