@Generated(value="software.amazon.awssdk:codegen") public final class Button extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Button.Builder,Button>
Represents an option to be shown on the client platform (Facebook, Slack, etc.)
Modifier and Type | Class and Description |
---|---|
static interface |
Button.Builder |
Modifier and Type | Method and Description |
---|---|
static Button.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Button.Builder> |
serializableBuilderClass() |
String |
text()
Text that is visible to the user on the button.
|
Button.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
value()
The value sent to Amazon Lex when a user chooses the button.
|
copy
public String text()
Text that is visible to the user on the button.
public 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."
public Button.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Button.Builder,Button>
public static Button.Builder builder()
public static Class<? extends Button.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.