@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)
Marshalls this structured data using the given
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 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.