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