public static final class CfnBot.ButtonProperty.Builder
extends java.lang.Object
CfnBot.ButtonProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnBot.ButtonProperty |
build()
Builds the configured instance.
|
CfnBot.ButtonProperty.Builder |
text(java.lang.String text)
Sets the value of
CfnBot.ButtonProperty.getText() |
CfnBot.ButtonProperty.Builder |
value(java.lang.String value)
Sets the value of
CfnBot.ButtonProperty.getValue() |
public CfnBot.ButtonProperty.Builder text(java.lang.String text)
CfnBot.ButtonProperty.getText()
text
- The text that appears on the button. This parameter is required.
Use this to tell the user the value that is returned when they choose this button.this
public CfnBot.ButtonProperty.Builder value(java.lang.String value)
CfnBot.ButtonProperty.getValue()
value
- The value returned to Amazon Lex when the user chooses this button. This parameter is required.
This must be one of the slot values configured for the slot.this
public CfnBot.ButtonProperty build()
CfnBot.ButtonProperty
java.lang.NullPointerException
- if any required attribute was not provided