@Generated(value="software.amazon.awssdk:codegen") public final class Button extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Button.Builder,Button>
Describes a button to use on a response card used to gather slot values from a user.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Button.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Button.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Button.Builder> |
serializableBuilderClass() |
String |
text()
The text that appears on the button.
|
Button.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
value()
The value returned to Amazon Lex when the user chooses this button.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String text()
The text that appears on the button. Use this to tell the user what value is returned when they choose this button.
public final 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.
public Button.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Button.Builder,Button>public static Button.Builder builder()
public static Class<? extends Button.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.