Class CfnBot.ButtonProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.ButtonProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.ButtonProperty>
- Enclosing interface:
CfnBot.ButtonProperty
@Stability(Stable)
public static final class CfnBot.ButtonProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.ButtonProperty>
A builder for
CfnBot.ButtonProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnBot.ButtonProperty.getText()
Sets the value ofCfnBot.ButtonProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
text
Sets the value ofCfnBot.ButtonProperty.getText()
- Parameters:
text
- The text that appears on the button. This parameter is required. Use this to tell the user what value is returned when they choose this button.- Returns:
this
-
value
Sets the value ofCfnBot.ButtonProperty.getValue()
- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.ButtonProperty>
- Returns:
- a new instance of
CfnBot.ButtonProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-