@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Button extends Object implements Serializable, Cloneable, StructuredPojo
A button that appears on a response card show to the user.
Constructor and Description |
---|
Button() |
Modifier and Type | Method and Description |
---|---|
Button |
clone() |
boolean |
equals(Object obj) |
String |
getText()
The text that is displayed on the button.
|
String |
getValue()
The value returned to Amazon Lex V2 when a user chooses the button.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setText(String text)
The text that is displayed on the button.
|
void |
setValue(String value)
The value returned to Amazon Lex V2 when a user chooses the button.
|
String |
toString()
Returns a string representation of this object.
|
Button |
withText(String text)
The text that is displayed on the button.
|
Button |
withValue(String value)
The value returned to Amazon Lex V2 when a user chooses the button.
|
public void setText(String text)
The text that is displayed on the button.
text
- The text that is displayed on the button.public String getText()
The text that is displayed on the button.
public Button withText(String text)
The text that is displayed on the button.
text
- The text that is displayed on the button.public void setValue(String value)
The value returned to Amazon Lex V2 when a user chooses the button.
value
- The value returned to Amazon Lex V2 when a user chooses the button.public String getValue()
The value returned to Amazon Lex V2 when a user chooses the button.
public Button withValue(String value)
The value returned to Amazon Lex V2 when a user chooses the button.
value
- The value returned to Amazon Lex V2 when a user chooses the button.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.