@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Button extends Object implements Serializable, Cloneable, StructuredPojo
Describes a button to use on a response card used to gather slot values from a user.
| Constructor and Description |
|---|
Button() |
| Modifier and Type | Method and Description |
|---|---|
Button |
clone() |
boolean |
equals(Object obj) |
String |
getText()
The text that appears on the button.
|
String |
getValue()
The value returned to Amazon Lex when the user chooses this button.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setText(String text)
The text that appears on the button.
|
void |
setValue(String value)
The value returned to Amazon Lex when the user chooses this button.
|
String |
toString()
Returns a string representation of this object.
|
Button |
withText(String text)
The text that appears on the button.
|
Button |
withValue(String value)
The value returned to Amazon Lex when the user chooses this button.
|
public void setText(String text)
The text that appears on the button. Use this to tell the user what value is returned when they choose this button.
text - The text that appears on the button. Use this to tell the user what value is returned when they choose
this button.public String getText()
The text that appears on the button. Use this to tell the user what value is returned when they choose this button.
public Button withText(String text)
The text that appears on the button. Use this to tell the user what value is returned when they choose this button.
text - The text that appears on the button. Use this to tell the user what value is returned when they choose
this button.public void setValue(String value)
The value returned to Amazon Lex when the user chooses this button. This must be one of the slot values configured for the slot.
value - The value returned to Amazon Lex when the user chooses this button. This must be one of the slot values
configured for the slot.public String getValue()
The value returned to Amazon Lex when the user chooses this button. This must be one of the slot values configured for the slot.
public Button withValue(String value)
The value returned to Amazon Lex when the user chooses this button. This must be one of the slot values configured for the slot.
value - The value returned to Amazon Lex when the user chooses this button. This must be one of the slot values
configured for the slot.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.